Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: miguelalbore on August 24, 2006, 08:54:28 PM
-
I want to add permanently this rule to my spamassassin:
score MIME_HTML_ONLY BODY 1.0
score RCVD_IN_BL_SPAMCOP_NET 5.0
score DIET_1 5.0
score NO_REAL_NAME 0.4
score BAD_CREDIT 4.5
score LIVE_PORN 4.5
score FROM_ENDS_IN_NUMS 0.4
How i can this ???
If i modified this directly from my local.cf this disappears.
Thank you
-
Any idea :(
-
Any idea :(
Normally all config files are templated, and changed should be made in the template tree so not to be overwritten every now and then. Read up about the template system in the Develepors guide (http://mirror.contribs.org/smeserver/contribs//gordonr/devguide/html/devguide.html#TEMPLATES)The local.cf file is templated here:/etc/e-smith/templates/etc/mail/spamassassin/local.cf. Copy the relevant sections to /etc/e-smith/templates-custom/etc/mail/spamassassin/local.cf and make your modifications there. You might have to create a new file with a higher number than every other file as the whole spamassasin configuration is done using the interal database of the SMEServer.
After that expand your templates and adjust the services using the following command
signal-event email-update
-
Looking a little further I also found this file: /usr/share/spamassassin/user_prefs.template, have a look at that as well, before modifying the template. Instruction on how to use it is in the file itself.
-
cactus
Thank you for your excellent help.
At last i bulit an 50score file on:
/etc/mail/spamassassin/local.cf/50score
and then:
signal-event email-update
Thank your for your time an ideas!