1 # Exim test configuration 5880
6 .include DIR/aux-var/tls_conf_prefix
8 primary_hostname = myhost.test.ex
10 # ----- Main settings -----
12 acl_smtp_rcpt = accept
14 log_selector = +received_recipients +tls_peerdn +tls_certificate_verified
19 tls_advertise_hosts = *
21 # Set certificate only if server
22 CDIR2 = DIR/aux-fixed/exim-ca/example.com/server1.example.com
24 tls_certificate = ${if eq {SERVER}{server} {CDIR2/fullchain.pem} fail}
25 tls_privatekey = ${if eq {SERVER}{server} {CDIR2/server1.example.com.unlocked.key} fail}
31 accept condition = ${if eq {tls} {${listextract{1}{$event_name}}}}
32 logwrite = $event_name depth = $event_data \
33 <${certextract {subject} {$tls_out_peercert}}>
36 accept condition = ${if eq {msg} {${listextract{1}{$event_name}}}}
37 logwrite = $event_name dane=$tls_out_dane
46 condition = ${if eq {SERVER}{}}
47 dnssec_request_domains = *
49 transport = send_to_server
56 # ----- Transports -----
66 hosts_require_dane = *
68 # required for TA-mode testing
69 tls_verify_certificates = CDIR2/ca_chain.pem
71 hosts_request_ocsp = ${if or { {= {4}{$tls_out_tlsa_usage}} \
72 {= {0}{$tls_out_tlsa_usage}} } \
76 event_action = ${acl {logger}}