1 # Exim test configuration 5730
2 # OCSP stapling, client, events
6 .include DIR/aux-var/std_conf_prefix
8 primary_hostname = server1.example.com
11 # ----- Main settings -----
13 domainlist local_domains = test.ex : *.test.ex
15 acl_smtp_rcpt = check_recipient
16 acl_smtp_data = check_data
18 log_selector = +tls_peerdn
19 remote_max_parallel = 1
21 tls_advertise_hosts = *
23 # Set certificate only if server
24 tls_certificate = ${if eq {SERVER}{server}\
25 {DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.chain.pem}\
28 tls_privatekey = ${if eq {SERVER}{server}\
29 {DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.unlocked.key}\
41 accept domains = +local_domains
42 deny message = relay not permitted
45 warn condition = ${if def:h_X-TLS-out:}
46 logwrite = client claims: $h_X-TLS-out:
50 accept condition = ${if !eq {msg} {${listextract{1}{$event_name}}}}
51 warn logwrite = client ocsp status: $tls_out_ocsp \
52 (${listextract {${eval:$tls_out_ocsp+1}} \
53 {notreq:notresp:vfynotdone:failed:verified}})
63 condition = ${if eq {SERVER}{server}{no}{yes}}
65 transport = send_to_server${if eq{$local_part}{nostaple}{1} \
66 {${if eq{$local_part}{norequire} {2} \
67 {${if eq{$local_part}{smtps} {4}{3}}} \
74 #transport = local_delivery
77 # ----- Transports -----
83 file = DIR/test-mail/$local_part
84 headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
92 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
93 tls_verify_cert_hostnames =
95 hosts_request_ocsp = :
96 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
97 (${listextract {${eval:$tls_out_ocsp+1}} \
98 {notreq:notresp:vfynotdone:failed:verified}})
99 event_action = ${acl {logger}}
106 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
107 tls_verify_cert_hostnames =
108 hosts_require_tls = *
109 # note no ocsp mention here
110 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
111 (${listextract {${eval:$tls_out_ocsp+1}} \
112 {notreq:notresp:vfynotdone:failed:verified}})
113 event_action = ${acl {logger}}
120 helo_data = helo.data.changed
121 #tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/server1.example.com/ca_chain.pem
122 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
123 tls_try_verify_hosts =
124 tls_verify_cert_hostnames =
125 hosts_require_tls = *
126 hosts_require_ocsp = *
127 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
128 (${listextract {${eval:$tls_out_ocsp+1}} \
129 {notreq:notresp:vfynotdone:failed:verified}})
130 event_action = ${acl {logger}}
137 helo_data = helo.data.changed
138 #tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/server1.example.com/ca_chain.pem
139 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
140 tls_verify_cert_hostnames =
142 hosts_require_tls = *
143 hosts_require_ocsp = *
144 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
145 (${listextract {${eval:$tls_out_ocsp+1}} \
146 {notreq:notresp:vfynotdone:failed:verified}})
147 event_action = ${acl {logger}}