Rob Verduijn | 5 Oct 14:48 2011
Picon

unatended baruwa install on lucid and debconf

Hello,

I've been strugling to get baruwa to work on lucid for some time now.

To get baruwa to work with mailscanner/spamassassin/postfix you have to do quite some settings in a quite some config files.
This introduces a very high risk of entering a typo which creates a non-functional setting.
To counter this I've written a script to deal with the installation and have succeeded to deal with all configurations in a nice unattended way accept baruwa.

I use debconf-set-selections to set the answers to questions that are asked by the baruwa configuration install:
I obtained them via the command debconf-get-selections
baruwa    baruwa/rabbitmq/mqpass    password   secretpassword
baruwa    baruwa/mysql/dbadmpass    password    <why is this one empty??>
baruwa    baruwa/mysql/dbpass    password    baruwa
baruwa    baruwa/django/baruwapass    password   
baruwa    baruwa/webserver_type    select    apache2
baruwa    baruwa/mysql/configure    boolean    true
baruwa    baruwa/webserver/vhost    string    vhost.domain.com
baruwa    baruwa/mysql/dbserver    string    localhost
baruwa    baruwa/django/baruwaemail    string    secretpassword
baruwa    baruwa/rabbitmq/mquser    string    rabbitmq
baruwa    baruwa/mysql/dbuser    string    baruwa
baruwa    baruwa/rabbitmq/mqvhost    string    baruwa
baruwa    baruwa/mysql/dbadmin    string    root
baruwa    baruwa/purge    boolean    false
baruwa    baruwa/rabbitmq/mqhost    string    localhost
baruwa    baruwa/mysql/dbname    string    baruwa
baruwa    baruwa/django/baruwauser    string    baruwaadmin

I enter them in my script using this syntax
echo "baruwa baruwa/rabbitmq/mqpass password $rabbitmquserpw" | debconf-set-selections
echo "baruwa baruwa/rabbitmq/mqhost string $fqdn" | debconf-set-selections
echo "baruwa baruwa/rabbitmq/mquser string $rabbitmquser" | debconf-set-selections
echo "baruwa baruwa/rabbitmq/mqvhost string $mqvhost" | debconf-set-selections
echo "baruwa baruwa/mysql/dbadmin string $mysqlrootuser" | debconf-set-selections
echo "baruwa baruwa/mysql/dbadmpass password $mysqlrootpw" | debconf-set-selections
echo "baruwa baruwa/mysql/dbname string $mysqlbaruwadbname" | debconf-set-selections
echo "baruwa baruwa/mysql/dbuser string $mysqlbaruwauser" | debconf-set-selections
echo "baruwa baruwa/mysql/dbpass password $mysqlbaruwauserpw" | debconf-set-selections
echo "baruwa baruwa/mysql/configure boolean $mysqlconfigure" | debconf-set-selections
echo "baruwa baruwa/mysql/dbserver string $mysqlserver" | debconf-set-selections
echo "baruwa baruwa/django/baruwapass password $baruwaadminpw" | debconf-set-selections
echo "baruwa baruwa/django/baruwauser string $baruwadbaccount" | debconf-set-selections
echo "baruwa baruwa/django/baruwaemail string $rootmail" | debconf-set-selections
echo "baruwa baruwa/webserver_type select $webserver" | debconf-set-selections
echo "baruwa baruwa/webserver/vhost string $fqdn" | debconf-set-selections
echo "baruwa baruwa/purge boolean $purgebaruwadbonremove" | debconf-set-selections

all the variables have been verified to be set correctly and get substitued properly (using set -x)

I've tested it so far that I run the script till this part and verified that a manual installtion of this bit works fine
If I use the debconf-set-selections it seems that the baruwa installation script ignores some of these settings,
cause some questions are still asked and some are not, even if I answer them the installation results in a failure.

Anybody any ideas how this can be solved ?

Rob

_______________________________________________
Baruwa mailing list
Baruwa@...
http://lists.baruwa.org/mailman/listinfo/baruwa
Keep Baruwa FREE - http://pledgie.com/campaigns/12056
Jason Ede | 5 Oct 21:29 2011
Picon

Disable preview function?

Hi,

 

Is it possible to easily disable the preview message function so that emails cannot be viewed in the web interface?

 

Jason

_______________________________________________
Baruwa mailing list
Baruwa@...
http://lists.baruwa.org/mailman/listinfo/baruwa
Keep Baruwa FREE - http://pledgie.com/campaigns/12056
bmaillet | 6 Oct 10:54 2011
Picon

CheckBox for select all does not work

Hi all.

the checkbox to select every mail in page, in quarantine spam page, does not
work. this checkbox does select nothing.

so this is a bit annonying to select every spam, one by one, to delete them.

regards.

--
View this message in context: http://baruwa-users-list.963389.n3.nabble.com/CheckBox-for-select-all-does-not-work-tp3399053p3399053.html
Sent from the Baruwa users list mailing list archive at Nabble.com.
_______________________________________________
Baruwa mailing list
Baruwa@...
http://lists.baruwa.org/mailman/listinfo/baruwa
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

Vincent Verhagen | 6 Oct 13:04 2011
Picon

Per domain score settings

Hi all,

From the archives I gathered that I can either:

Set global spam scores by assigning them to the default admin user
or
Set per individual spam scores by assigning them to the individual users.

