1 # Exim test configuration 5890
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 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_require_ciphers = OPTION
29 tls_resumption_hosts = 127.0.0.1
37 accept condition = ${if def:tls_in_cipher}
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 = ocsp\t${tls_in_ocsp}
44 logwrite = cipher\t${tls_in_cipher}
45 logwrite = bits\t${tls_in_bits}
49 accept domains = +local_domains
50 deny message = relay not permitted
53 accept condition = ${if def:tls_out_cipher}
54 condition = ${if eq {$event_name}{tcp:close}}
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 = ocsp\t${tls_out_ocsp}
61 logwrite = cipher\t${tls_out_cipher}
62 logwrite = bits\t${tls_out_bits}
71 condition = ${if eq {SERVER}{server}{no}{yes}}
72 transport = send_to_server${if eq{$local_part}{abcd}{2}{1}}
78 # ----- Transports -----
87 helo_data = helo.data.changed
89 tls_resumption_hosts = *
91 tls_resumption_hosts = :
93 tls_verify_certificates = CDIR/CA/CA.pem
94 tls_verify_cert_hostnames = ${if match {$local_part}{^noverify} {*}{:}}
95 tls_try_verify_hosts = *
96 event_action = ${acl {log_resumption}}
103 tls_verify_certificates = CDIR/CA/CA.pem
104 tls_verify_cert_hostnames = :
105 event_action = ${acl {log_resumption}}