Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: idyll on February 01, 2008, 06:35:41 PM
-
In dialog with Michael Weinberger and his smeserver-spamassassin-features-0.0.2-0.noarch.rpm contrib we briefly discussed setting a threshold differently. He requested I post this in the forum for others to see and share.
Namely, of the SPAM getting through the multiple processes on my 7.3 server, a significant number of those are in the range 3.5 to 4.0. The SPAMMERS are getting clever.
So I wish to
# config setprop spamassassin BayesAutoLearnThresholdSpam 3.5
# signal-event email-update
The problem is the setting will not stick, it will only stick at a rounded number like 3 OR 4 but not 3.5 or even 3.75.
The Apache WIKI indicates it can be set to x.xx.
So I am missing something. Anyone have any insight on how I might get this setting changed and have it stick?
If this is possible it would thus correctly tag approximately 150-200 SPAM a day for me. It's worth pursuing.
BUG Submitted.
http://bugs.contribs.org/show_bug.cgi?id=3851
thanks.
patrick
-
Unless you have to, I dont like adding properties to the config database that dont exist in SME already. And you dont have to.
Your goal is to have SME include your extra settings in /etc/mail/spamassassin/local.cf, because thats what spamassassin reads when it runs.
To see the current local.cf type:
nano /etc/mail/spamassassin/local.cf
SME uses several small template files to generate local.cf. These files are located in /etc/e-smith/templates/etc/mail/spamassassin/local.cf/
To add the settings you want, use nano to create a file in that directory named 15bayes_settings:
nano /etc/e-smith/templates/etc/mail/spamassassin/local.cf/15bayes_settings
In the file add these lines:
bayes_auto_learn 1
bayes_auto_learn_threshold_nonspam 0.1
bayes_auto_learn_threshold_spam 12.0
Save and make sure the permissions on the file match the other files in that directory.
Then you must:
expand-template /etc/mail/spamassassin/local.cf
svc -t /service/spamd
To see changes:
nano /etc/mail/spamassassin/local.cf
and watch these logs for errors:
/var/log/spamd/current
/var/log/qpsmtpd/current