Mercurial > dnsbl
annotate dnsbl.conf @ 253:2d6ecd03bbbe stable-6-0-29
update date on the man pages
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 08 Apr 2012 16:14:32 -0700 |
parents | 15bf4f68a0b2 |
children | d6d5c50b9278 |
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; | |
178 | 19 spamassassin 4; |
20 require_match yes; | |
21 dcc_greylist yes; | |
22 dcc_bulk_threshold 50; | |
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"; |
174 | 41 dnsbl sbl zen.spamhaus.org "Mail from %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s"; |
94 | 42 dnsbl xbl xbl.spamhaus.org "Mail from %s rejected - xbl; see http://www.spamhaus.org/query/bl?ip=%s"; |
249 | 43 dnswl dnswl.org list.dnswl.org 2; |
171 | 44 dnsbl_list local sbl; |
249 | 45 dnswl_list dnswl.org; |
94 | 46 |
47 content on { | |
48 filter sbl-xbl.spamhaus.org "Mail containing %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s"; | |
122 | 49 uribl multi.surbl.org "Mail containing %s rejected - surbl; see http://www.rulesemporium.com/cgi-bin/uribl.cgi?bl0=1&domain0=%s"; |
119 | 50 #uribl black.uribl.com "Mail containing %s rejected - uribl; see http://l.uribl.com/?d=%s"; |
94 | 51 ignore { include "hosts-ignore.conf"; }; |
52 tld { include "tld.conf"; }; | |
119 | 53 cctld { include "cctld.conf"; }; |
54 html_tags { include "html-tags.conf"; }; | |
94 | 55 html_limit off; |
56 host_limit soft 20; | |
178 | 57 spamassassin 5; |
58 require_match yes; | |
59 dcc_greylist yes; | |
60 dcc_bulk_threshold 20; | |
94 | 61 }; |
62 | |
216
784030ac71f1
Never whitelist self addressed mail. Changes for Fedora 10 and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
179
diff
changeset
|
63 generic "^dsl.static.*ttnet.net.tr$|(^|[x.-])(ppp|h|host)?([0-9]{1,3}[x.-](Red-|dynamic[x.-])?){4}" |
168 | 64 "your mail server %s seems to have a generic name"; |
65 | |
233
5c3e9bf45bb5
Add whitelisting by regex expression filtering.
Carl Byington <carl@five-ten-sg.com>
parents:
216
diff
changeset
|
66 white_regex "=example.com=user@yourhostingaccount.com$"; |
5c3e9bf45bb5
Add whitelisting by regex expression filtering.
Carl Byington <carl@five-ten-sg.com>
parents:
216
diff
changeset
|
67 |
94 | 68 env_to { |
100
63e8633abc34
allow empty env_to at global context to remove all restrictions on child contexts
carl
parents:
94
diff
changeset
|
69 # !! 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
|
70 # child contexts are not allowed to specify recipient addresses outside these domains |
179 | 71 # if this is a backup-mx, you need to include here domains for which you relay to the primary mx |
174 | 72 include "/etc/mail/local-host-names"; |
94 | 73 }; |
74 | |
75 context whitelist { | |
76 content off {}; | |
77 env_to { | |
78 # dcc_to ok { include "/var/dcc/whitecommon"; }; | |
79 }; | |
80 env_from white {}; # white forces all unmatched from addresses (everyone in this case) to be whitelisted | |
81 # so all mail TO these env_to addresses is accepted | |
82 }; | |
83 | |
84 context abuse { | |
85 dnsbl_list xbl; | |
86 content off {}; | |
174 | 87 generic "^$ " " "; # regex cannot match, to disable generic rdns rejects |
94 | 88 env_to { |
89 abuse@ # no content filtering on abuse reports | |
90 postmaster@ # "" | |
91 }; | |
92 env_from unknown {}; # ignore all parent white/black listing | |
93 }; | |
94 | |
95 context minimal { | |
171 | 96 dnsbl_list sbl; |
178 | 97 content on { |
98 spamassassin 10; | |
99 dcc_bulk_threshold many; | |
100 }; | |
171 | 101 generic "^$ " " "; # regex cannot match, to disable generic rdns rejects |
94 | 102 env_to { |
103 }; | |
104 }; | |
105 | |
106 context blacklist { | |
107 env_to { | |
108 # dcc_to many { include "/var/dcc/whitecommon"; }; | |
109 }; | |
110 env_from black {}; # black forces all unmatched from addresses (everyone in this case) to be blacklisted | |
111 # so all mail TO these env_to addresses is rejected | |
112 }; | |
113 | |
114 env_from unknown { | |
115 abuse@ abuse; # replies to abuse reports use the abuse context | |
116 # dcc_from { include "/var/dcc/whitecommon"; }; | |
117 }; | |
153 | 118 |
167
9b129ed78d7d
actually use spamassassin result, allow build without spam assassin, only call it if some recipient needs it.
carl
parents:
165
diff
changeset
|
119 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
|
120 # install should create /etc/dnsbl/autowhite writable by userid dnsbl |
94 | 121 }; |
122 |