Spamassassin config


Update for a previous story of mine where I posted my user_pref file for spamassassin.

Some notes:

  • Spamassassin usually uses RBL (Realtime Blackhole Lists), you can enable/disable with skip_rbl_checks. If you use it, you might want to use a dnscacher like dnsmasq.
  • The bayesian filter works great here
  • check out Auto-Whitelisting
  • The SpamAssassin-Wiki is really good
  • if you have more than one user, spamd is probably worth checking out.
  • sa-compile for faster performance
  • language/locale checking sounds cool. Found the option at a config generator You will find other options explained there too, like report_safe.
use_auto_whitelist 0
score DATE_IN_FUTURE_12_24      5
score HTML_MESSAGE              3.3
score MIME_HTML_ONLY            5
score MULTIPART_ALT_NON_TEXT    3
score BAYES_00 -4
score BAYES_05 -2
score BAYES_95 6
score BAYES_99 9
score GAPPY_SUBJECT             5
score FROM_EXCESS_BASE64        3
score FROM_HAS_ULINE_NUMS       3
score UPPERCASE_25_50           3
score UPPERCASE_50_75           4
score SUBJ_ALL_CAPS             2
body EVIL_WORDS         /(software|petroleum|casino|kurs|profit|symbol)/i
score EVIL_WORDS                2
describe EVIL_WORDS     evil_words
body EVIL_WORDS2        /(price|oil|bonus|prognose|borse|preis)/i
score EVIL_WORDS2               2
describe EVIL_WORDS2    evil_words2
body EVIL_WORDS3        /(casino|lottery|lotto|euro|free|cheap|health|pharmacy)/i
score EVIL_WORDS3               3
describe EVIL_WORDS3    evil_words3
body DOLLAR_SIGN        /[\$]/
score DOLLAR_SIGN       3
body PERCENT_SIGN       /[\%]/
score PERCENT_SIGN      3
rewrite_header subject         ***SPAM***
report_safe             0
#skip_rbl_checks         1
ok_languages            en de
# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales              en de

  1. No comments yet.
(will not be published)

  1. No trackbacks yet.