Mercurial > dnsbl
annotate dnsbl.conf @ 167:9b129ed78d7d stable-6-0-6
actually use spamassassin result, allow build without spam assassin, only call it if some recipient needs it.
author | carl |
---|---|
date | Mon, 27 Aug 2007 20:49:19 -0700 |
parents | bf828f785407 |
children | 6bac960af6b4 |
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 | |
59 env_to { | |
100
63e8633abc34
allow empty env_to at global context to remove all restrictions on child contexts
carl
parents:
94
diff
changeset
|
60 # !! 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
|
61 # 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
|
62 # 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
|
63 # example.com; |
94 | 64 }; |
65 | |
66 context whitelist { | |
67 content off {}; | |
68 env_to { | |
69 # dcc_to ok { include "/var/dcc/whitecommon"; }; | |
70 }; | |
71 env_from white {}; # white forces all unmatched from addresses (everyone in this case) to be whitelisted | |
72 # so all mail TO these env_to addresses is accepted | |
73 }; | |
74 | |
75 context abuse { | |
76 dnsbl_list xbl; | |
77 content off {}; | |
78 env_to { | |
79 abuse@ # no content filtering on abuse reports | |
80 postmaster@ # "" | |
81 }; | |
82 env_from unknown {}; # ignore all parent white/black listing | |
83 }; | |
84 | |
85 context minimal { | |
86 dnsbl_list sbl dul; | |
87 content on {}; | |
88 env_to { | |
89 }; | |
90 }; | |
91 | |
92 context blacklist { | |
93 env_to { | |
94 # dcc_to many { include "/var/dcc/whitecommon"; }; | |
95 }; | |
96 env_from black {}; # black forces all unmatched from addresses (everyone in this case) to be blacklisted | |
97 # so all mail TO these env_to addresses is rejected | |
98 }; | |
99 | |
100 env_from unknown { | |
101 abuse@ abuse; # replies to abuse reports use the abuse context | |
102 # dcc_from { include "/var/dcc/whitecommon"; }; | |
103 }; | |
153 | 104 |
167
9b129ed78d7d
actually use spamassassin result, allow build without spam assassin, only call it if some recipient needs it.
carl
parents:
165
diff
changeset
|
105 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
|
106 # install should create /etc/dnsbl/autowhite writable by userid dnsbl |
94 | 107 }; |
108 |