Setup Blacklists & Bayesian Autolearning(Much of what follows has been shamelessly copied from the Sonoracomm howto)The default SME settings (as you can see above) do not include DNSBL filtering, spam rejection, or (which is not obvious from the above) bayesian filtering in spamassassin to allow spamassassin to learn from received email and improve over time.The following command will enable the default blacklists, enable the bayesian learning filter and set thresholds for the bayesian filter.config setprop spamassassin UseBayes 1config setprop spamassassin BayesAutoLearnThresholdSpam 4.00config setprop spamassassin BayesAutoLearnThresholdNonspam 0.10sa-learn --sync --dbpath /var/spool/spamd/.spamassassin -u spamdchown spamd.spamd /var/spool/spamd/.spamassassin/bayes_*chown spamd.spamd /var/spool/spamd/.spamassassin/bayes.mutexchmod 640 /var/spool/spamd/.spamassassin/bayes_* setprop qpsmtpd DNSBL enabledsetprop qpsmtpd RHSBL enabledconfig setprop spamassassin status enabledconfig setprop spamassassin RejectLevel 12config setprop spamassassin TagLevel 4config setprop spamassassin Sensitivity custom
[root@cdi-postalwise ~]# sa-learn --sync --dbpath /var/spool/spamd/.spamassassin -u spamdERROR: configuration specifies 'use_bayes 0', sa-learn disabled
http://www.sonoracomm.com/index.php?option=com_content&task=view&id=49&Itemid=32
ERROR: configuration specifies 'use_bayes 0', sa-learn disabled
db configuration setprop spamassassin UseBayes 1signal-event email-update
BTW: There appears to be an error in the above instructions.setprop qpsmtpd DNSBL enabledsetprop qpsmtpd RHSBL enabledShould beconfig setprop qpsmtpd DNSBL enabledconfig setprop qpsmtpd RHSBL enabled