appendfile: taint-enforce file & directory options
[exim.git] / test / confs / 3700
CommitLineData
b3ef41c9
JH
1# Exim test configuration 3700
2
3SERVER=
4
d4dc049f 5.include DIR/aux-var/tls_conf_prefix
b3ef41c9 6
d4dc049f 7primary_hostname = myhost.test.ex
b3ef41c9
JH
8log_selector = +received_recipients +outgoing_port
9
10# ----- Main settings -----
11
69d8eed7 12acl_smtp_auth = log_call
b3ef41c9
JH
13acl_smtp_mail = check_authd
14acl_smtp_rcpt = check_authd
c44ff8be
JH
15acl_smtp_data = ar_header
16
b3ef41c9
JH
17queue_only
18queue_run_in_order
19trusted_users = CALLER
20
21tls_on_connect_ports = PORT_S
22tls_advertise_hosts = *
23tls_certificate = DIR/aux-fixed/cert1
24
25tls_verify_hosts = *
26tls_verify_certificates = DIR/aux-fixed/cert2
27
28
29# ----- ACL -----
30
31begin acl
32
69d8eed7
JH
33log_call:
34 accept logwrite = Auth ACL called, after smtp cmd "$smtp_command"
35
b3ef41c9
JH
36check_authd:
37 deny message = authentication required
38 !authenticated = *
39 accept
40
c44ff8be
JH
41ar_header:
42 accept add_header = :at_start:${authresults {$primary_hostname}}
b3ef41c9
JH
43
44# ----- Authentication -----
45
46begin authenticators
47
48tls:
49 driver = tls
50 server_debug_print = +++TLS \$auth1="$auth1"
51 server_param1 = ${quote:${certextract {subject,CN,>:} \
52 {$tls_in_peercert}}}
53 server_condition = ${if def:auth1}
54 server_set_id = $auth1
55
56
57# ----- Routers -----
58
59begin routers
60
c44ff8be
JH
61server_r:
62 driver = accept
63 condition = ${if eq {server}{SERVER}}
64 transport = file
65
66client_r1:
67 driver = accept
68 transport = ${if eq {$local_part}{smtps} {t2}{t1}}
b3ef41c9
JH
69
70
71# ----- Transports -----
72
73begin transports
74
75t1:
76 driver = smtp
77 hosts = 127.0.0.1
78 port = PORT_D
277b9979 79 hosts_try_fastopen = :
b3ef41c9
JH
80 allow_localhost
81 tls_certificate = DIR/aux-fixed/cert2
82 tls_verify_certificates = DIR/aux-fixed/cert1
83 tls_verify_cert_hostnames = :
84
85t2:
86 driver = smtp
87 hosts = 127.0.0.1
88 port = PORT_S
277b9979 89 hosts_try_fastopen = :
b3ef41c9
JH
90 protocol = smtps
91 allow_localhost
92 tls_certificate = DIR/aux-fixed/cert2
93 tls_verify_certificates = DIR/aux-fixed/cert1
94 tls_verify_cert_hostnames = :
95
c44ff8be
JH
96file:
97 driver = appendfile
0d2e392e 98 file = DIR/test-mail/${bless:$local_part}
c44ff8be
JH
99 user = CALLER
100
b3ef41c9 101# End