]>
Commit | Line | Data |
---|---|---|
b780ea8d SI |
1 | # SpamAssassin rules file: compensation for common false positives |
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 | # Header compensation tests | |
26 | ||
21dcadbf | 27 | require_version 4.000000 |
b780ea8d SI |
28 | |
29 | header __HAS_RCVD exists:Received | |
21dcadbf | 30 | priority __HAS_RCVD -2000 # Bug 8078 |
b780ea8d SI |
31 | meta NO_RECEIVED (!__HAS_RCVD) |
32 | tflags NO_RECEIVED nice userconf | |
33 | describe NO_RECEIVED Informational: message has no Received headers | |
34 | ||
35 | ########################################################################### | |
36 | ||
37 | ifplugin Mail::SpamAssassin::Plugin::RelayEval | |
38 | ||
39 | # The message was never sent via an untrustworthy host. | |
40 | header ALL_TRUSTED eval:check_all_trusted() | |
41 | describe ALL_TRUSTED Passed through trusted hosts only via SMTP | |
42 | tflags ALL_TRUSTED nice userconf | |
43 | ||
44 | header NO_RELAYS eval:check_no_relays() | |
45 | tflags NO_RELAYS nice userconf | |
46 | describe NO_RELAYS Informational: message was not relayed via SMTP | |
47 | ||
48 | endif |