Add automatic macros for compile-time feature options
[exim.git] / test / confs / 5600
CommitLineData
f5d78688
JH
1# Exim test configuration 5600
2# OCSP stapling, server
3
4CRL=
5
d4dc049f
JH
6.include DIR/aux-var/tls_conf_prefix
7
f5d78688 8primary_hostname = server1.example.com
f5d78688
JH
9
10# ----- Main settings -----
11
44662487
JH
12acl_smtp_connect = check_connect
13acl_smtp_mail = check_mail
f5d78688
JH
14acl_smtp_rcpt = check_recipient
15
16log_selector = +tls_peerdn
17
18queue_only
19queue_run_in_order
20
21tls_advertise_hosts = *
22
23tls_certificate = DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.pem
24tls_privatekey = DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.unlocked.key
25
26tls_verify_hosts = HOSTIPV4
27tls_try_verify_hosts = *
28tls_verify_certificates = DIR/aux-fixed/cert2
29tls_crl = CRL
fbbd45ff 30tls_ocsp_file = RETURN
f5d78688
JH
31
32
33# ------ ACL ------
34
35begin acl
36
44662487 37check_connect:
018058b2
JH
38 accept logwrite = acl_conn: ocsp in status: $tls_in_ocsp \
39 (${listextract {${eval:$tls_in_ocsp+1}} \
40 {notreq:notresp:vfynotdone:failed:verified}})
44662487
JH
41
42check_mail:
018058b2
JH
43 accept logwrite = acl_mail: ocsp in status: $tls_in_ocsp \
44 (${listextract {${eval:$tls_in_ocsp+1}} \
45 {notreq:notresp:vfynotdone:failed:verified}})
44662487 46
f5d78688
JH
47check_recipient:
48 deny message = certificate not verified: peerdn=$tls_peerdn
49 ! verify = certificate
50 accept
51
52
53# ----- Routers -----
54
55begin routers
56
57abc:
58 driver = accept
59 retry_use_local_part
60 transport = local_delivery
61
62
63# ----- Transports -----
64
65begin transports
66
67local_delivery:
68 driver = appendfile
69 file = DIR/test-mail/$local_part
70 headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
71 user = CALLER
72
73# End