1 # Exim test configuration 5658
2 # OCSP stapling, client, events
7 host_lookup_order = bydns
8 primary_hostname = server1.example.com
9 spool_directory = DIR/spool
10 log_file_path = DIR/spool/log/SERVER%slog
12 gecos_name = CALLER_NAME
15 # ----- Main settings -----
17 domainlist local_domains = test.ex : *.test.ex
19 acl_smtp_rcpt = check_recipient
20 acl_smtp_data = check_data
22 log_selector = +tls_peerdn
23 remote_max_parallel = 1
25 tls_advertise_hosts = *
27 # Set certificate only if server
28 tls_certificate = ${if eq {SERVER}{server}\
29 {DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.chain.pem}\
32 tls_privatekey = ${if eq {SERVER}{server}\
33 {DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.unlocked.key}\
45 accept domains = +local_domains
46 deny message = relay not permitted
49 warn condition = ${if def:h_X-TLS-out:}
50 logwrite = client claims: $h_X-TLS-out:
54 accept condition = ${if !eq {msg} {${listextract{1}{$event_name}}}}
55 warn logwrite = client ocsp status: $tls_out_ocsp \
56 (${listextract {${eval:$tls_out_ocsp+1}} \
57 {notreq:notresp:vfynotdone:failed:verified}})
67 condition = ${if eq {SERVER}{server}{no}{yes}}
69 transport = send_to_server${if eq{$local_part}{nostaple}{1} \
70 {${if eq{$local_part}{norequire} {2} \
71 {${if eq{$local_part}{smtps} {4}{3}}} \
78 #transport = local_delivery
81 # ----- Transports -----
87 file = DIR/test-mail/$local_part
88 headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
96 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
97 tls_verify_cert_hostnames =
99 hosts_request_ocsp = :
100 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
101 (${listextract {${eval:$tls_out_ocsp+1}} \
102 {notreq:notresp:vfynotdone:failed:verified}})
103 event_action = ${acl {logger}}
110 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
111 tls_verify_cert_hostnames =
112 hosts_require_tls = *
113 # note no ocsp mention here
114 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
115 (${listextract {${eval:$tls_out_ocsp+1}} \
116 {notreq:notresp:vfynotdone:failed:verified}})
117 event_action = ${acl {logger}}
124 helo_data = helo.data.changed
125 #tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/server1.example.com/ca_chain.pem
126 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
127 tls_try_verify_hosts =
128 tls_verify_cert_hostnames =
129 hosts_require_tls = *
130 hosts_require_ocsp = *
131 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
132 (${listextract {${eval:$tls_out_ocsp+1}} \
133 {notreq:notresp:vfynotdone:failed:verified}})
134 event_action = ${acl {logger}}
141 helo_data = helo.data.changed
142 #tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/server1.example.com/ca_chain.pem
143 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
144 tls_verify_cert_hostnames =
146 hosts_require_tls = *
147 hosts_require_ocsp = *
148 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
149 (${listextract {${eval:$tls_out_ocsp+1}} \
150 {notreq:notresp:vfynotdone:failed:verified}})
151 event_action = ${acl {logger}}