On 10/8/2014 2:13 PM, Nick wrote:
In postfix, I'm calling spamassassin with the 2 lines:
smtp      inet  n       -       n       -       -       smtpd -o 
content_filter=spamassassin
spamassassin unix -     n       n       -       -       pipe flags=R user=spamd 
argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}

This shows spamc being called.

In /etc/cron.d/sa-learn I have:
51 * * * * spamd sa-learn --spam /var/log/spamassassin/SPAM/ >/dev/null 2>&1
52 * * * * spamd sa-learn --ham /var/log/spamassassin/HAM/ >/dev/null 2>&1
(/var/log/spamassassin is spamd's home directory, and it's where the SPAM/HAM 
is getting copied for learning)

This shows sa-learn being called.

My /etc/mail/spamassassin/local.cf file is:
required_hits 5
report_safe 0
rewrite_header Subject [SPAM]
required_score 5.0
use_bayes 1
use_bayes_rules 1
bayes_auto_learn 0
bayes_path /var/log/spamassassin/.spamassassin/bayes

And this shows a site-wide bayes db, which should be used by both spamd and sa-learn regardless of user.

But I still don't see how you start spamd. For CentOS, it should be started by /etc/init.d/spamd (or something similar). There may also be options defined in /etc/sysconfig/spamd (or similar).

--
Bowie

Reply via email to