Skip to content

Exim SpamAssassin

OS: FreeBSD 8.2

Issues when running sa-update:

Updating Perl from 5.12 to 5.16, plus reinstalling LWP::Protocol

>cpan cpan> install LWP::Protocol

Making changes to /usr/local/etc/rc.d/sa-spamd

command_args="-d -r ${pidfile} -s spamd"

Adding to /etc/syslog.conf

!spamd
*.*        /var/log/spamd.log 

Restarting syslog

Summary: SpamAssassin is working.

Errors appeared in the log:

spamd: creating default_prefs: /nonexistent/.spamassassin/user_prefs
config: cannot create user preferences file /nonexistent/.spamassassin/user_prefs:  
spamd: failed to create readable default_prefs: /nonexistent/.spamassassin/user_prefs

The reason is that spamd runs as nobody, but should run as spamd. The root cause is in the lines of the Exim config:

warn 
spam = nobody:true

Changed to spam = spamd:true. Now the logs are clean:

spamd: connection from localhost [127.0.0.1] at port 55118
spamd: creating default_prefs: /var/spool/spamd/.spamassassin/user_prefs
config: created user preferences file: /var/spool/spamd/.spamassassin/user_prefs
spamd: checking message  for spamd:58