1 # Exim test configuration 5847
2 # OCSP stapling under DANE, client
7 keep_environment = ^EXIM_TESTHARNESS_DISABLE_[O]CSPVALIDITYCHECK$
8 host_lookup_order = bydns
9 spool_directory = DIR/spool
10 log_file_path = DIR/spool/log/SERVER%slog
12 gecos_name = CALLER_NAME
13 chunking_advertise_hosts =
14 primary_hostname = server1.example.com
21 # ----- Main settings -----
23 domainlist local_domains = test.ex : *.test.ex
26 acl_smtp_rcpt = check_recipient
28 acl_smtp_rcpt = accept verify = recipient/callout
30 acl_smtp_data = check_data
32 log_selector = +received_recipients +tls_peerdn +tls_certificate_verified +tls_sni
33 remote_max_parallel = 1
36 tls_advertise_hosts = *
38 CDIR1 = DIR/aux-fixed/exim-ca/example.net/server1.example.net
39 CDIR2 = DIR/aux-fixed/exim-ca/example.com/server1.example.com
42 tls_certificate = CERT
44 tls_certificate = ${if or {{eq {DETAILS}{ta}} {eq {DETAILS}{ca}} {eq {DETAILS}{ee}}} \
45 {CDIR2/fullchain.pem}\
46 {CDIR1/fullchain.pem}}
50 tls_privatekey = ALLOW
52 tls_privatekey = ${if or {{eq {DETAILS}{ta}} {eq {DETAILS}{ca}} {eq {DETAILS}{ee}}} \
53 {CDIR2/server1.example.com.unlocked.key}\
54 {CDIR1/server1.example.net.unlocked.key}}
57 tls_ocsp_file = RETURN
65 accept domains = +local_domains
66 deny message = relay not permitted
69 warn condition = ${if def:h_X-TLS-out:}
70 logwrite = client claims: $h_X-TLS-out:
79 condition = ${if eq {SERVER}{server}{no}{yes}}
80 dnssec_request_domains = *
83 transport = send_to_server${if eq{$local_part}{norequest}{1} \
84 {${if eq{$local_part}{norequire} {2} \
94 # ----- Transports -----
103 hosts_try_fastopen = :
104 tls_verify_certificates = ${if eq {DETAILS}{ca} {CDIR2/ca_chain.pem} {}}
105 tls_verify_cert_hostnames = ${if eq {OPT}{no_certname} {}{*}}
107 hosts_require_tls = *
108 hosts_request_ocsp = :
109 headers_add = X-TLS-out: ocsp status $tls_out_ocsp \
110 (${listextract {${eval:$tls_out_ocsp+1}} {notreq:notresp:vfynotdone:failed:verified}})
117 hosts_try_fastopen = :
118 tls_verify_certificates = ${if eq {DETAILS}{ca} {CDIR2/ca_chain.pem} {}}
119 tls_verify_cert_hostnames = ${if eq {OPT}{no_certname} {}{*}}
121 hosts_require_tls = *
122 # note no ocsp mention here
123 headers_add = X-TLS-out: ocsp status $tls_out_ocsp \
124 (${listextract {${eval:$tls_out_ocsp+1}} {notreq:notresp:vfynotdone:failed:verified}})
131 hosts_try_fastopen = :
132 helo_data = helo.data.changed
133 tls_verify_certificates = ${if eq {DETAILS}{ca} {CDIR2/ca_chain.pem} {}}
134 tls_verify_cert_hostnames = ${if eq {OPT}{no_certname} {}{*}}
136 hosts_require_tls = *
137 hosts_require_ocsp = *
138 headers_add = X-TLS-out: ocsp status $tls_out_ocsp \
139 (${listextract {${eval:$tls_out_ocsp+1}} {notreq:notresp:vfynotdone:failed:verified}})