summaryrefslogtreecommitdiff
path: root/spamassassin/local.cf
blob: 34043f42b75b9310ef2e3b5005fb0410f567c802 (plain)
  1. # This is the right place to customize your installation of SpamAssassin.
  2. #
  3. # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
  4. # tweaked.
  5. #
  6. # Only a small subset of options are listed below
  7. #
  8. ###########################################################################
  9. # Add *****SPAM***** to the Subject header of spam e-mails
  10. #
  11. # rewrite_header Subject *****SPAM*****
  12. # Save spam messages as a message/rfc822 MIME attachment instead of
  13. # modifying the original message (0: off, 2: use text/plain instead)
  14. #
  15. report_safe 0
  16. # Set which networks or hosts are considered 'trusted' by your mail
  17. # server (i.e. not spammers)
  18. #
  19. internal_networks 188.183.5.254/32
  20. trusted_networks 188.183.5.254/32 80.68.88.141/32 217.197.91.142 94.18.231.208/29 146.185.137.224
  21. whitelist_bounce_relays mail.bitbase.dk mail.free-owl.de mail.homebase.dk mail.copyninja.info
  22. # Set file-locking method (flock is not safe over NFS, but is faster)
  23. #
  24. lock_method flock
  25. # Set the threshold at which a message is considered spam (default: 5.0)
  26. #
  27. # required_score 5.0
  28. # Use Bayesian classifier (default: 1)
  29. #
  30. # use_bayes 1
  31. # Bayesian classifier auto-learning (default: 1)
  32. #
  33. # bayes_auto_learn 1
  34. # Set headers which may provide inappropriate cues to the Bayesian
  35. # classifier
  36. #
  37. # bayes_ignore_header X-Bogosity
  38. # bayes_ignore_header X-Spam-Flag
  39. # bayes_ignore_header X-Spam-Status
  40. # Whether to decode non- UTF-8 and non-ASCII textual parts and recode
  41. # them to UTF-8 before the text is given over to rules processing.
  42. #
  43. normalize_charset 1
  44. # Some shortcircuiting, if the plugin is enabled
  45. #
  46. ifplugin Mail::SpamAssassin::Plugin::Shortcircuit
  47. #
  48. # default: strongly-whitelisted mails are *really* whitelisted now, if the
  49. # shortcircuiting plugin is active, causing early exit to save CPU load.
  50. # Uncomment to turn this on
  51. #
  52. # shortcircuit USER_IN_WHITELIST on
  53. # shortcircuit USER_IN_DEF_WHITELIST on
  54. # shortcircuit USER_IN_ALL_SPAM_TO on
  55. # shortcircuit SUBJECT_IN_WHITELIST on
  56. # the opposite; blacklisted mails can also save CPU
  57. #
  58. # shortcircuit USER_IN_BLACKLIST on
  59. # shortcircuit USER_IN_BLACKLIST_TO on
  60. # shortcircuit SUBJECT_IN_BLACKLIST on
  61. # if you have taken the time to correctly specify your "trusted_networks",
  62. # this is another good way to save CPU
  63. #
  64. shortcircuit ALL_TRUSTED on
  65. # and a well-trained bayes DB can save running rules, too
  66. #
  67. # shortcircuit BAYES_99 spam
  68. # shortcircuit BAYES_00 ham
  69. endif # Mail::SpamAssassin::Plugin::Shortcircuit
  70. # Avoid bayesian filter (requires continuous training)
  71. use_learner 0
  72. # Treat non-Western charsets as suspicious
  73. ok_locales en
  74. # Avoid BarracudaCentral (too aggressive)
  75. dns_query_restriction deny barracudacentral.org