4
|
1 # $Id$
|
0
|
2 #
|
|
3 # lines start with a command token, following by argument tokens
|
|
4 # tokens are separated by spaces or tabs
|
|
5 #
|
|
6 #
|
20
|
7 # content:
|
|
8 # second token is the dns suffix used for the actual lookups
|
|
9 # third token? is a string enclosed in single quotes, so it
|
|
10 # is not really a token. This is the error message, with
|
|
11 # up to two %s parameters for the offending host name and
|
|
12 # client ip address respectively.
|
|
13 #
|
0
|
14 # dnsbl:
|
|
15 # second token is the name of this dnsbl
|
|
16 # third token is the dns suffix used for the actual lookups
|
|
17 # fourth token? is a string enclosed in single quotes, so it
|
|
18 # is not really a token. This is the error message, with
|
|
19 # up to two %s parameters for the client ip address.
|
|
20 #
|
|
21 # dnsbl_list:
|
|
22 # second token is the name of this list of dnsbls
|
|
23 # subsequent tokes are the names of the previously defined dnsbls
|
|
24 #
|
|
25 # env_from:
|
|
26 # second token is the name of this envelope-from-map. There will
|
|
27 # generally be multiple lines with the same name.
|
|
28 # third token is the envelope from value from the smtp conversation,
|
|
29 # or just the domain part that follows the @ symbol.
|
|
30 # fourth token is BLACK, WHITE, or the name of a previously defined
|
|
31 # envelope-from-map. BLACK causes mail from this sender to be
|
|
32 # rejected with "no such user". WHITE causes mail to be accepted
|
|
33 # and the dns based lists are ignored. DEFAULT may be used to override
|
|
34 # the contents of other maps that are copied into this map, and
|
|
35 # set that sender back to the default (not white or black listed,
|
|
36 # and subject to dnsbl lookups).
|
|
37 #
|
|
38 # env_to:
|
|
39 # second token is the envelope recipient value from the smtp conversation,
|
|
40 # or just the domain part that follows the @ symbol.
|
|
41 # third token is the name of a dnsbl-list, or WHITE or BLACK.
|
|
42 # fourth token is the name of an envelope-from-map, or WHITE or BLACK.
|
|
43 #
|
|
44 # If either one is BLACK, mail to this recipient is rejected with
|
|
45 # "no such user", and the dns lists are not checked.
|
|
46 #
|
|
47 # If the envelope-from-map name is WHITE, mail to this recipient is accepted
|
|
48 # and the dns lists are not checked.
|
|
49 #
|
|
50 # If the envelope-from-map exists, the map is checked for the presence
|
|
51 # of the sender. A WHITE or BLACK answer is definitive and the dns lists
|
|
52 # are not checked.
|
|
53 #
|
|
54 # If the dnsbl-list name is WHITE, the dns lists are not checked and the
|
|
55 # mail is accepted. Otherwise, the dns lists are checked and the mail
|
|
56 # is rejected if any list has an A record for the standard dns based
|
|
57 # lookup scheme (reversed octets of the client followed by the dns suffix).
|
|
58 #
|
|
59 #
|
4
|
60 # include:
|
|
61 # second token is the path name of the dnsbl milter config file to be
|
|
62 # included.
|
|
63 #
|
|
64 #
|
|
65 # include_dcc:
|
|
66 # second token is the name of an envelope-from-map (EMAP below).
|
|
67 # third token is the path name of the dcc whiteclnt config file to be
|
|
68 # included.
|
|
69 # entries from the dcc config are mapped as:
|
14
|
70 # ok -> WHITE
|
|
71 # many -> BLACK
|
|
72 # env_from -> env_from EMAP xxx
|
|
73 # env_to -> env_to
|
|
74 # substitute mail_host -> env_from EMAP xxx
|
4
|
75 #
|
0
|
76 #
|
|
77 #
|
|
78 ##############################################
|
|
79 # define the dnsbls to use
|
|
80 #
|
|
81 #
|
20
|
82 content sbl-xbl.spamhaus.org 'Mail containing %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s'
|
0
|
83 dnsbl LOCAL blackholes.five-ten-sg.com 'Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s'
|
|
84 dnsbl SPEWS blackholes.spews.org 'Mail from %s rejected - spews; see http://www.spews.org/ask.cgi?x=%s'
|
|
85 dnsbl SBL sbl-xbl.spamhaus.org 'Mail from %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s'
|
|
86
|
|
87
|
|
88 ##############################################
|
|
89 # define the (default and other) lists of dnsbls to use
|
|
90 #
|
|
91 dnsbl_list DEFAULT LOCAL SPEWS SBL
|
|
92 dnsbl_list SIMPLE SBL
|
|
93 dnsbl_list CUST1 SBL
|
|
94 dnsbl_list CUST2 SPEWS SBL
|
|
95
|
|
96
|
|
97 ##############################################
|
|
98 # define the (default and other) env_from maps
|
|
99 #
|
|
100 env_from DEFAULT spammer@example.com BLACK
|
|
101 env_from DEFAULT yahoo.com BLACK
|
|
102
|
|
103 # special list for the vp
|
|
104 env_from TEST dummy-token DEFAULT # inherit the currently defined DEFAULT env_from mapping
|
|
105 env_from TEST nai.com BLACK # the vp does not like nai
|
14
|
106 env_from TEST yahoo.com DEFAULT #
|
0
|
107 env_from TEST mother@spammyisp.com WHITE # suppresses dnsbl checking
|
|
108
|
|
109
|
|
110 ##############################################
|
|
111 # specify dnsbl_lists and env_from maps to use for specific recipients
|
|
112 #
|
|
113 env_to abuse@mydomain.com WHITE WHITE # no dnsbl, no env_from map
|
|
114 env_to sales@mydomain.com SIMPLE NULL # sbl only, no env_from map
|
|
115 env_to vp@mydomain.com DEFAULT TEST # allow mail from mom
|
|
116 env_to old-emp@mydomain.com BLACK BLACK # return no such user even from backup mx machines
|
|
117
|
|
118 ##############################################
|
|
119 # specify dnsbl_lists and env_from maps to use for clients domains
|
|
120 #
|
|
121 env_to mydomain.com DEFAULT DEFAULT
|
14
|
122 env_to customer1.com CUST1 DEFAULT # all customer 1 domains use just sbl
|
|
123 env_to customer1a.com CUST1 DEFAULT
|
|
124 env_to customer1b.com CUST1 DEFAULT
|
|
125 env_to customer2.com CUST2 DEFAULT # all customer 2 domains use spews and sbl
|
|
126 env_to customer2a.com CUST2 DEFAULT
|
0
|
127
|
|
128
|
|
129 ##############################################
|
|
130 # you can also include nested config files
|
|
131 # file names are single tokens, no embedded blanks
|
|
132 #
|
|
133 include dnsbl.conf # this will generate a recursive include file syslog error message
|
14
|
134 include_dcc DEFAULT /var/dcc/whitecommon # this includes the default dcc whitelist file
|