comparison xml/sample.conf @ 14:443aa0e8c6fa

changes suggested by Nigel Horne
author carl
date Mon, 26 Apr 2004 09:28:30 -0700
parents 9ca440c8d187
children 948343c0cfdd
comparison
equal deleted inserted replaced
13:2752e512fd32 14:443aa0e8c6fa
1 # $Id$ 1 # $Id$
2 # 2 #
3 # lines start with a command token, following by argument tokens 3 # lines start with a command token, following by argument tokens
4 # tokens are separated by spaces or tabs 4 # tokens are separated by spaces or tabs
5 # 5 #
6 #
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 url and the client ip
12 # address.
13 # 6 #
14 # dnsbl: 7 # dnsbl:
15 # second token is the name of this dnsbl 8 # second token is the name of this dnsbl
16 # third token is the dns suffix used for the actual lookups 9 # third token is the dns suffix used for the actual lookups
17 # fourth token? is a string enclosed in single quotes, so it 10 # fourth token? is a string enclosed in single quotes, so it
65 # include_dcc: 58 # include_dcc:
66 # second token is the name of an envelope-from-map (EMAP below). 59 # 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 60 # third token is the path name of the dcc whiteclnt config file to be
68 # included. 61 # included.
69 # entries from the dcc config are mapped as: 62 # entries from the dcc config are mapped as:
70 # ok -> WHITE (TAG below) 63 # ok -> WHITE
71 # many -> BLACK (TAG below) 64 # many -> BLACK
72 # env_to -> env_to xxx TAG 65 # env_from -> env_from EMAP xxx
73 # env_from -> env_from EMAP xxx TAG TAG 66 # env_to -> env_to
74 # substitute mail_host -> env_from EMAP xxx TAG TAG 67 # substitute mail_host -> env_from EMAP xxx
75 # 68 #
76 # 69 #
77 # 70 #
78 ############################################## 71 ##############################################
79 # define the dnsbls to use 72 # define the dnsbls to use
80 # 73 #
81 #
82 content sbl-xbl.spamhaus.org 'Mail containing %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s'
83 # 74 #
84 dnsbl LOCAL blackholes.five-ten-sg.com 'Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s' 75 dnsbl LOCAL blackholes.five-ten-sg.com 'Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s'
85 dnsbl SPEWS blackholes.spews.org 'Mail from %s rejected - spews; see http://www.spews.org/ask.cgi?x=%s' 76 dnsbl SPEWS blackholes.spews.org 'Mail from %s rejected - spews; see http://www.spews.org/ask.cgi?x=%s'
86 dnsbl SBL sbl-xbl.spamhaus.org 'Mail from %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s' 77 dnsbl SBL sbl-xbl.spamhaus.org 'Mail from %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s'
87 78
102 env_from DEFAULT yahoo.com BLACK 93 env_from DEFAULT yahoo.com BLACK
103 94
104 # special list for the vp 95 # special list for the vp
105 env_from TEST dummy-token DEFAULT # inherit the currently defined DEFAULT env_from mapping 96 env_from TEST dummy-token DEFAULT # inherit the currently defined DEFAULT env_from mapping
106 env_from TEST nai.com BLACK # the vp does not like nai 97 env_from TEST nai.com BLACK # the vp does not like nai
107 env_from TEST yahoo.com DEFAULT # override the blacklisting of yahoo 98 env_from TEST yahoo.com DEFAULT #
108 env_from TEST mother@spammyisp.com WHITE # suppresses dnsbl checking 99 env_from TEST mother@spammyisp.com WHITE # suppresses dnsbl checking
109 100
110 101
111 ############################################## 102 ##############################################
112 # specify dnsbl_lists and env_from maps to use for specific recipients 103 # specify dnsbl_lists and env_from maps to use for specific recipients
114 env_to abuse@mydomain.com WHITE WHITE # no dnsbl, no env_from map 105 env_to abuse@mydomain.com WHITE WHITE # no dnsbl, no env_from map
115 env_to sales@mydomain.com SIMPLE NULL # sbl only, no env_from map 106 env_to sales@mydomain.com SIMPLE NULL # sbl only, no env_from map
116 env_to vp@mydomain.com DEFAULT TEST # allow mail from mom 107 env_to vp@mydomain.com DEFAULT TEST # allow mail from mom
117 env_to old-emp@mydomain.com BLACK BLACK # return no such user even from backup mx machines 108 env_to old-emp@mydomain.com BLACK BLACK # return no such user even from backup mx machines
118 109
119
120 ############################################## 110 ##############################################
121 # specify dnsbl_lists and env_from maps to use for clients domains 111 # specify dnsbl_lists and env_from maps to use for clients domains
122 # 112 #
123 env_to mydomain.com DEFAULT DEFAULT 113 env_to mydomain.com DEFAULT DEFAULT
124 env_to customer1.com CUST1 CUST1 # all customer 1 domains use just sbl 114 env_to customer1.com CUST1 DEFAULT # all customer 1 domains use just sbl
125 env_to customer1a.com CUST1 CUST1 115 env_to customer1a.com CUST1 DEFAULT
126 env_to customer1b.com CUST1 CUST1 116 env_to customer1b.com CUST1 DEFAULT
127 env_to customer2.com CUST2 CUST2 # all customer 2 domains use spews and sbl 117 env_to customer2.com CUST2 DEFAULT # all customer 2 domains use spews and sbl
128 env_to customer2a.com CUST2 CUST2 118 env_to customer2a.com CUST2 DEFAULT
129 119
130 120
131 ############################################## 121 ##############################################
132 # you can also include nested config files 122 # you can also include nested config files
133 # file names are single tokens, no embedded blanks 123 # file names are single tokens, no embedded blanks
134 # 124 #
135 include dnsbl.conf # this will generate a recursive include file syslog error message 125 include dnsbl.conf # this will generate a recursive include file syslog error message
136 126 include_dcc DEFAULT /var/dcc/whitecommon # this includes the default dcc whitelist file
137
138 ##############################################
139 #
140 # fetch the normal dcc whitelist file and put the entries into the DEFAULT
141 # envelope-from-map. The ok/many tags in the DCC file turn into
142 # WHITE/BLACK entries when imported. The env_to entries from the DCC
143 # config turn into env_to entries here, and are therefore global to all
144 # domains. The assumption is that a client will only have whitelist
145 # env_to entries for their own domains, in their own dcc config file. The
146 # env_from and substitute mail_host entries turn into env_from entries in
147 # the named (DEFAULT in this case) envelope-from-map.
148 #
149 #
150 include_dcc DEFAULT /var/dcc/whitecommon
151 include_dcc CUST1 /var/dcc/whitecommon.cust1
152 include_dcc CUST2 /var/dcc/whitecommon.cust2