SpamAssassin: Overriding default scores

If desired the default scores for rules in spamassassin (located in /usr/share/spamassassin/50_scores.cf) can be changed by setting the scores either in /etc/mail/spamassassin/local.cf or another .cf file in the directory. For example, my_scores.cf could define:

# added an extra half point to the surbl checks
score URIBL_AB_SURBL 2.113
score URIBL_JP_SURBL 3.357
score URIBL_OB_SURBL 2.632
score URIBL_PH_SURBL 2.535
score URIBL_SBL      2.968
score URIBL_SC_SURBL 3.023
score URIBL_WS_SURBL 2.600

# added an extra point to all the razor checks
score RAZOR2_CHECK 1.5
score RAZOR2_CF_RANGE_51_100 1.5
score RAZOR2_CF_RANGE_E4_51_100 2.5
score RAZOR2_CF_RANGE_E8_51_100 2.5

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>