taint: allow appendfile create_file option to specify a de-tainting safe path
[exim.git] / test / confs / 1160
1 # Exim test configuration 2160
2
3 SERVER =
4
5 .include DIR/aux-var/tls_conf_prefix
6
7 primary_hostname = myhost.test.ex
8
9 # ----- Main settings -----
10
11 domainlist local_domains = test.ex : *.test.ex
12
13 acl_smtp_rcpt = check_recipient
14 queue_only
15 queue_run_in_order
16 remote_max_parallel = 1
17
18 tls_advertise_hosts = *
19 tls_on_connect_ports = PORT_D
20
21 tls_certificate = DIR/aux-fixed/cert1
22
23 log_selector = +millisec
24
25 # ------ ACL ------
26
27 begin acl
28
29 check_recipient:
30   accept  domains = +local_domains
31   deny    message = relay not permitted
32
33
34 # ----- Routers -----
35
36 begin routers
37
38 client:
39   driver = accept
40   condition = ${if eq {SERVER}{server}{no}{yes}}
41   retry_use_local_part
42   transport = send_to_server${if eq{$local_part}{abcd}{2}{1}}
43
44 server:
45   driver = accept
46   retry_use_local_part
47   transport = local_delivery
48
49
50 # ----- Transports -----
51
52 begin transports
53
54 local_delivery:
55   driver = appendfile
56   file = DIR/test-mail/$local_part
57   create_file = DIR/test-mail
58   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
59   user = CALLER
60
61 send_to_server1:
62   driver = smtp
63   allow_localhost
64   hosts = 127.0.0.1
65   port = PORT_D
66   hosts_try_fastopen = :
67   protocol = smtps
68   tls_verify_certificates =     DIR/aux-fixed/cert1
69   tls_verify_cert_hostnames =   :
70   helo_data = helo.data.changed
71
72 send_to_server2:
73   driver = smtp
74   allow_localhost
75   hosts = HOSTIPV4
76   port = PORT_D
77   hosts_try_fastopen = :
78   protocol = smtps
79   tls_verify_certificates =     DIR/aux-fixed/cert1
80   tls_verify_cert_hostnames =   :
81
82
83 # ----- Retry -----
84
85
86 begin retry
87
88 * * F,5d,10s
89
90
91 # End