Mercurial > dnsbl
annotate dnsbl.conf @ 168:6bac960af6b4
add generic reverse dns filtering regex
author | carl |
---|---|
date | Thu, 30 Aug 2007 11:08:46 -0700 |
parents | 9b129ed78d7d |
children | 8deb51871b3d |
rev | line source |
---|---|
127 | 1 context main-default { |
2 // outbound dnsbl filtering to catch our own customers that end up on the sbl | |
136 | 3 dnsbl localp partial.blackholes.five-ten-sg.com "Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s"; |
127 | 4 dnsbl local blackholes.five-ten-sg.com "Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s"; |
5 dnsbl sbl sbl-xbl.spamhaus.org "Mail from %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s"; | |
6 dnsbl dul dul.dnsbl.sorbs.net "Mail from %s rejected - dul; see http://www.sorbs.net/lookup.shtml?%s"; | |
7 dnsbl_list local sbl dul; | |
8 | |
9 // outbound content filtering to prevent our own customers from sending spam | |
10 content on { | |
11 filter sbl-xbl.spamhaus.org "Mail containing %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s"; | |
12 uribl multi.surbl.org "Mail containing %s rejected - surbl; see http://www.rulesemporium.com/cgi-bin/uribl.cgi?bl0=1&domain0=%s"; | |
13 #uribl black.uribl.com "Mail containing %s rejected - uribl; see http://l.uribl.com/?d=%s"; | |
14 ignore { include "hosts-ignore.conf"; }; | |
15 tld { include "tld.conf"; }; | |
16 cctld { include "cctld.conf"; }; | |
17 html_tags { include "html-tags.conf"; }; | |
18 html_limit on 20 "Mail containing excessive bad html tags rejected"; | |
19 html_limit off; | |
20 host_limit on 20 "Mail containing excessive host names rejected"; | |
21 host_limit soft 20; | |
163 | 22 spamassassin 4; |
127 | 23 }; |
24 | |
25 // backscatter prevention - don't send bounces for mail that we accepted but could not forward | |
26 // we only send bounces to our own customers | |
27 env_from unknown { | |
28 "<>" black; | |
29 }; | |
136 | 30 |
144
31ff00ea6bfb
allow parent/child to share a fully qualified env_to address
carl
parents:
140
diff
changeset
|
31 // hourly recipient rate limit by smtp auth client id |
140 | 32 rate_limit 30 { // default |
144
31ff00ea6bfb
allow parent/child to share a fully qualified env_to address
carl
parents:
140
diff
changeset
|
33 #fred 100; // override default limits |
31ff00ea6bfb
allow parent/child to share a fully qualified env_to address
carl
parents:
140
diff
changeset
|
34 #joe 10; // "" |
136 | 35 }; |
127 | 36 }; |
37 | |
94 | 38 context main { |
136 | 39 dnsbl localp partial.blackholes.five-ten-sg.com "Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s"; |
94 | 40 dnsbl local blackholes.five-ten-sg.com "Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s"; |
41 dnsbl sbl sbl-xbl.spamhaus.org "Mail from %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s"; | |
42 dnsbl xbl xbl.spamhaus.org "Mail from %s rejected - xbl; see http://www.spamhaus.org/query/bl?ip=%s"; | |
43 dnsbl dul dul.dnsbl.sorbs.net "Mail from %s rejected - dul; see http://www.sorbs.net/lookup.shtml?%s"; | |
44 dnsbl_list local sbl dul; | |
45 | |
46 content on { | |
47 filter sbl-xbl.spamhaus.org "Mail containing %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s"; | |
122 | 48 uribl multi.surbl.org "Mail containing %s rejected - surbl; see http://www.rulesemporium.com/cgi-bin/uribl.cgi?bl0=1&domain0=%s"; |
119 | 49 #uribl black.uribl.com "Mail containing %s rejected - uribl; see http://l.uribl.com/?d=%s"; |
94 | 50 ignore { include "hosts-ignore.conf"; }; |
51 tld { include "tld.conf"; }; | |
119 | 52 cctld { include "cctld.conf"; }; |
53 html_tags { include "html-tags.conf"; }; | |
94 | 54 html_limit off; |
55 host_limit soft 20; | |
163 | 56 spamassassin 5; |
94 | 57 }; |
58 | |
168 | 59 generic "(^|[.-])(host)?([0-9]{1,3}[.-](Red-|dynamic[.-])?){4}" |
60 "your mail server %s seems to have a generic name"; | |
61 | |
94 | 62 env_to { |
100
63e8633abc34
allow empty env_to at global context to remove all restrictions on child contexts
carl
parents:
94
diff
changeset
|
63 # !! replace this with your domain names |
63e8633abc34
allow empty env_to at global context to remove all restrictions on child contexts
carl
parents:
94
diff
changeset
|
64 # child contexts are not allowed to specify recipient addresses outside these domains |
63e8633abc34
allow empty env_to at global context to remove all restrictions on child contexts
carl
parents:
94
diff
changeset
|
65 # or leave this empty to allow unrestricted child contexts |
63e8633abc34
allow empty env_to at global context to remove all restrictions on child contexts
carl
parents:
94
diff
changeset
|
66 # example.com; |
94 | 67 }; |
68 | |
69 context whitelist { | |
70 content off {}; | |
71 env_to { | |
72 # dcc_to ok { include "/var/dcc/whitecommon"; }; | |
73 }; | |
74 env_from white {}; # white forces all unmatched from addresses (everyone in this case) to be whitelisted | |
75 # so all mail TO these env_to addresses is accepted | |
76 }; | |
77 | |
78 context abuse { | |
79 dnsbl_list xbl; | |
80 content off {}; | |
81 env_to { | |
82 abuse@ # no content filtering on abuse reports | |
83 postmaster@ # "" | |
84 }; | |
85 env_from unknown {}; # ignore all parent white/black listing | |
86 }; | |
87 | |
88 context minimal { | |
89 dnsbl_list sbl dul; | |
90 content on {}; | |
91 env_to { | |
92 }; | |
93 }; | |
94 | |
95 context blacklist { | |
96 env_to { | |
97 # dcc_to many { include "/var/dcc/whitecommon"; }; | |
98 }; | |
99 env_from black {}; # black forces all unmatched from addresses (everyone in this case) to be blacklisted | |
100 # so all mail TO these env_to addresses is rejected | |
101 }; | |
102 | |
103 env_from unknown { | |
104 abuse@ abuse; # replies to abuse reports use the abuse context | |
105 # dcc_from { include "/var/dcc/whitecommon"; }; | |
106 }; | |
153 | 107 |
167
9b129ed78d7d
actually use spamassassin result, allow build without spam assassin, only call it if some recipient needs it.
carl
parents:
165
diff
changeset
|
108 autowhite 90 "autowhite/my-auto-whitelist"; |
9b129ed78d7d
actually use spamassassin result, allow build without spam assassin, only call it if some recipient needs it.
carl
parents:
165
diff
changeset
|
109 # install should create /etc/dnsbl/autowhite writable by userid dnsbl |
94 | 110 }; |
111 |