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