Testsuite: more tidying for Alpine
[exim.git] / test / confs / 3700
... / ...
CommitLineData
1# Exim test configuration 3700
2
3SERVER=
4
5.include DIR/aux-var/tls_conf_prefix
6
7primary_hostname = myhost.test.ex
8log_selector = +received_recipients +outgoing_port
9
10# ----- Main settings -----
11
12acl_smtp_auth = log_call
13acl_smtp_mail = check_authd
14acl_smtp_rcpt = check_authd
15acl_smtp_data = ar_header
16
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
33log_call:
34 accept logwrite = Auth ACL called, after smtp cmd "$smtp_command"
35
36check_authd:
37 deny message = authentication required
38 !authenticated = *
39 accept
40
41ar_header:
42 accept add_header = :at_start:${authresults {$primary_hostname}}
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
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}}
69
70
71# ----- Transports -----
72
73begin transports
74
75t1:
76 driver = smtp
77 hosts = 127.0.0.1
78 port = PORT_D
79 hosts_try_fastopen = :
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
89 hosts_try_fastopen = :
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
96file:
97 driver = appendfile
98 file = DIR/test-mail/${bless:$local_part}
99 user = CALLER
100
101# End