ConfigServer Services HelpDesk
Server Management Services from Way to The Web Ltd
ConfigServer Home Page

How do I change the score for a specific SpamAssassin test?

Support Portal  »  Knowledgebase  »  Viewing Article

Sometimes you may want to change the default score for a SA test if it is causing false positives or false negatives.

To change the score for a test, do NOT modify it in the original .cf file in the SpamAssassin configuration files. (It will be overwritten with any spamassassin rules updates.) Instead, add your modified scores to a special .cf file in /etc/mail/spamassassin/, such as /etc/mail/spamassassin/ (which will already exist if you have had us install MailScanner for you). You should use the following format:

score TEST_NAME 1.0
The word "score" is required on each one. Replace TEST_NAME with the actual exact name of the test as it appears in MailWatch or the spam report in the message headers. The number after the test name is the score you want to use *instead* of what it is currently using.

To disable a test so it does not add anything to an email's spamassassin score, change the score to zero by adding a line like this to /etc/mail/spamassassin/

score TEST_NAME 0.0

Share via

Related Articles

Self-Hosted Help Desk Software by SupportPal
© ConfigServer Services