Fix CVE-2016-1531
[exim.git] / test / confs / 0139
1 # Exim test configuration 0139
2
3 exim_path = EXIM_PATH
4 keep_environment =
5 host_lookup_order = bydns
6 spool_directory = DIR/spool
7 log_file_path = DIR/spool/log/%slog
8 gecos_pattern = ""
9 gecos_name = CALLER_NAME
10 tls_advertise_hosts =
11
12 # ----- Main settings -----
13
14 domainlist local_domains = exim.test.ex
15 trusted_users = CALLER
16
17 acl_smtp_helo = check_helo
18 acl_smtp_rcpt = check_recipient
19 acl_smtp_mail = check_mail
20 acl_smtp_vrfy = check_vrfy
21
22 # ------ ACL ------
23
24 begin acl
25
26 check_helo:
27   warn    dnslists = rbl2.test.ex!=127.0.0.3 : rbl3.test.ex=127.0.0.3
28   accept
29
30 check_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
41 check_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
50 check_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
66 begin routers
67
68 system_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
75 localuser:
76   driver = accept
77   local_parts = userx
78   transport = local_delivery
79
80
81 # ----- Transports -----
82
83 begin transports
84
85 local_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
93 file:
94   driver = appendfile
95   user = CALLER
96
97 # End