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