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