Line 64:
Line 64:
==== Configuration ====
==== Configuration ====
−
Bayesian learning has to be enabled and configured in SME, you can read how to do this in: [[Email#Setup_Blacklists_.26_Bayesian_Autolearning | E-mail - Bayesian Autolearning]]
+
Spamassassin has to be enabled in the Email Panel
+
+
Bayesian learning has to be enabled and configured in SME with
+
+
config setprop spamassassin UseBayes 1
+
config setprop spamassassin BayesAutoLearnThresholdSpam 4.00
+
config setprop spamassassin BayesAutoLearnThresholdNonspam 0.10
+
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
+
+
These commands will:
+
* enable bayesian filter
+
* 'autolearn' as SPAM any email with a score above 4.00
+
* 'autolearn' as HAM any email with a score below 0.10
==== Usage ====
==== Usage ====