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