Hi
1. Yes, I have an installed system where the behavior is as described and does
not change.
2. Just install the system.
This is what I did:
***
Install Spamassassin
apt-get install spamassassin spamc
Configure Spamassassin user and group
We want it to run as non-root, so add a spamd user and group:
# groupadd spamd
# useradd -g spamd -s /bin/false -d /var/log/spamassassin spamd
# mkdir /var/log/spamassassin
# chown spamd:spamd /var/log/spamassassin
(This sets the spamd user's home directory as /var/log/spamassassin.)
Configure Spamassassin
Edit /etc/default/spamassassin so these options are set:
ENABLED=1
SAHOME=/var/log/spamassassin/
OPTIONS=--create-prefs --max-children 2 --username spamd \
-H ${SAHOME} -s ${SAHOME}spamd.log
--max-children spawns the specified number of child processes (you might need
more on a busy server), --username specifies the username spamd runs under, -H
sets the home directory, -s sets the log file.
(I left the rest of the file alone, and didn't touch
/etc/spamassassin/local.cf.)
Start the Spamassassin daemon (spamd)
/etc/init.d/spamassassin start
(By default, spamassassin gets added to the startup scripts by Ubuntu, so it
will start/stop with your system.)
Configure Postfix to use Spamassassin as a filter
This makes Postfix pipe email to Spamassassin once it's been received. Edit
/etc/postfix/master.cf and add this line as the first line of the file:
smtp inet n - - - - smtpd
-o content_filter=spamassassin
Add this to the end of the same file:
spamassassin unix - n n - - pipe
user=spamd argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}
install libmail-spf-query-perl librazor2-perl pyzor dcc (the latter is extern
to the repos)
verify if spf is there
perl -e 'require Mail::SPF::Query'
razor-admin -create
razor-admin -discover
razor-admin -register
pyzor discover
attached is my local.cf
I tried to create an user_prefs as attached on the .spamassassin
directory under /var/log/spamassassin. As you see, my local.cf has
allow_use_rules 1.
All file permissions were checked and are:
-rwxrwxr-x 1 root root 3247 2011-01-13 15:58 local.cf
-rwxrwxr-x 1 spamd spamd 1484 2011-01-17 17:57 user_prefs
I am ready to conduct further tests you find adequate
Best regards
Antonio
** Attachment added: spamassassin.tar.gz
https://bugs.launchpad.net/ubuntu/+source/spamassassin/+bug/702404/+attachment/1797013/+files/spamassassin.tar.gz
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to spamassassin in ubuntu.
https://bugs.launchpad.net/bugs/702404
Title:
cannot change scores in /etc/spamassassin/local.cf/local
--
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs