Mercurial > dnsbl
annotate xml/sample.conf @ 54:dca56b2de019
updates for 3.6, better documentation on removing content filtering, missing some files in cvs
author | carl |
---|---|
date | Wed, 08 Sep 2004 11:58:45 -0700 |
parents | 6b79046b18c2 |
children | 57607387263d |
rev | line source |
---|---|
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 # | |
28 | 7 # tld: |
8 # second token is the tld suffix - com, net, org, etc | |
9 # | |
20 | 10 # content: |
11 # second token is the dns suffix used for the actual lookups | |
12 # third token? is a string enclosed in single quotes, so it | |
13 # is not really a token. This is the error message, with | |
14 # up to two %s parameters for the offending host name and | |
54
dca56b2de019
updates for 3.6, better documentation on removing content filtering, missing some files in cvs
carl
parents:
44
diff
changeset
|
15 # client ip address respectively. If this command is not |
dca56b2de019
updates for 3.6, better documentation on removing content filtering, missing some files in cvs
carl
parents:
44
diff
changeset
|
16 # present, there is no body scanning for host names or bad |
dca56b2de019
updates for 3.6, better documentation on removing content filtering, missing some files in cvs
carl
parents:
44
diff
changeset
|
17 # html tags. |
20 | 18 # |
27
43a4f6b3e668
add configurable host name limit and bad html tag limits.
carl
parents:
24
diff
changeset
|
19 # host_limit: |
43a4f6b3e668
add configurable host name limit and bad html tag limits.
carl
parents:
24
diff
changeset
|
20 # second token is the integer count of the number of host names |
43a4f6b3e668
add configurable host name limit and bad html tag limits.
carl
parents:
24
diff
changeset
|
21 # or urls that are allowed in any one mail body. Zero is |
44 | 22 # unlimited. If the actual number of host names in the message |
23 # is larger than this limit, the message is rejected. | |
27
43a4f6b3e668
add configurable host name limit and bad html tag limits.
carl
parents:
24
diff
changeset
|
24 # third token? is a string enclosed in single quotes, so it |
43a4f6b3e668
add configurable host name limit and bad html tag limits.
carl
parents:
24
diff
changeset
|
25 # is not really a token. This is the error message supplied |
43a4f6b3e668
add configurable host name limit and bad html tag limits.
carl
parents:
24
diff
changeset
|
26 # to the smtp client. |
43a4f6b3e668
add configurable host name limit and bad html tag limits.
carl
parents:
24
diff
changeset
|
27 # |
44 | 28 # host_soft_limit: |
29 # second token is the integer count of the number of host names | |
30 # or urls that are checked in any one mail body. Zero is | |
31 # unlimited. If the actual number of host names in the message | |
32 # is larger than this limit, only a random selection of them | |
33 # are checked against the dnsbl. | |
34 # | |
24 | 35 # html_limit: |
27
43a4f6b3e668
add configurable host name limit and bad html tag limits.
carl
parents:
24
diff
changeset
|
36 # second token is the integer count of the number of bad html tags |
43a4f6b3e668
add configurable host name limit and bad html tag limits.
carl
parents:
24
diff
changeset
|
37 # that are allowed in any one mail body. Zero is unlimited. |
24 | 38 # third token? is a string enclosed in single quotes, so it |
39 # is not really a token. This is the error message supplied | |
40 # to the smtp client. | |
41 # | |
42 # html_tag: | |
43 # second token is a valid html tag, that is added to the list | |
44 # of valid tags. Any html tag seen in the mail bodies that | |
45 # that is not in this list is presumed to be invalid. | |
46 # | |
0 | 47 # dnsbl: |
48 # second token is the name of this dnsbl | |
49 # third token is the dns suffix used for the actual lookups | |
50 # fourth token? is a string enclosed in single quotes, so it | |
51 # is not really a token. This is the error message, with | |
52 # up to two %s parameters for the client ip address. | |
53 # | |
54 # dnsbl_list: | |
55 # second token is the name of this list of dnsbls | |
56 # subsequent tokes are the names of the previously defined dnsbls | |
57 # | |
58 # env_from: | |
59 # second token is the name of this envelope-from-map. There will | |
60 # generally be multiple lines with the same name. | |
61 # third token is the envelope from value from the smtp conversation, | |
62 # or just the domain part that follows the @ symbol. | |
63 # fourth token is BLACK, WHITE, or the name of a previously defined | |
64 # envelope-from-map. BLACK causes mail from this sender to be | |
65 # rejected with "no such user". WHITE causes mail to be accepted | |
66 # and the dns based lists are ignored. DEFAULT may be used to override | |
67 # the contents of other maps that are copied into this map, and | |
68 # set that sender back to the default (not white or black listed, | |
69 # and subject to dnsbl lookups). | |
70 # | |
71 # env_to: | |
72 # second token is the envelope recipient value from the smtp conversation, | |
73 # or just the domain part that follows the @ symbol. | |
74 # third token is the name of a dnsbl-list, or WHITE or BLACK. | |
75 # fourth token is the name of an envelope-from-map, or WHITE or BLACK. | |
76 # | |
77 # If either one is BLACK, mail to this recipient is rejected with | |
78 # "no such user", and the dns lists are not checked. | |
79 # | |
80 # If the envelope-from-map name is WHITE, mail to this recipient is accepted | |
81 # and the dns lists are not checked. | |
82 # | |
83 # If the envelope-from-map exists, the map is checked for the presence | |
84 # of the sender. A WHITE or BLACK answer is definitive and the dns lists | |
85 # are not checked. | |
86 # | |
87 # If the dnsbl-list name is WHITE, the dns lists are not checked and the | |
88 # mail is accepted. Otherwise, the dns lists are checked and the mail | |
89 # is rejected if any list has an A record for the standard dns based | |
90 # lookup scheme (reversed octets of the client followed by the dns suffix). | |
91 # | |
92 # | |
4 | 93 # include: |
94 # second token is the path name of the dnsbl milter config file to be | |
95 # included. | |
96 # | |
97 # | |
98 # include_dcc: | |
99 # second token is the name of an envelope-from-map (EMAP below). | |
100 # third token is the path name of the dcc whiteclnt config file to be | |
101 # included. | |
102 # entries from the dcc config are mapped as: | |
14 | 103 # ok -> WHITE |
104 # many -> BLACK | |
105 # env_from -> env_from EMAP xxx | |
106 # env_to -> env_to | |
107 # substitute mail_host -> env_from EMAP xxx | |
4 | 108 # |
0 | 109 # |
110 # | |
111 ############################################## | |
24 | 112 # content scanning parameters |
113 # | |
114 content sbl-xbl.spamhaus.org 'Mail containing %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s' | |
27
43a4f6b3e668
add configurable host name limit and bad html tag limits.
carl
parents:
24
diff
changeset
|
115 host_limit 20 'Mail containing too many host names rejected' |
44 | 116 host_soft_limit 20 |
27
43a4f6b3e668
add configurable host name limit and bad html tag limits.
carl
parents:
24
diff
changeset
|
117 html_limit 20 'Mail containing excessive bad html tags rejected' |
24 | 118 include html-tags.conf |
28 | 119 include tld.conf |
24 | 120 |
121 | |
122 ############################################## | |
0 | 123 # define the dnsbls to use |
124 # | |
125 dnsbl LOCAL blackholes.five-ten-sg.com 'Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s' | |
126 dnsbl SPEWS blackholes.spews.org 'Mail from %s rejected - spews; see http://www.spews.org/ask.cgi?x=%s' | |
127 dnsbl SBL sbl-xbl.spamhaus.org 'Mail from %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s' | |
128 | |
129 | |
130 ############################################## | |
131 # define the (default and other) lists of dnsbls to use | |
132 # | |
133 dnsbl_list DEFAULT LOCAL SPEWS SBL | |
134 dnsbl_list SIMPLE SBL | |
135 dnsbl_list CUST1 SBL | |
136 dnsbl_list CUST2 SPEWS SBL | |
137 | |
138 | |
139 ############################################## | |
140 # define the (default and other) env_from maps | |
141 # | |
142 env_from DEFAULT spammer@example.com BLACK | |
143 env_from DEFAULT yahoo.com BLACK | |
144 | |
145 # special list for the vp | |
146 env_from TEST dummy-token DEFAULT # inherit the currently defined DEFAULT env_from mapping | |
147 env_from TEST nai.com BLACK # the vp does not like nai | |
14 | 148 env_from TEST yahoo.com DEFAULT # |
0 | 149 env_from TEST mother@spammyisp.com WHITE # suppresses dnsbl checking |
150 | |
151 | |
152 ############################################## | |
153 # specify dnsbl_lists and env_from maps to use for specific recipients | |
154 # | |
155 env_to abuse@mydomain.com WHITE WHITE # no dnsbl, no env_from map | |
156 env_to sales@mydomain.com SIMPLE NULL # sbl only, no env_from map | |
157 env_to vp@mydomain.com DEFAULT TEST # allow mail from mom | |
158 env_to old-emp@mydomain.com BLACK BLACK # return no such user even from backup mx machines | |
159 | |
160 ############################################## | |
161 # specify dnsbl_lists and env_from maps to use for clients domains | |
162 # | |
163 env_to mydomain.com DEFAULT DEFAULT | |
14 | 164 env_to customer1.com CUST1 DEFAULT # all customer 1 domains use just sbl |
165 env_to customer1a.com CUST1 DEFAULT | |
166 env_to customer1b.com CUST1 DEFAULT | |
167 env_to customer2.com CUST2 DEFAULT # all customer 2 domains use spews and sbl | |
168 env_to customer2a.com CUST2 DEFAULT | |
0 | 169 |
170 | |
171 ############################################## | |
172 # you can also include nested config files | |
173 # file names are single tokens, no embedded blanks | |
174 # | |
175 include dnsbl.conf # this will generate a recursive include file syslog error message | |
14 | 176 include_dcc DEFAULT /var/dcc/whitecommon # this includes the default dcc whitelist file |