New upstream (probably) config changes
[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 #    A 'contact address' users should contact for more info. (replaces
11 #    _CONTACTADDRESS_ in the report template)
12 # report_contact youremailaddress@domain.tld
13
14
15 #   Add *****SPAM***** to the Subject header of spam e-mails
16 #
17 # rewrite_header Subject *****SPAM*****
18
19
20 #   Save spam messages as a message/rfc822 MIME attachment instead of
21 #   modifying the original message (0: off, 2: use text/plain instead)
22 #
23 # report_safe 1
24
25
26 #   Set which networks or hosts are considered 'trusted' by your mail
27 #   server (i.e. not spammers)
28 #
29 # trusted_networks 212.17.35.
30
31
32 #   Set file-locking method (flock is not safe over NFS, but is faster)
33 #
34 # lock_method flock
35
36
37 #   Set the threshold at which a message is considered spam (default: 5.0)
38 #
39 # required_score 5.0
40
41
42 #   Use Bayesian classifier (default: 1)
43 #
44 # use_bayes 1
45
46
47 #   Bayesian classifier auto-learning (default: 1)
48 #
49 # bayes_auto_learn 1
50
51
52 #   Set headers which may provide inappropriate cues to the Bayesian
53 #   classifier
54 #
55 # bayes_ignore_header X-Bogosity
56 # bayes_ignore_header X-Spam-Flag
57 # bayes_ignore_header X-Spam-Status
58
59 # Increase the Bayes weighting
60 ifplugin Mail::SpamAssassin::Plugin::Bayes
61 score BAYES_00 0 0 -2.312 -2.599
62 score BAYES_05 0 0 -1.110 -1.110
63 score BAYES_20 0 0 -0.740 -0.740
64 score BAYES_40 0 0 -0.185 -0.185
65 score BAYES_50 0 0 0.001 0.001
66 score BAYES_60 0 0 1.0 1.0
67 score BAYES_80 0 0 2.0 2.0
68 score BAYES_95 0 0 4.0 4.0
69 score BAYES_99 0 0 5.5 5.5
70 endif
71
72 whitelist_from  SpamQuarantine@mit.edu
73
74 #   Whether to decode non- UTF-8 and non-ASCII textual parts and recode
75 #   them to UTF-8 before the text is given over to rules processing.
76 #
77 # normalize_charset 1
78
79 #   Textual body scan limit    (default: 50000)
80 #
81 #   Amount of data per email text/* mimepart, that will be run through body
82 #   rules.  This enables safer and faster scanning of large messages,
83 #   perhaps having very large textual attachments.  There should be no need
84 #   to change this well tested default.
85 #
86 # body_part_scan_size 50000
87
88 #   Textual rawbody data scan limit    (default: 500000)
89 #
90 #   Amount of data per email text/* mimepart, that will be run through
91 #   rawbody rules.
92 #
93 # rawbody_part_scan_size 500000
94
95 #   Some shortcircuiting, if the plugin is enabled
96
97 ifplugin Mail::SpamAssassin::Plugin::Shortcircuit
98 #
99 #   default: strongly-whitelisted mails are *really* whitelisted now, if the
100 #   shortcircuiting plugin is active, causing early exit to save CPU load.
101 #   Uncomment to turn this on
102 #
103 #   SpamAssassin tries hard not to launch DNS queries before priority -100.
104 #   If you want to shortcircuit without launching unneeded queries, make
105 #   sure such rule priority is below -100. These examples are already:
106 #
107 # shortcircuit USER_IN_WHITELIST       on
108 # shortcircuit USER_IN_DEF_WHITELIST   on
109 # shortcircuit USER_IN_ALL_SPAM_TO     on
110 # shortcircuit SUBJECT_IN_WHITELIST    on
111
112 #   the opposite; blacklisted mails can also save CPU
113 #
114 # shortcircuit USER_IN_BLACKLIST       on
115 # shortcircuit USER_IN_BLACKLIST_TO    on
116 # shortcircuit SUBJECT_IN_BLACKLIST    on
117
118 #   if you have taken the time to correctly specify your "trusted_networks",
119 #   this is another good way to save CPU
120 #
121 # shortcircuit ALL_TRUSTED             on
122
123 #   and a well-trained bayes DB can save running rules, too
124 #
125 # shortcircuit BAYES_99                spam
126 # shortcircuit BAYES_00                ham
127
128 endif # Mail::SpamAssassin::Plugin::Shortcircuit