New upstream config?
[sysconfig/spamassassin.git] / local.cf
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
10 #   Add *****SPAM***** to the Subject header of spam e-mails
11 #
12 # rewrite_header Subject *****SPAM*****
13
14
15 #   Save spam messages as a message/rfc822 MIME attachment instead of
16 #   modifying the original message (0: off, 2: use text/plain instead)
17 #
18 report_safe 0
19
20
21 #   Set which networks or hosts are considered 'trusted' by your mail
22 #   server (i.e. not spammers)
23 #
24 # trusted_networks 212.17.35.
25
26
27 #   Set file-locking method (flock is not safe over NFS, but is faster)
28 #
29 # lock_method flock
30
31
32 #   Set the threshold at which a message is considered spam (default: 5.0)
33 #
34 # required_score 5.0
35
36
37 #   Use Bayesian classifier (default: 1)
38 #
39 # use_bayes 1
40
41
42 #   Bayesian classifier auto-learning (default: 1)
43 #
44 # bayes_auto_learn 1
45
46
47 #   Set headers which may provide inappropriate cues to the Bayesian
48 #   classifier
49 #
50 # bayes_ignore_header X-Bogosity
51 # bayes_ignore_header X-Spam-Flag
52 # bayes_ignore_header X-Spam-Status
53
54 # Increase the Bayes weighting
55 ifplugin Mail::SpamAssassin::Plugin::Bayes
56 score BAYES_00 0 0 -2.312 -2.599
57 score BAYES_05 0 0 -1.110 -1.110
58 score BAYES_20 0 0 -0.740 -0.740
59 score BAYES_40 0 0 -0.185 -0.185
60 score BAYES_50 0 0 0.001 0.001
61 score BAYES_60 0 0 1.0 1.0
62 score BAYES_80 0 0 2.0 2.0
63 score BAYES_95 0 0 4.0 4.0
64 score BAYES_99 0 0 5.5 5.5
65 endif
66
67 whitelist_from  SpamQuarantine@mit.edu
68
69 #   Some shortcircuiting, if the plugin is enabled
70
71 ifplugin Mail::SpamAssassin::Plugin::Shortcircuit
72 #
73 #   default: strongly-whitelisted mails are *really* whitelisted now, if the
74 #   shortcircuiting plugin is active, causing early exit to save CPU load.
75 #   Uncomment to turn this on
76 #
77 # shortcircuit USER_IN_WHITELIST       on
78 # shortcircuit USER_IN_DEF_WHITELIST   on
79 # shortcircuit USER_IN_ALL_SPAM_TO     on
80 # shortcircuit SUBJECT_IN_WHITELIST    on
81
82 #   the opposite; blacklisted mails can also save CPU
83 #
84 # shortcircuit USER_IN_BLACKLIST       on
85 # shortcircuit USER_IN_BLACKLIST_TO    on
86 # shortcircuit SUBJECT_IN_BLACKLIST    on
87
88 #   if you have taken the time to correctly specify your "trusted_networks",
89 #   this is another good way to save CPU
90 #
91 # shortcircuit ALL_TRUSTED             on
92
93 #   and a well-trained bayes DB can save running rules, too
94 #
95 # shortcircuit BAYES_99                spam
96 # shortcircuit BAYES_00                ham
97
98 endif # Mail::SpamAssassin::Plugin::Shortcircuit
99