]> git.proxmox.com Git - proxmox-spamassassin.git/blob - sa-updates/60_whitelist.cf
update SpamAssassin signatures
[proxmox-spamassassin.git] / sa-updates / 60_whitelist.cf
1 # SpamAssassin rules file: default welcomelists
2 #
3 # Please don't modify this file as your changes will be overwritten with
4 # the next update. Use /etc/mail/spamassassin/local.cf instead.
5 # See 'perldoc Mail::SpamAssassin::Conf' for details.
6 #
7 # <@LICENSE>
8 # Licensed to the Apache Software Foundation (ASF) under one or more
9 # contributor license agreements. See the NOTICE file distributed with
10 # this work for additional information regarding copyright ownership.
11 # The ASF licenses this file to you under the Apache License, Version 2.0
12 # (the "License"); you may not use this file except in compliance with
13 # the License. You may obtain a copy of the License at:
14 #
15 # http://www.apache.org/licenses/LICENSE-2.0
16 #
17 # Unless required by applicable law or agreed to in writing, software
18 # distributed under the License is distributed on an "AS IS" BASIS,
19 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 # See the License for the specific language governing permissions and
21 # limitations under the License.
22 # </@LICENSE>
23
24 ###########################################################################
25 # Welcomelist rules
26 #
27 # Note that most of these get 'noautolearn'. They should not be
28 # considered when deciding whether to auto-learn a message, as a
29 # user slip-up could result in scribbling side-effects in the bayes
30 # db as a result -- which is hard to remedy.
31
32 if can(Mail::SpamAssassin::Conf::feature_blocklist_welcomelist)
33 ifplugin Mail::SpamAssassin::Plugin::WLBLEval
34
35 #bz7826 renames blacklist to blocklist
36 header USER_IN_BLOCKLIST eval:check_from_in_blocklist()
37 describe USER_IN_BLOCKLIST From: address is in the user's block-list
38 tflags USER_IN_BLOCKLIST userconf nice noautolearn
39 score USER_IN_BLOCKLIST 100.0
40
41 ifplugin Mail::SpamAssassin::Plugin::RaciallyCharged
42 meta USER_IN_BLACKLIST (USER_IN_BLOCKLIST)
43 describe USER_IN_BLACKLIST DEPRECATED: See USER_IN_BLOCKLIST
44 tflags USER_IN_BLACKLIST userconf nice noautolearn
45 score USER_IN_BLOCKLIST 0.01
46 score USER_IN_BLACKLIST 100.0
47 endif
48 endif
49 else
50 ifplugin Mail::SpamAssassin::Plugin::WLBLEval
51 header USER_IN_BLOCKLIST eval:check_from_in_blacklist()
52 describe USER_IN_BLOCKLIST From: address is in the user's block-list
53 tflags USER_IN_BLOCKLIST userconf nice noautolearn
54 score USER_IN_BLOCKLIST 0.01
55
56 meta USER_IN_BLACKLIST (USER_IN_BLOCKLIST)
57 describe USER_IN_BLACKLIST DEPRECATED: See USER_IN_BLOCKLIST
58 tflags USER_IN_BLACKLIST userconf nice noautolearn
59 score USER_IN_BLACKLIST 100.0
60 endif
61 endif
62
63 if can(Mail::SpamAssassin::Conf::feature_blocklist_welcomelist)
64 ifplugin Mail::SpamAssassin::Plugin::WLBLEval
65 #bz7826 renames whitelist to welcomelist
66 header USER_IN_WELCOMELIST eval:check_from_in_welcomelist()
67 describe USER_IN_WELCOMELIST user is listed in 'welcomelist_from'
68 tflags USER_IN_WELCOMELIST userconf nice noautolearn
69 score USER_IN_WELCOMELIST -100.0
70
71 ifplugin Mail::SpamAssassin::Plugin::RaciallyCharged
72 meta USER_IN_WHITELIST (USER_IN_WELCOMELIST)
73 describe USER_IN_WHITELIST DEPRECATED: See USER_IN_WELCOMELIST
74 tflags USER_IN_WHITELIST userconf nice noautolearn
75 score USER_IN_WELCOMELIST -0.01
76 score USER_IN_WHITELIST -100.0
77 endif
78 endif
79 else
80 ifplugin Mail::SpamAssassin::Plugin::WLBLEval
81 header USER_IN_WELCOMELIST eval:check_from_in_whitelist()
82 describe USER_IN_WELCOMELIST user is listed in 'welcomelist_from'
83 tflags USER_IN_WELCOMELIST userconf nice noautolearn
84 score USER_IN_WELCOMELIST -0.01
85
86 meta USER_IN_WHITELIST (USER_IN_WELCOMELIST)
87 describe USER_IN_WHITELIST DEPRECATED: See USER_IN_WELCOMELIST
88 tflags USER_IN_WHITELIST userconf nice noautolearn
89 score USER_IN_WHITELIST -100.0
90 endif
91 endif
92
93 if can(Mail::SpamAssassin::Conf::feature_blocklist_welcomelist)
94 ifplugin Mail::SpamAssassin::Plugin::WLBLEval
95 #bz7826 renames whitelist to welcomelist
96 header USER_IN_DEF_WELCOMELIST eval:check_from_in_default_welcomelist()
97 describe USER_IN_DEF_WELCOMELIST From: address is in the default welcome-list
98 tflags USER_IN_DEF_WELCOMELIST userconf nice noautolearn
99 score USER_IN_DEF_WELCOMELIST -15.0
100
101 ifplugin Mail::SpamAssassin::Plugin::RaciallyCharged
102 meta USER_IN_DEF_WHITELIST (USER_IN_DEF_WELCOMELIST)
103 describe USER_IN_DEF_WHITELIST DEPRECATED: See USER_IN_WELCOMELIST
104 tflags USER_IN_DEF_WHITELIST userconf nice noautolearn
105 score USER_IN_DEF_WELCOMELIST -0.01
106 score USER_IN_DEF_WHITELIST -15.0
107 endif
108 endif
109 else
110 ifplugin Mail::SpamAssassin::Plugin::WLBLEval
111 header USER_IN_DEF_WELCOMELIST eval:check_from_in_default_whitelist()
112 describe USER_IN_DEF_WELCOMELIST From: address is in the default welcome-list
113 tflags USER_IN_DEF_WELCOMELIST userconf nice noautolearn
114 score USER_IN_DEF_WELCOMELIST -0.01
115
116 meta USER_IN_DEF_WHITELIST (USER_IN_DEF_WELCOMELIST)
117 describe USER_IN_DEF_WHITELIST DEPRECATED: See USER_IN_DEF_WELCOMELIST
118 tflags USER_IN_DEF_WHITELIST userconf nice noautolearn
119 score USER_IN_DEF_WHITELIST -15.0
120 endif
121 endif
122
123 if can(Mail::SpamAssassin::Conf::feature_blocklist_welcomelist)
124 ifplugin Mail::SpamAssassin::Plugin::WLBLEval
125 #bz7826 renames blacklist to blocklist
126 header USER_IN_BLOCKLIST_TO eval:check_to_in_blocklist()
127 describe USER_IN_BLOCKLIST_TO User is listed in 'blocklist_to'
128 tflags USER_IN_BLOCKLIST_TO userconf nice noautolearn
129 score USER_IN_BLOCKLIST 10.0
130
131 ifplugin Mail::SpamAssassin::Plugin::RaciallyCharged
132 meta USER_IN_BLACKLIST_TO (USER_IN_BLOCKLIST_TO)
133 describe USER_IN_BLACKLIST_TO DEPRECATED: See USER_IN_BLOCKLIST_TO
134 tflags USER_IN_BLACKLIST_TO userconf nice noautolearn
135 score USER_IN_BLOCKLIST_TO 0.01
136 score USER_IN_BLACKLIST_TO 10.0
137 endif
138 endif
139 else
140 ifplugin Mail::SpamAssassin::Plugin::WLBLEval
141 header USER_IN_BLOCKLIST_TO eval:check_to_in_blacklist()
142 describe USER_IN_BLOCKLIST_TO User is listed in 'blocklist_to'
143 tflags USER_IN_BLOCKLIST_TO userconf nice noautolearn
144 score USER_IN_BLOCKLIST_TO 0.01
145
146 meta USER_IN_BLACKLIST_TO (USER_IN_BLOCKLIST_TO)
147 describe USER_IN_BLACKLIST_TO DEPRECATED: See USER_IN_BLOCKLIST_TO
148 tflags USER_IN_BLACKLIST_TO userconf nice noautolearn
149 score USER_IN_BLACKLIST_TO 10.0
150 endif
151 endif
152
153 if can(Mail::SpamAssassin::Conf::feature_blocklist_welcomelist)
154 ifplugin Mail::SpamAssassin::Plugin::WLBLEval
155 #bz7826 renames whitelist to welcomelist
156 header USER_IN_WELCOMELIST_TO eval:check_to_in_welcomelist()
157 describe USER_IN_WELCOMELIST_TO User is listed in 'welcomelist_to'
158 tflags USER_IN_WELCOMELIST_TO userconf nice noautolearn
159 score USER_IN_WELCOMELIST_TO -6.0
160
161 ifplugin Mail::SpamAssassin::Plugin::RaciallyCharged
162 meta USER_IN_WHITELIST_TO (USER_IN_WELCOMELIST_TO)
163 describe USER_IN_WHITELIST_TO DEPRECATED: See USER_IN_WELCOMELIST_TO
164 tflags USER_IN_WHITELIST_TO userconf nice noautolearn
165 score USER_IN_WELCOMELIST_TO -0.01
166 score USER_IN_WHITELIST_TO -6.0
167 endif
168 endif
169 else
170 ifplugin Mail::SpamAssassin::Plugin::WLBLEval
171 header USER_IN_WELCOMELIST_TO eval:check_to_in_whitelist()
172 describe USER_IN_WELCOMELIST_TO User is listed in 'welcomelist_to'
173 tflags USER_IN_WELCOMELIST_TO userconf nice noautolearn
174 score USER_IN_WELCOMELIST_TO -0.01
175
176 meta USER_IN_WHITELIST_TO (USER_IN_WELCOMELIST_TO)
177 describe USER_IN_WHITELIST_TO DEPRECATED: See USER_IN_WELCOMELIST_TO
178 tflags USER_IN_WHITELIST_TO userconf nice noautolearn
179 score USER_IN_WHITELIST_TO -6.0
180 endif
181 endif
182
183 ifplugin Mail::SpamAssassin::Plugin::WLBLEval
184 header USER_IN_MORE_SPAM_TO eval:check_to_in_more_spam()
185 describe USER_IN_MORE_SPAM_TO User is listed in 'more_spam_to'
186 tflags USER_IN_MORE_SPAM_TO userconf nice noautolearn
187
188 header USER_IN_ALL_SPAM_TO eval:check_to_in_all_spam()
189 describe USER_IN_ALL_SPAM_TO User is listed in 'all_spam_to'
190 tflags USER_IN_ALL_SPAM_TO userconf nice noautolearn
191 endif
192
193 if (version >= 3.004000)
194 ifplugin Mail::SpamAssassin::Plugin::WLBLEval
195 body URI_HOST_IN_BLACKLIST eval:check_uri_host_in_blacklist()
196 describe URI_HOST_IN_BLACKLIST Host or Domain is listed in the user's URI black-list
197 tflags URI_HOST_IN_BLACKLIST userconf noautolearn
198
199 body URI_HOST_IN_WHITELIST eval:check_uri_host_in_whitelist()
200 describe URI_HOST_IN_WHITELIST Host or Domain is listed in the user's URI white-list
201 tflags URI_HOST_IN_WHITELIST userconf nice noautolearn
202
203 # Bug 7256, using a header rule with an eval() function does not work the way
204 # this was intended.
205
206 # header HEADER_HOST_IN_BLACKLIST eval:check_uri_host_listed('BLACK')
207 # describe HEADER_HOST_IN_BLACKLIST Host or Domain in header is listed in the user's URI black-list
208 # tflags HEADER_HOST_IN_BLACKLIST userconf noautolearn
209
210 # header HEADER_HOST_IN_WHITELIST eval:check_uri_host_listed('WHITE')
211 # describe HEADER_HOST_IN_WHITELIST Host or Domain in header is listed in the user's URI white-list
212 # tflags HEADER_HOST_IN_WHITELIST userconf nice noautolearn
213 endif
214 endif
215
216 ###########################################################################
217 # Default welcomelists. These should be addresses which send mail that is often
218 # tagged (incorrectly) as spam; it also helps that they be addresses of big
219 # companies with lots of lawyers, so if spammers impersonate them, they'll get
220 # into big trouble, so it doesn't provide a shortcut around SpamAssassin.
221 #
222 # Welcomelist and blocklist addresses are now file-glob-style patterns, so
223 # "friend@somewhere.com", "*@isp.com", or "*.domain.net" will all work.
224 #
225 # Please do not add unmoderated public mailing lists here. They are
226 # too easily abused by spammers.
227
228 # Should really not be used these days, use def_welcomelist_auth if possible.
229
230 ifplugin Mail::SpamAssassin::Plugin::WLBLEval
231
232 # def_welcomelist_from_rcvd *@foo.com foo.com
233
234 endif