Question
How do you adjust SpamAssassin rule scoring server-wide?
Answer
SpamAssassin determines whether or not a message is spam based on the message's final calculated spam score. The overall score is calculated by testing the message against various rules, each assigning a sub-score, and then summing the sub-scores. If specific SpamAssassin rules are weighted too heavily or are not weighted enough, how can their weights be adjusted?
- Log in to the server via SSH or WHM's Terminal as the
rootuser -
Backup the
/etc/mail/spamassassin/local.cffile:# cp -a /etc/mail/spamassassin/local.cf{,.$(date +%s)}
- Open
/etc/mail/spamassassin/local.cfin your preferred text editor -
Add your custom score configuration using the
SCORE $ruleid $scorevalueformat.Note: The
$ruleidand$scorevaluemust be replaced with the rule ID of the rule to modify and the new score, respectively.For example:
CONFIG_TEXT: SCORE RDNS_NONE 6
- Save the changes and exit the text editor
-
Restart SpamAssassin:
# /usr/local/cpanel/scripts/restartsrv_spamd
Additional Resources
How to Find SpamAssassin Scan Results
Comments
0 comments
Article is closed for comments.