annotate xml/sample.conf @ 1:bd0b1a153f67

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