taint: allow appendfile create_file option to specify a de-tainting safe path
[exim.git] / test / confs / 0906
1 # Exim test configuration 0906
2 SERVER=
3
4 exim_path = EXIM_PATH
5 keep_environment =
6 host_lookup_order = bydns
7 spool_directory = DIR/spool
8 log_file_path = DIR/spool/log/SERVER%slog
9 gecos_pattern = ""
10 gecos_name = CALLER_NAME
11 chunking_advertise_hosts = *
12 tls_advertise_hosts = ${if eq {SRV}{tls} {*}}
13 .ifdef _HAVE_PIPE_CONNECT
14 pipelining_connect_advertise_hosts =
15 .endif
16 .ifdef _HAVE_DMARC
17 dmarc_tld_file =
18 .endif
19
20 # ----- Main settings -----
21
22 spool_wireformat = true
23
24 primary_hostname = testhost.test.ex
25 domainlist local_domains = @ : test.ex
26
27 acl_smtp_rcpt = acl_r
28
29 .ifdef _HAVE_DKIM
30 log_selector = +received_recipients +dkim_verbose
31 .else
32 log_selector = +received_recipients
33 .endif
34
35
36 .ifdef _OPT_MAIN_TLS_CERTIFICATE
37 tls_certificate = DIR/aux-fixed/cert1
38 tls_privatekey = DIR/aux-fixed/cert1
39 .endif
40
41 queue_run_in_order = true
42
43 # ----- ACL -----
44
45 begin acl
46 acl_r:
47  accept condition = ${if != {$received_port}{PORT_S}}
48         control = queue_only
49  accept
50
51 # ----- Routers -----
52
53 begin routers
54
55 to_server:
56   driver = accept
57   condition =   ${if = {$received_port}{PORT_S}}
58   transport =   remote_smtp${if eq {OPT}{dkim} {_dkim}}
59   errors_to =   ""
60
61 fail_remote_domains:
62   driver = redirect
63   domains = ! +local_domains
64   data = :fail: unrouteable mail domain "$domain"
65
66 localuser:
67   driver = accept
68   transport = local_delivery
69
70
71 # ----- Transports -----
72
73 begin transports
74
75 local_delivery:
76   driver = appendfile
77   file = DIR/test-mail/$local_part
78   create_file = DIR/test-mail
79   headers_add = "X-body-linecount: $body_linecount\n\
80                  X-message-linecount: $message_linecount\n\
81                  X-received-count: $received_count"
82   return_path_add
83   user = CALLER
84
85 remote_smtp:
86   driver = smtp
87   hosts =       127.0.0.1
88   port =        PORT_D
89   hosts_try_fastopen = :
90   allow_localhost
91
92 remote_smtp_dkim:
93   driver = smtp
94   hosts =       127.0.0.1
95   port =        PORT_D
96   hosts_try_fastopen = :
97   allow_localhost
98
99 .ifdef OPT
100   dkim_domain =         test.ex
101   dkim_selector =       sel
102   dkim_private_key =    DIR/aux-fixed/dkim/dkim.private
103 .ifndef HEADERS_MAXSIZE
104   dkim_sign_headers =   LIST
105 .endif
106 .endif
107
108 # ----- Retry -----
109
110 begin retry
111 * * F,30m,5m;
112 # End