1 # Exim test configuration 5891
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 openssl_options = +no_sslv2 +no_sslv3 +single_dh_use OPTION
19 tls_advertise_hosts = *
21 # Set certificate only if server
23 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
25 tls_resumption_hosts = 127.0.0.1
33 accept condition = ${if def:tls_in_cipher}
34 logwrite = tls_in_resumption\t${listextract {$tls_in_resumption} {_RESUME_DECODE}}
35 logwrite = our cert subject\t${certextract {subject}{$tls_in_ourcert}}
36 logwrite = peer cert subject\t${certextract {subject}{$tls_in_peercert}}
37 logwrite = peer cert verified\t${tls_in_certificate_verified}
38 logwrite = peer dn\t${tls_in_peerdn}
39 logwrite = ocsp\t${tls_in_ocsp}
40 logwrite = cipher\t${tls_in_cipher}
41 logwrite = bits\t${tls_in_bits}
45 accept domains = +local_domains
46 deny message = relay not permitted
49 accept condition = ${if def:tls_out_cipher}
50 condition = ${if eq {$event_name}{tcp:close}}
51 logwrite = tls_out_resumption ${listextract {$tls_out_resumption} {_RESUME_DECODE}}
52 logwrite = our cert subject\t${certextract {subject}{$tls_out_ourcert}}
53 logwrite = peer cert subject\t${certextract {subject}{$tls_out_peercert}}
54 logwrite = peer cert verified\t${tls_out_certificate_verified}
55 logwrite = peer dn\t${tls_out_peerdn}
56 logwrite = ocsp\t${tls_out_ocsp}
57 logwrite = cipher\t${tls_out_cipher}
58 logwrite = bits\t${tls_out_bits}
67 condition = ${if eq {SERVER}{server}{no}{yes}}
69 transport = send_to_server${if eq{$local_part}{abcd}{2}{1}}
75 # ----- Transports -----
84 helo_data = helo.data.changed
86 tls_resumption_hosts = *
88 tls_resumption_hosts = :
90 tls_verify_certificates = DIR/aux-fixed/cert1
91 tls_verify_cert_hostnames = :
92 event_action = ${acl {log_resumption}}
99 tls_verify_certificates = DIR/aux-fixed/cert1
100 tls_verify_cert_hostnames = :
101 event_action = ${acl {log_resumption}}