1 # Exim test configuration 5892
6 .include DIR/aux-var/tls_conf_prefix
8 primary_hostname = myhost.test.ex
10 # ----- Main settings -----
12 domainlist local_domains = test.ex : *.test.ex
14 acl_smtp_helo = check_helo
15 acl_smtp_rcpt = check_recipient
16 log_selector = +received_recipients +tls_resumption +tls_peerdn
18 .ifdef _OPT_OPENSSL_NO_TLSV1_3_X
19 openssl_options = +no_sslv2 +no_sslv3 +single_dh_use OPTION
21 openssl_options = +no_sslv2 +no_sslv3 +single_dh_use
23 tls_advertise_hosts = *
25 # Set certificate only if server
27 CDIR=DIR/aux-fixed/exim-ca/example.com
29 tls_certificate = CDIR/server1.example.com/server1.example.com.chain.pem
30 tls_privatekey = CDIR/server1.example.com/server1.example.com.unlocked.key
32 tls_resumption_hosts = 127.0.0.1
33 remote_max_parallel = 1
41 accept condition = ${if def:tls_in_cipher}
42 logwrite = tls_in_resumption\t${listextract {$tls_in_resumption} {_RESUME_DECODE}}
43 logwrite = our cert subject\t${certextract {subject}{$tls_in_ourcert}}
44 logwrite = peer cert subject\t${certextract {subject}{$tls_in_peercert}}
45 logwrite = peer cert verified\t${tls_in_certificate_verified}
46 logwrite = peer dn\t${tls_in_peerdn}
47 logwrite = cipher\t${tls_in_cipher}
48 logwrite = bits\t${tls_in_bits}
52 accept domains = +local_domains
53 deny message = relay not permitted
56 accept condition = ${if def:tls_out_cipher}
57 condition = ${if eq {$event_name}{tcp:close}}
58 logwrite = tls_out_resumption ${listextract {$tls_out_resumption} {_RESUME_DECODE}}
59 logwrite = our cert subject\t${certextract {subject}{$tls_out_ourcert}}
60 logwrite = peer cert subject\t${certextract {subject}{$tls_out_peercert}}
61 logwrite = peer cert verified\t${tls_out_certificate_verified}
62 logwrite = peer dn\t${tls_out_peerdn}
63 logwrite = cipher\t${tls_out_cipher}
64 logwrite = bits\t${tls_out_bits}
73 condition = ${if eq {SERVER}{server}{no}{yes}}
74 transport = send_to_server${if eq{$local_part}{hostnotresume}{2}{1}}
80 # ----- Transports -----
89 helo_data = helo.data.changed
91 host_name_extract = HELO_MSG
94 tls_resumption_hosts = *
96 tls_resumption_hosts = :
98 tls_verify_certificates = CDIR/CA/CA.pem
99 tls_verify_cert_hostnames = ${if match {$local_part}{^noverify} {*}{:}}
100 tls_try_verify_hosts = *
101 event_action = ${acl {log_resumption}}
108 hosts_try_fastopen = :
109 tls_verify_certificates = CDIR/CA/CA.pem
110 tls_verify_cert_hostnames = :
111 event_action = ${acl {log_resumption}}