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