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
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
27 tls_resumption_hosts = 127.0.0.1
35 accept condition = ${if def:tls_in_cipher}
36 logwrite = tls_in_resumption\t${listextract {$tls_in_resumption} {_RESUME_DECODE}}
37 logwrite = our cert subject\t${certextract {subject}{$tls_in_ourcert}}
38 logwrite = peer cert subject\t${certextract {subject}{$tls_in_peercert}}
39 logwrite = peer cert verified\t${tls_in_certificate_verified}
40 logwrite = peer dn\t${tls_in_peerdn}
41 logwrite = cipher\t${tls_in_cipher}
42 logwrite = bits\t${tls_in_bits}
46 accept domains = +local_domains
47 deny message = relay not permitted
50 accept condition = ${if def:tls_out_cipher}
51 condition = ${if eq {$event_name}{tcp:close}}
52 logwrite = tls_out_resumption ${listextract {$tls_out_resumption} {_RESUME_DECODE}}
53 logwrite = our cert subject\t${certextract {subject}{$tls_out_ourcert}}
54 logwrite = peer cert subject\t${certextract {subject}{$tls_out_peercert}}
55 logwrite = peer cert verified\t${tls_out_certificate_verified}
56 logwrite = peer dn\t${tls_out_peerdn}
57 logwrite = cipher\t${tls_out_cipher}
58 logwrite = bits\t${tls_out_bits}
67 condition = ${if eq {SERVER}{server}{no}{yes}}
68 transport = send_to_server${if eq{$local_part}{abcd}{2}{1}}
74 # ----- Transports -----
83 helo_data = helo.data.changed
85 tls_resumption_hosts = *
87 tls_resumption_hosts = :
89 tls_verify_certificates = CDIR/CA/CA.pem
90 tls_verify_cert_hostnames = ${if match {$local_part}{^noverify} {*}{:}}
91 tls_try_verify_hosts = *
92 event_action = ${acl {log_resumption}}
99 hosts_try_fastopen = :
100 tls_verify_certificates = CDIR/CA/CA.pem
101 tls_verify_cert_hostnames = :
102 event_action = ${acl {log_resumption}}