Changes

Jump to navigation Jump to search
945 bytes added ,  03:24, 11 September 2014
added delete & recreate steps to Bayesian Autolearning
Line 207: Line 207:  
  12 considered to be a good working value..
 
  12 considered to be a good working value..
 
* 'autolearn' as HAM any email with a score below 0.10
 
* 'autolearn' as HAM any email with a score below 0.10
 +
 +
Check the bayes stats with the command:
 +
sa-learn --dump magic
 +
 +
The database is located in /var/spool/spamd/.spamassassin/bayes
 +
 +
Based on this forum post http://forums.contribs.org/index.php/topic,50712.msg258844.html#msg258844 it may be advantageous to remove the bayes database every few years & recreate it, in order to improve spam filtering performance.
 +
 +
Follow these instructions to turn bayes OFF, delete the database, create an empty database, and turn bayes back on:
 +
 +
config setprop spamassassin UseBayes 0
 +
signal-event email-update
 +
'rm' /var/spool/spamd/.spamassassin/bayes*
 +
 +
config setprop spamassassin UseBayes 1
 +
expand-template /etc/mail/spamassassin/local.cf
 +
sa-learn --sync --dbpath /var/spool/spamd/.spamassassin -u spamd
 +
chown spamd.spamd /var/spool/spamd/.spamassassin/bayes_*
 +
chown spamd.spamd /var/spool/spamd/.spamassassin/bayes.mutex
 +
chmod 640 /var/spool/spamd/.spamassassin/bayes_*
 +
signal-event email-update
    
===The Sonora Communications "Spam Filter Configuration for SME 7" howto===
 
===The Sonora Communications "Spam Filter Configuration for SME 7" howto===
624

edits

Navigation menu