]>
Commit | Line | Data |
---|---|---|
b780ea8d SI |
1 | # SpamAssassin rules file: DNSWL tests |
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 | ||
26 | ifplugin Mail::SpamAssassin::Plugin::DNSEval | |
27 | ||
28 | # 0.000 0.0000 0.0000 0.500 1.00 -8.00 T_RCVD_IN_DNSWL_HI | |
29 | # 0.817 0.2509 3.5683 0.066 0.50 1.00 __RCVD_IN_DNSWL | |
30 | # 0.059 0.0000 0.3481 0.000 0.50 -1.00 T_RCVD_IN_DNSWL_LOW | |
31 | # 0.163 0.0000 0.9574 0.000 0.00 -4.00 T_RCVD_IN_DNSWL_MED | |
32 | ||
33 | header __RCVD_IN_DNSWL eval:check_rbl('dnswl-firsttrusted', 'list.dnswl.org.') | |
34 | tflags __RCVD_IN_DNSWL nice net | |
35 | reuse __RCVD_IN_DNSWL | |
36 | ||
37 | header RCVD_IN_DNSWL_NONE eval:check_rbl_sub('dnswl-firsttrusted', '^127\.0\.\d+\.0$') | |
38 | describe RCVD_IN_DNSWL_NONE Sender listed at https://www.dnswl.org/, no trust | |
39 | tflags RCVD_IN_DNSWL_NONE nice net | |
40 | reuse RCVD_IN_DNSWL_NONE | |
41 | ||
42 | header RCVD_IN_DNSWL_LOW eval:check_rbl_sub('dnswl-firsttrusted', '^127\.0\.\d+\.1$') | |
43 | describe RCVD_IN_DNSWL_LOW Sender listed at https://www.dnswl.org/, low trust | |
44 | tflags RCVD_IN_DNSWL_LOW nice net | |
45 | reuse RCVD_IN_DNSWL_LOW | |
46 | ||
47 | header RCVD_IN_DNSWL_MED eval:check_rbl_sub('dnswl-firsttrusted', '^127\.0\.\d+\.2$') | |
48 | describe RCVD_IN_DNSWL_MED Sender listed at https://www.dnswl.org/, medium trust | |
49 | tflags RCVD_IN_DNSWL_MED nice net | |
50 | reuse RCVD_IN_DNSWL_MED | |
51 | ||
52 | header RCVD_IN_DNSWL_HI eval:check_rbl_sub('dnswl-firsttrusted', '^127\.0\.\d+\.3$') | |
53 | describe RCVD_IN_DNSWL_HI Sender listed at https://www.dnswl.org/, high trust | |
54 | tflags RCVD_IN_DNSWL_HI nice net | |
55 | reuse RCVD_IN_DNSWL_HI | |
56 | ||
57 | ## score RCVD_IN_DNSWL_LOW -1 | |
58 | ## score RCVD_IN_DNSWL_MED -4 | |
59 | ## score RCVD_IN_DNSWL_HI -8 | |
60 | ||
61 | header RCVD_IN_DNSWL_BLOCKED eval:check_rbl_sub('dnswl-firsttrusted', '^127\.0\.\d+\.255$') | |
62 | describe RCVD_IN_DNSWL_BLOCKED ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists\#dnsbl-block for more information. | |
63 | tflags RCVD_IN_DNSWL_BLOCKED net noautolearn | |
64 | reuse RCVD_IN_DNSWL_BLOCKED | |
65 | ||
66 | if can(Mail::SpamAssassin::Conf::feature_dns_block_rule) | |
67 | dns_block_rule RCVD_IN_DNSWL_BLOCKED list.dnswl.org | |
68 | endif | |
69 | ||
70 | endif |