So, I cannot set per domain spam scores by assigning them to domain admins.

Are the above statements correct?
If so, is there a way to manually manipulate the DB so that I do get per domain spam scores (I really need them!), f.i. by assigning them to user "* <at> domain.tld" or the like?

Thanks in advance!

Vincent

Attachment (smime.p7s): application/pkcs7-signature, 6602 bytes
_______________________________________________
Baruwa mailing list
Baruwa@...
http://lists.baruwa.org/mailman/listinfo/baruwa
Keep Baruwa FREE - http://pledgie.com/campaigns/12056
Andrew Colin Kissa | 6 Oct 13:46 2011
Picon

Re: Per domain score settings


On 06 Oct 2011, at 1:04 PM, Vincent Verhagen wrote:

> From the archives I gathered that I can either:
> 
> Set global spam scores by assigning them to the default admin user
> or
> Set per individual spam scores by assigning them to the individual users.
> 
> So, I cannot set per domain spam scores by assigning them to domain admins.
> 
> Are the above statements correct?

Thats not correct, domains inherit the scores set for the domain admin.

SELECT DISTINCT(email),sa_high_score AS score,is_superuser FROM 
auth_user, profiles WHERE auth_user.id = profiles.user_id AND 
sa_high_score > 0 UNION SELECT address AS email,sa_high_score,0 
FROM user_addresses AS a, profiles AS b WHERE enabled=1 AND 
sa_high_score > 0 AND a.user_id = b.user_id

--
Baruwa - www.baruwa.org

_______________________________________________
Baruwa mailing list
Baruwa@...
http://lists.baruwa.org/mailman/listinfo/baruwa
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

Andrew Colin Kissa | 6 Oct 13:47 2011
Picon

Re: CheckBox for select all does not work


On 06 Oct 2011, at 10:54 AM, bmaillet wrote:

> the checkbox to select every mail in page, in quarantine spam page, does not
> work. this checkbox does select nothing.
> 
> so this is a bit annonying to select every spam, one by one, to delete them.

Am not sure which browser you are using but it works for me.

--
Baruwa - www.baruwa.org

_______________________________________________
Baruwa mailing list
Baruwa@...
http://lists.baruwa.org/mailman/listinfo/baruwa
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

Andrew Colin Kissa | 6 Oct 13:47 2011
Picon

Re: Disable preview function?


On 05 Oct 2011, at 9:29 PM, Jason Ede wrote:

> Is it possible to easily disable the preview message function so that emails cannot be viewed in the web interface?

Comment out the url in messages/url.py and comment out the link in the template and you should be fine.

--
Baruwa - www.baruwa.org

_______________________________________________
Baruwa mailing list
Baruwa@...
http://lists.baruwa.org/mailman/listinfo/baruwa
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

bmaillet | 6 Oct 13:56 2011
Picon

Re: CheckBox for select all does not work

I'm using Firefox 7.0.1 on windows 7 64bits.

tried with internet explorer 8 and got the same problem.

i'm using french translation, but i tried the english one too with same
result.

same thing with chrome too.

--
View this message in context: http://baruwa-users-list.963389.n3.nabble.com/CheckBox-for-select-all-does-not-work-tp3399053p3399395.html
Sent from the Baruwa users list mailing list archive at Nabble.com.
_______________________________________________
Baruwa mailing list
Baruwa@...
http://lists.baruwa.org/mailman/listinfo/baruwa
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

Andrew Colin Kissa | 6 Oct 14:01 2011
Picon

Re: CheckBox for select all does not work


On 06 Oct 2011, at 1:56 PM, bmaillet wrote:

> I'm using Firefox 7.0.1 on windows 7 64bits.
> 
> tried with internet explorer 8 and got the same problem.
> 
> i'm using french translation, but i tried the english one too with same
> result.

Look at your error console to see if there are any js errors, the checkbox
is javascript powered.

--
Baruwa - www.baruwa.org

_______________________________________________
Baruwa mailing list
Baruwa@...
http://lists.baruwa.org/mailman/listinfo/baruwa
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

Vincent Verhagen | 6 Oct 14:43 2011
Picon

Re: Per domain score settings

On 6-10-2011 13:46, Andrew Colin Kissa wrote:
> On 06 Oct 2011, at 1:04 PM, Vincent Verhagen wrote:
>  From the archives I gathered that I can either:
>
> Set global spam scores by assigning them to the default admin user
> or
> Set per individual spam scores by assigning them to the individual users.
>
> So, I cannot set per domain spam scores by assigning them to domain admins.
>
> Are the above statements correct?
> Thats not correct, domains inherit the scores set for the domain admin.
>
> SELECT DISTINCT(email),sa_high_score AS score,is_superuser FROM
> auth_user, profiles WHERE auth_user.id = profiles.user_id AND
> sa_high_score>  0 UNION SELECT address AS email,sa_high_score,0
> FROM user_addresses AS a, profiles AS b WHERE enabled=1 AND
> sa_high_score>  0 AND a.user_id = b.user_id
>
>
Great!
Thanks for the response!

Best regards,
Vincent

Attachment (smime.p7s): application/pkcs7-signature, 6630 bytes
_______________________________________________
Baruwa mailing list
Baruwa@...
http://lists.baruwa.org/mailman/listinfo/baruwa
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

Gmane