1 # Exim test configuration 5820
7 .include DIR/aux-var/tls_conf_prefix
9 primary_hostname = myhost.test.ex
11 # ----- Main settings -----
14 acl_smtp_rcpt = accept logwrite = "rcpt ACL"
16 acl_smtp_rcpt = accept verify = recipient/callout
19 log_selector = +received_recipients +tls_peerdn +tls_certificate_verified \
24 tls_advertise_hosts = *
25 # needed to force generation
26 tls_dhparam = historic
28 # Set certificate only if server
29 CDIR1 = DIR/aux-fixed/exim-ca/example.net/server1.example.net
30 CDIR2 = DIR/aux-fixed/exim-ca/example.com/server1.example.com
33 tls_certificate = ${if eq {SERVER}{server} \
34 {${if or {{eq {DETAILS}{ta}} {eq {DETAILS}{ca}} {eq {DETAILS}{ee}}} \
35 {CDIR2/fullchain.pem}\
36 {CDIR1/fullchain.pem}}}\
39 tls_privatekey = ${if eq {SERVER}{server} \
40 {${if or {{eq {DETAILS}{ta}} {eq {DETAILS}{ca}} {eq {DETAILS}{ee}}} \
41 {CDIR2/server1.example.com.unlocked.key}\
42 {CDIR1/server1.example.net.unlocked.key}}}\
51 condition = ${if eq {SERVER}{}}
52 dnssec_request_domains = *
54 transport = send_to_server
62 # ----- Transports -----
70 hosts_try_fastopen = :
72 hosts_try_dane = CONTROL
73 hosts_require_dane = HOSTIPV4
74 tls_verify_cert_hostnames = ${if eq {OPT}{no_certname} {}{*}}
75 tls_try_verify_hosts = thishost.test.ex
76 tls_verify_certificates = ${if eq {DETAILS}{ca} {CDIR2/ca_chain.pem} {}}