I am following a guide from arstechnica to install an email server on my web server. I'm not using Ubuntu as stated in the tutorial but CentOS 6.
Now I want to install and configure Spamassassin; I edited the file /etc/sysconfig/spamassassin
such that the content is:
# Options to spamd
SAHOME="/var/lib/spamassassin"
SAGLOBALCFGPATH="/etc/mail/spamassassin"
SPAMDOPTIONS="-d -x --max-children=5 --helper-home-dir=/var/lib/spamassassin -u spamd -g spamd --siteconfigpath=/etc/mail/spamassassin --socketpath /var/spool/postfix/spamassassin/spamd.sock --socketowner spamd --socketgroup spamd --socketmode 0660"
# Change to one to enable spamd
ENABLED=1
# Pid file
# Where should spamd write its PID to file? If you use the -u or
# --username option above, this needs to be writable by that user.
# Otherwise, the init script will not be able to shut spamd down.
PIDFILE="/var/run/spamd.pid"
# Cronjob
# Set to anything but 0 to enable the cron job to automatically update
# spamassassins rules on a nightly basis
CRON=1
When restarting the Spamassassin via
service spamassassin restart
I get the error messages
warn: server socket setup failed, retry 2: spamd: directory for /var/spool/postfix/spamassassin/spamd.sock does not exist, exiting
When I start the spamd process via
spamd -d -x --max-children=5 --helper-home-dir=var/lib/spamassassin -u spamd -g spamd --siteconfigpath=/etc/mail/spamassassin --socketpath /var/spool/postfix/spamassassin/spamd.sock --socketowner spamd --socketgroup spamd --socketmode 0660
there are no error messages and the spamd.sock
file is created automatically.
Does anybody have an idea what might have gone wrong?