Mercurial > dnsbl
comparison dnsbl.conf @ 75:1142e46be550
start coding on new config syntax
author | carl |
---|---|
date | Wed, 13 Jul 2005 23:04:14 -0700 |
parents | c812a06f87bf |
children | 505e77188317 |
comparison
equal
deleted
inserted
replaced
74:b7449114ebb0 | 75:1142e46be550 |
---|---|
1 ############################################## | 1 context main { |
2 # content scanning parameters | 2 dnsbl local blackholes.five-ten-sg.com "Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s"; |
3 # | 3 dnsbl sbl sbl-xbl.spamhaus.org "Mail from %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s"; |
4 content sbl-xbl.spamhaus.org 'Mail containing %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s' | 4 dnsbl xbl xbl.spamhaus.org "Mail from %s rejected - xbl; see http://www.spamhaus.org/query/bl?ip=%s"; |
5 #host_limit 20 'Mail containing too many host names rejected' | 5 dnsbl_list local sbl; |
6 host_soft_limit 20 | |
7 #html_limit 20 'Mail containing excessive bad html tags rejected' | |
8 include hosts-ignore.conf | |
9 include html-tags.conf | |
10 include tld.conf | |
11 | 6 |
7 content on { | |
8 filter sbl-xbl.spamhaus.org "Mail containing %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s"; | |
9 ignore { include "hosts-ignore.conf"; }; | |
10 tld { include "tld.conf"; }; | |
11 html_tags { include "html-tags.conf"; }; | |
12 html_limit off; | |
13 host_limit soft 20; | |
14 }; | |
12 | 15 |
13 ############################################## | 16 env_to { |
14 # define the dnsbls to use | 17 example.com; # !! replace this with your domain name |
15 # | 18 # child contexts are not allowed to specify recipient addresses outside these domains |
16 dnsbl LOCAL blackholes.five-ten-sg.com 'Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s' | 19 }; |
17 #dnsbl SPEWS blackholes.spews.org 'Mail from %s rejected - spews; see http://www.spews.org/ask.cgi?x=%s' | |
18 dnsbl SBL sbl-xbl.spamhaus.org 'Mail from %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s' | |
19 | 20 |
21 context whitelist { | |
22 content off {}; | |
23 env_to { | |
24 # dcc_to ok { include "/var/dcc/whitecommon"; }; | |
25 }; | |
26 env_from white {}; # white forces all unmatched from addresses (everyone in this case) to be whitelisted | |
27 # so all mail TO these env_to addresses is accepted | |
28 }; | |
20 | 29 |
21 ############################################## | 30 context abuse { |
22 # define the (default and other) lists of dnsbls to use | 31 dnsbl_list xbl; |
23 # | 32 content off {}; |
24 dnsbl_list DEFAULT LOCAL SBL | 33 env_to { |
34 abuse@ # no content filtering on abuse reports | |
35 postmaster@ # "" | |
36 }; | |
37 env_from unknown {}; # ignore all parent white/black listing | |
38 }; | |
25 | 39 |
40 context minimal { | |
41 dnsbl_list sbl; | |
42 content on {}; | |
43 env_to { | |
44 }; | |
45 }; | |
26 | 46 |
27 ############################################## | 47 context blacklist { |
28 # define the (default and other) env_from maps | 48 env_to { |
29 # | 49 # dcc_to many { include "/var/dcc/whitecommon"; }; |
50 }; | |
51 env_from black {}; # black forces all unmatched from addresses (everyone in this case) to be blacklisted | |
52 # so all mail TO these env_to addresses is rejected | |
53 }; | |
30 | 54 |
31 ############################################## | 55 env_from unknown { |
32 # specify dnsbl_lists and env_from maps to use for specific recipients | 56 abuse@ abuse; # replies to abuse reports use the abuse context |
33 # | 57 # dcc_from { include "/var/dcc/whitecommon"; }; |
58 }; | |
59 }; | |
34 | 60 |
35 ############################################## | |
36 # specify dnsbl_lists and env_from maps to use for clients domains | |
37 # |