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