summaryrefslogtreecommitdiff
path: root/spamassassin/local.cf
blob: f99cd8f96294af1617d2252e9f55608dc125b01d (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 1
  16. # Set which networks or hosts are considered 'trusted' by your mail
  17. # server (i.e. not spammers)
  18. #
  19. # trusted_networks 212.17.35.
  20. # Set file-locking method (flock is not safe over NFS, but is faster)
  21. #
  22. # lock_method flock
  23. # Set the threshold at which a message is considered spam (default: 5.0)
  24. #
  25. # required_score 5.0
  26. # Use Bayesian classifier (default: 1)
  27. #
  28. # use_bayes 1
  29. # Bayesian classifier auto-learning (default: 1)
  30. #
  31. # bayes_auto_learn 1
  32. # Set headers which may provide inappropriate cues to the Bayesian
  33. # classifier
  34. #
  35. # bayes_ignore_header X-Bogosity
  36. # bayes_ignore_header X-Spam-Flag
  37. # bayes_ignore_header X-Spam-Status
  38. # Whether to decode non- UTF-8 and non-ASCII textual parts and recode
  39. # them to UTF-8 before the text is given over to rules processing.
  40. #
  41. normalize_charset 1
  42. # Some shortcircuiting, if the plugin is enabled
  43. #
  44. ifplugin Mail::SpamAssassin::Plugin::Shortcircuit
  45. #
  46. # default: strongly-whitelisted mails are *really* whitelisted now, if the
  47. # shortcircuiting plugin is active, causing early exit to save CPU load.
  48. # Uncomment to turn this on
  49. #
  50. # shortcircuit USER_IN_WHITELIST on
  51. # shortcircuit USER_IN_DEF_WHITELIST on
  52. # shortcircuit USER_IN_ALL_SPAM_TO on
  53. # shortcircuit SUBJECT_IN_WHITELIST on
  54. # the opposite; blacklisted mails can also save CPU
  55. #
  56. # shortcircuit USER_IN_BLACKLIST on
  57. # shortcircuit USER_IN_BLACKLIST_TO on
  58. # shortcircuit SUBJECT_IN_BLACKLIST on
  59. # if you have taken the time to correctly specify your "trusted_networks",
  60. # this is another good way to save CPU
  61. #
  62. # shortcircuit ALL_TRUSTED on
  63. # and a well-trained bayes DB can save running rules, too
  64. #
  65. # shortcircuit BAYES_99 spam
  66. # shortcircuit BAYES_00 ham
  67. endif # Mail::SpamAssassin::Plugin::Shortcircuit
  68. # Avoid bayesian filter (requires continuous training)
  69. use_bayes 0
  70. # Treat non-Western charsets as suspicious
  71. ok_locales en
  72. # Avoid BarracudaCentral (too aggressive)
  73. dns_query_restriction deny barracudacentral.org