Fix negated dnslists item bug; add == and =& features, courtesy Brad
[exim.git] / test / confs / 0139
CommitLineData
afda344b
PH
1# Exim test configuration 0139
2
3exim_path = EXIM_PATH
4host_lookup_order = bydns
5rfc1413_query_timeout = 0s
6spool_directory = DIR/spool
7log_file_path = DIR/spool/log/%slog
8gecos_pattern = ""
9gecos_name = CALLER_NAME
10
11# ----- Main settings -----
12
13domainlist local_domains = exim.test.ex
d6f6e0dc 14trusted_users = CALLER
afda344b 15
431b7361 16acl_smtp_helo = check_helo
afda344b
PH
17acl_smtp_rcpt = check_recipient
18acl_smtp_mail = check_mail
431b7361 19acl_smtp_vrfy = check_vrfy
afda344b
PH
20
21# ------ ACL ------
22
23begin acl
24
431b7361
PH
25check_helo:
26 warn dnslists = rbl2.test.ex!=127.0.0.3 : rbl3.test.ex=127.0.0.3
27 accept
28
29check_vrfy:
30 warn dnslists = rbl.test.ex=127.0.0.1
31 warn dnslists = rbl.test.ex!=127.0.0.1
32 warn dnslists = rbl.test.ex!=127.0.0.3
33 warn dnslists = rbl.test.ex==127.0.0.1
34 warn dnslists = rbl.test.ex==127.0.0.1,127.0.0.2
35 warn dnslists = rbl.test.ex!==127.0.0.1
36 warn dnslists = rbl.test.ex!==127.0.0.3
37 warn dnslists = rbl.test.ex!==127.0.0.1,127.0.0.2
38 accept
39
afda344b
PH
40check_mail:
41 warn dnslists = rbl4.test.ex&0.0.0.6
42 warn dnslists = rbl4.test.ex&127.0.0.3
43 warn dnslists = rbl4.test.ex!&0.0.0.7
d6f6e0dc
PH
44 add_header = DNSlist: $dnslist_domain $dnslist_text
45 warn dnslists = rbl5.test.ex,rbl4.test.ex=127.0.0.128
46 add_header = DNSlist: $dnslist_domain $dnslist_text
afda344b
PH
47 accept
48
49check_recipient:
50 warn message = X-Warn: host is listed in $dnslist_domain but not =127.0.0.3\
51 ${if def:dnslist_text{\n $dnslist_text}}
52 dnslists = rbl3.test.ex!=127.0.0.3
53 deny message = host is listed in $dnslist_domain with value 127.0.0.3\
54 ${if def:dnslist_text{\n$dnslist_text}}
55 dnslists = rbl3.test.ex=127.0.0.3
56 require verify = sender
57 deny message = unrouteable address
58 !verify = recipient
59 accept domains = +local_domains
60 deny message = relay not permitted
61
62
63# ----- Routers -----
64
65begin routers
66
67system_aliases:
68 driver = redirect
69 allow_defer
70 data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}}
71 qualify_preserve_domain
72 retry_use_local_part
73
74localuser:
75 driver = accept
76 local_parts = userx
77 transport = local_delivery
78
79
80# ----- Transports -----
81
82begin transports
83
84local_delivery:
85 driver = appendfile
86 delivery_date_add
87 envelope_to_add
88 file = DIR/test-mail/$local_part
89 return_path_add
90 user = CALLER
91
92file:
93 driver = appendfile
94 user = CALLER
95
96# End