1 # Exim test configuration 5894
5 .include DIR/aux-var/tls_conf_prefix
7 primary_hostname = myhost.test.ex
9 # ----- Main settings -----
11 domainlist local_domains = test.ex : *.test.ex
13 acl_smtp_helo = check_helo
14 acl_smtp_rcpt = check_recipient
15 log_selector = +received_recipients +tls_resumption +tls_peerdn +outgoing_port
17 openssl_options = +no_sslv2 +no_sslv3 +single_dh_use
18 tls_advertise_hosts = *
19 tls_on_connect_ports = PORT_D2
21 # Set certificate only if server
23 CDIR=DIR/aux-fixed/exim-ca/example.com
25 tls_certificate = CDIR/server1.example.com/server1.example.com.chain.pem
26 tls_privatekey = CDIR/server1.example.com/server1.example.com.unlocked.key
28 tls_resumption_hosts = 127.0.0.1
36 accept condition = ${if def:tls_in_cipher}
37 logwrite = tls_in_ver\t$tls_in_ver
38 logwrite = tls_in_resumption\t${listextract {$tls_in_resumption} {_RESUME_DECODE}}
39 logwrite = our cert subject\t${certextract {subject}{$tls_in_ourcert}}
40 logwrite = peer cert subject\t${certextract {subject}{$tls_in_peercert}}
41 logwrite = peer cert verified\t${tls_in_certificate_verified}
42 logwrite = peer dn\t${tls_in_peerdn}
43 logwrite = cipher\t${tls_in_cipher}
44 logwrite = bits\t${tls_in_bits}
48 accept domains = +local_domains
49 deny message = relay not permitted
52 accept condition = ${if def:tls_out_cipher}
53 condition = ${if eq {$event_name}{tcp:close}}
54 logwrite = tls_out_ver\t$tls_out_ver
55 logwrite = tls_out_resumption ${listextract {$tls_out_resumption} {_RESUME_DECODE}}
56 logwrite = our cert subject\t${certextract {subject}{$tls_out_ourcert}}
57 logwrite = peer cert subject\t${certextract {subject}{$tls_out_peercert}}
58 logwrite = peer cert verified\t${tls_out_certificate_verified}
59 logwrite = peer dn\t${tls_out_peerdn}
60 logwrite = cipher\t${tls_out_cipher}
61 logwrite = bits\t${tls_out_bits}
70 condition = ${if eq {SERVER}{server}{no}{yes}}
71 transport = send_to_server${if eq{$local_part}{hostnotresume}{2}{1}}
77 # ----- Transports -----
88 # Use HELO purely to get a P= different on the server <= line
93 helo_data = helo.data.changed
95 tls_resumption_hosts = *
97 tls_resumption_hosts = :
99 tls_verify_certificates = CDIR/CA/CA.pem
100 tls_verify_cert_hostnames = ${if match {$local_part}{^noverify} {*}{:}}
101 tls_try_verify_hosts = *
102 event_action = ${acl {log_resumption}}
109 hosts_try_fastopen = :
110 tls_verify_certificates = CDIR/CA/CA.pem
111 tls_verify_cert_hostnames = :
112 event_action = ${acl {log_resumption}}