1 # Exim test configuration 5600
2 # OCSP stapling, server
8 host_lookup_order = bydns
9 primary_hostname = server1.example.com
10 rfc1413_query_timeout = 0s
11 spool_directory = DIR/spool
12 log_file_path = DIR/spool/log/%slog
14 gecos_name = CALLER_NAME
16 # ----- Main settings -----
18 acl_smtp_connect = check_connect
19 acl_smtp_mail = check_mail
20 acl_smtp_rcpt = check_recipient
22 log_selector = +tls_peerdn
27 tls_advertise_hosts = *
29 tls_certificate = DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.pem
30 tls_privatekey = DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.unlocked.key
32 tls_verify_hosts = HOSTIPV4
33 tls_try_verify_hosts = *
34 tls_verify_certificates = DIR/aux-fixed/cert2
44 accept logwrite = acl_conn: ocsp in status: $tls_in_ocsp \
45 (${listextract {${eval:$tls_in_ocsp+1}} \
46 {notreq:notresp:vfynotdone:failed:verified}})
49 accept logwrite = acl_mail: ocsp in status: $tls_in_ocsp \
50 (${listextract {${eval:$tls_in_ocsp+1}} \
51 {notreq:notresp:vfynotdone:failed:verified}})
54 deny message = certificate not verified: peerdn=$tls_peerdn
55 ! verify = certificate
66 transport = local_delivery
69 # ----- Transports -----
75 file = DIR/test-mail/$local_part
76 headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn