1 # Exim test configuration 5658
2 # OCSP stapling, client, tpda
8 host_lookup_order = bydns
9 primary_hostname = server1.example.com
10 rfc1413_query_timeout = 0s
11 spool_directory = DIR/spool
12 log_file_path = DIR/spool/log/SERVER%slog
14 gecos_name = CALLER_NAME
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
30 tls_certificate = ${if eq {SERVER}{server}\
31 {DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.chain.pem}\
34 tls_privatekey = ${if eq {SERVER}{server}\
35 {DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.unlocked.key}\
47 accept domains = +local_domains
48 deny message = relay not permitted
51 warn condition = ${if def:h_X-TLS-out:}
52 logwrite = client claims: $h_X-TLS-out:
56 warn logwrite = client ocsp status: $tls_out_ocsp \
57 (${listextract {${eval:$tls_out_ocsp+1}} \
58 {notreq:notresp:vfynotdone:failed:verified}})
68 condition = ${if eq {SERVER}{server}{no}{yes}}
70 transport = send_to_server${if eq{$local_part}{nostaple}{1} \
71 {${if eq{$local_part}{norequire} {2} \
72 {${if eq{$local_part}{smtps} {4}{3}}} \
79 #transport = local_delivery
82 # ----- Transports -----
88 file = DIR/test-mail/$local_part
89 headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
97 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
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 tpda_delivery_action = ${acl {logger}}
104 tpda_host_defer_action = ${acl {logger}}
111 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
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 tpda_delivery_action = ${acl {logger}}
118 tpda_host_defer_action = ${acl {logger}}
125 helo_data = helo.data.changed
126 #tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/server1.example.com/ca_chain.pem
127 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
128 hosts_require_tls = *
129 hosts_require_ocsp = *
130 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
131 (${listextract {${eval:$tls_out_ocsp+1}} \
132 {notreq:notresp:vfynotdone:failed:verified}})
133 tpda_delivery_action = ${acl {logger}}
134 tpda_host_defer_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
145 hosts_require_tls = *
146 hosts_require_ocsp = *
147 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
148 (${listextract {${eval:$tls_out_ocsp+1}} \
149 {notreq:notresp:vfynotdone:failed:verified}})
150 tpda_delivery_action = ${acl {logger}}
151 tpda_host_defer_action = ${acl {logger}}