]>
Commit | Line | Data |
---|---|---|
b780ea8d SI |
1 | # SpamAssassin rules file: spam and ham shortcircuiting using priorities |
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 | # SpamAssassin tries hard not to launch DNS queries before priority -100. | |
25 | # If you want to shortcircuit without launching unneeded queries, make sure | |
26 | # such rule priority is below -100. | |
27 | ||
28 | ########################################################################### | |
29 | ||
30 | priority USER_IN_WHITELIST -1000 | |
31 | priority USER_IN_DEF_WHITELIST -1000 | |
32 | priority USER_IN_ALL_SPAM_TO -1000 | |
33 | priority SUBJECT_IN_WHITELIST -1000 | |
34 | ||
35 | priority ALL_TRUSTED -950 | |
36 | ||
37 | priority SUBJECT_IN_BLACKLIST -900 | |
38 | priority USER_IN_BLACKLIST_TO -900 | |
39 | priority USER_IN_BLACKLIST -900 | |
40 | ||
41 | ########################################################################### | |
42 | ||
43 | ifplugin Mail::SpamAssassin::Plugin::Shortcircuit | |
44 | ||
45 | # override the default X-Spam-Status line from 10_basic.cf to | |
46 | # include shortcircuit info. (TODO: do we need a better way | |
47 | # to extend the default templates like this?) | |
48 | add_header all Status "_YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ shortcircuit=_SCTYPE_ autolearn=_AUTOLEARN_ version=_VERSION_" | |
49 | ||
50 | header SHORTCIRCUIT eval:check_shortcircuit() | |
51 | describe SHORTCIRCUIT Not all rules were run, due to a shortcircuited rule | |
52 | tflags SHORTCIRCUIT userconf noautolearn | |
53 | ||
54 | endif # Mail::SpamAssassin::Plugin::Shortcircuit | |
55 |