1 # Exim test configuration 5601
2 # OCSP stapling, client
7 keep_environment = ^EXIM_TESTHARNESS_DISABLE_[O]CSPVALIDITYCHECK$
8 host_lookup_order = bydns
9 spool_directory = DIR/spool
10 log_file_path = DIR/spool/log/SERVER%slog
12 gecos_name = CALLER_NAME
13 chunking_advertise_hosts =
14 primary_hostname = server1.example.com
17 # ----- Main settings -----
19 domainlist local_domains = test.ex : *.test.ex
21 acl_smtp_rcpt = check_recipient
22 acl_smtp_data = check_data
24 log_selector = +tls_peerdn
25 remote_max_parallel = 1
27 tls_advertise_hosts = *
29 # Set certificate only if server
31 tls_certificate = ${if eq {SERVER}{server}\
32 {DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.chain.pem}\
36 #{DIR/aux-fixed/exim-ca/example.com/CA/CA.pem}\
38 tls_privatekey = ${if eq {SERVER}{server}\
39 {DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.unlocked.key}\
50 accept domains = +local_domains
51 deny message = relay not permitted
54 warn condition = ${if def:h_X-TLS-out:}
55 logwrite = client claims: $h_X-TLS-out:
64 condition = ${if eq {SERVER}{server}{no}{yes}}
66 transport = send_to_server${if eq{$local_part}{nostaple}{1} \
67 {${if eq{$local_part}{norequire} {2} \
68 {${if eq{$local_part}{smtps} {4}{3}}} \
75 #transport = local_delivery
78 # ----- Transports -----
84 file = DIR/test-mail/$local_part
85 headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
93 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
94 tls_verify_cert_hostnames =
96 hosts_request_ocsp = :
97 headers_add = X-TLS-out: ocsp status $tls_out_ocsp \
98 (${listextract {${eval:$tls_out_ocsp+1}} \
99 {notreq:notresp:vfynotdone:failed:verified}})
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}})
119 helo_data = helo.data.changed
120 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
121 tls_verify_cert_hostnames =
122 hosts_require_tls = *
123 hosts_require_ocsp = *
124 headers_add = X-TLS-out: ocsp status $tls_out_ocsp \
125 (${listextract {${eval:$tls_out_ocsp+1}} \
126 {notreq:notresp:vfynotdone:failed:verified}})
133 helo_data = helo.data.changed
134 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
135 tls_verify_cert_hostnames =
137 hosts_require_tls = *
138 hosts_require_ocsp = *
139 headers_add = X-TLS-out: ocsp status $tls_out_ocsp \
140 (${listextract {${eval:$tls_out_ocsp+1}} \
141 {notreq:notresp:vfynotdone:failed:verified}})