1 # Exim test configuration 5651
2 # OCSP stapling, client
6 .include DIR/aux-var/tls_conf_prefix
8 primary_hostname = server1.example.com
10 # ----- Main settings -----
12 domainlist local_domains = test.ex : *.test.ex
14 acl_smtp_rcpt = check_recipient
15 acl_smtp_data = check_data
17 log_selector = +tls_peerdn
18 remote_max_parallel = 1
20 tls_advertise_hosts = *
22 # Set certificate only if server
23 tls_certificate = ${if eq {SERVER}{server}\
24 {DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.chain.pem}\
27 tls_privatekey = ${if eq {SERVER}{server}\
28 {DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.unlocked.key}\
40 accept domains = +local_domains
41 deny message = relay not permitted
44 warn condition = ${if def:h_X-TLS-out:}
45 logwrite = client claims: $h_X-TLS-out:
55 condition = ${if eq {SERVER}{server}{no}{yes}}
57 transport = send_to_server${if eq{$local_part}{nostaple}{1} \
58 {${if eq{$local_part}{norequire} {2} \
59 {${if eq{$local_part}{smtps} {4}{3}}} \
66 #transport = local_delivery
69 # ----- Transports -----
75 file = DIR/test-mail/$local_part
76 headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
84 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
85 tls_verify_cert_hostnames =
87 hosts_request_ocsp = :
88 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
89 (${listextract {${eval:$tls_out_ocsp+1}} \
90 {notreq:notresp:vfynotdone:failed:verified}})
97 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
98 tls_verify_cert_hostnames =
100 # note no ocsp mention here
101 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
102 (${listextract {${eval:$tls_out_ocsp+1}} \
103 {notreq:notresp:vfynotdone:failed:verified}})
110 helo_data = helo.data.changed
111 #tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/server1.example.com/ca_chain.pem
112 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
113 tls_try_verify_hosts =
114 tls_verify_cert_hostnames =
115 hosts_require_tls = *
116 hosts_require_ocsp = *
117 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
118 (${listextract {${eval:$tls_out_ocsp+1}} \
119 {notreq:notresp:vfynotdone:failed:verified}})
126 helo_data = helo.data.changed
127 #tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/server1.example.com/ca_chain.pem
128 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
129 tls_verify_cert_hostnames =
131 hosts_require_tls = *
132 hosts_require_ocsp = *
133 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
134 (${listextract {${eval:$tls_out_ocsp+1}} \
135 {notreq:notresp:vfynotdone:failed:verified}})