annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
75
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
1 context main {
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
2 dnsbl local blackholes.five-ten-sg.com "Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s";
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
3 dnsbl sbl sbl-xbl.spamhaus.org "Mail from %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s";
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
4 dnsbl xbl xbl.spamhaus.org "Mail from %s rejected - xbl; see http://www.spamhaus.org/query/bl?ip=%s";
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
5 dnsbl_list local sbl;
41
d95af8129dfa updates for 3.2, changing file layout, add queueid to messages
carl
parents:
diff changeset
6
75
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
7 content on {
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
8 filter sbl-xbl.spamhaus.org "Mail containing %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s";
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
9 ignore { include "hosts-ignore.conf"; };
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
10 tld { include "tld.conf"; };
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
11 html_tags { include "html-tags.conf"; };
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
12 html_limit off;
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
13 host_limit soft 20;
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
14 };
41
d95af8129dfa updates for 3.2, changing file layout, add queueid to messages
carl
parents:
diff changeset
15
75
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
16 env_to {
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
17 example.com; # !! replace this with your domain name
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
18 # child contexts are not allowed to specify recipient addresses outside these domains
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
19 };
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
20
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
21 context whitelist {
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
22 content off {};
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
23 env_to {
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
24 # dcc_to ok { include "/var/dcc/whitecommon"; };
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
25 };
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
26 env_from white {}; # white forces all unmatched from addresses (everyone in this case) to be whitelisted
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
27 # so all mail TO these env_to addresses is accepted
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
28 };
41
d95af8129dfa updates for 3.2, changing file layout, add queueid to messages
carl
parents:
diff changeset
29
75
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
30 context abuse {
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
31 dnsbl_list xbl;
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
32 content off {};
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
33 env_to {
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
34 abuse@ # no content filtering on abuse reports
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
35 postmaster@ # ""
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
36 };
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
37 env_from unknown {}; # ignore all parent white/black listing
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
38 };
41
d95af8129dfa updates for 3.2, changing file layout, add queueid to messages
carl
parents:
diff changeset
39
75
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
40 context minimal {
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
41 dnsbl_list sbl;
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
42 content on {};
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
43 env_to {
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
44 };
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
45 };
41
d95af8129dfa updates for 3.2, changing file layout, add queueid to messages
carl
parents:
diff changeset
46
75
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
47 context blacklist {
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
48 env_to {
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
49 # dcc_to many { include "/var/dcc/whitecommon"; };
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
50 };
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
51 env_from black {}; # black forces all unmatched from addresses (everyone in this case) to be blacklisted
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
52 # so all mail TO these env_to addresses is rejected
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
53 };
41
d95af8129dfa updates for 3.2, changing file layout, add queueid to messages
carl
parents:
diff changeset
54
75
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
55 env_from unknown {
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
56 abuse@ abuse; # replies to abuse reports use the abuse context
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
57 # dcc_from { include "/var/dcc/whitecommon"; };
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
58 };
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
59 };
1142e46be550 start coding on new config syntax
carl
parents: 70
diff changeset
60