Merge branch 'master' into 4.next
[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
12acl_smtp_mail = check_authd
13acl_smtp_rcpt = check_authd
14queue_only
15queue_run_in_order
16trusted_users = CALLER
17
18tls_on_connect_ports = PORT_S
19tls_advertise_hosts = *
20tls_certificate = DIR/aux-fixed/cert1
21
22tls_verify_hosts = *
23tls_verify_certificates = DIR/aux-fixed/cert2
24
25
26# ----- ACL -----
27
28begin acl
29
30check_authd:
31 deny message = authentication required
32 !authenticated = *
33 accept
34
35
36# ----- Authentication -----
37
38begin authenticators
39
40tls:
41 driver = tls
42 server_debug_print = +++TLS \$auth1="$auth1"
43 server_param1 = ${quote:${certextract {subject,CN,>:} \
44 {$tls_in_peercert}}}
45 server_condition = ${if def:auth1}
46 server_set_id = $auth1
47
48
49# ----- Routers -----
50
51begin routers
52
53r1:
54 driver = accept
55 transport = ${if eq {$local_part}{smtps} {t2}{t1}}
56
57
58# ----- Transports -----
59
60begin transports
61
62t1:
63 driver = smtp
64 hosts = 127.0.0.1
65 port = PORT_D
66 allow_localhost
67 tls_certificate = DIR/aux-fixed/cert2
68 tls_verify_certificates = DIR/aux-fixed/cert1
69 tls_verify_cert_hostnames = :
70
71t2:
72 driver = smtp
73 hosts = 127.0.0.1
74 port = PORT_S
75 protocol = smtps
76 allow_localhost
77 tls_certificate = DIR/aux-fixed/cert2
78 tls_verify_certificates = DIR/aux-fixed/cert1
79 tls_verify_cert_hostnames = :
80
81# End