1 # Exim test configuration 5895
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
17 openssl_options = +no_sslv2 +no_sslv3 +single_dh_use
18 tls_advertise_hosts = *
20 # Set certificate only if server
22 CDIR=DIR/aux-fixed/exim-ca/example.com
24 tls_certificate = CDIR/server1.example.com/server1.example.com.chain.pem
25 tls_privatekey = CDIR/server1.example.com/server1.example.com.unlocked.key
26 tls_ocsp_file = CDIR/server1.example.com/server1.example.com.ocsp.good.resp
28 tls_resumption_hosts = 127.0.0.1
36 accept condition = ${if def:tls_in_cipher}
37 logwrite = tls_in_resumption\t${listextract {$tls_in_resumption} {_RESUME_DECODE}}
38 logwrite = our cert subject\t${certextract {subject}{$tls_in_ourcert}}
39 logwrite = peer cert subject\t${certextract {subject}{$tls_in_peercert}}
40 logwrite = peer cert verified\t${tls_in_certificate_verified}
41 logwrite = peer dn\t${tls_in_peerdn}
42 logwrite = ocsp\t${tls_in_ocsp}
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_resumption ${listextract {$tls_out_resumption} {_RESUME_DECODE}}
55 logwrite = our cert subject\t${certextract {subject}{$tls_out_ourcert}}
56 logwrite = peer cert subject\t${certextract {subject}{$tls_out_peercert}}
57 logwrite = peer cert verified\t${tls_out_certificate_verified}
58 logwrite = peer dn\t${tls_out_peerdn}
59 logwrite = ocsp\t${tls_out_ocsp}
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}{abcd}{2}{1}}
77 # ----- Transports -----
86 helo_data = helo.data.changed
88 tls_resumption_hosts = *
90 tls_resumption_hosts = :
92 tls_verify_certificates = CDIR/CA/CA.pem
93 tls_verify_cert_hostnames = ${if match {$local_part}{^noverify} {*}{:}}
94 tls_try_verify_hosts = *
95 event_action = ${acl {log_resumption}}
102 hosts_try_fastopen = :
103 tls_verify_certificates = CDIR/CA/CA.pem
104 tls_verify_cert_hostnames = :
105 event_action = ${acl {log_resumption}}