1 # Exim test configuration 5658
2 # OCSP stapling, client, events
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 accept condition = ${if !eq {msg} {${listextract{1}{$event_name}}}}
57 warn logwrite = client ocsp status: $tls_out_ocsp \
58 (${listextract {${eval:$tls_out_ocsp+1}} \
59 {notreq:notresp:vfynotdone:failed:verified}})
69 condition = ${if eq {SERVER}{server}{no}{yes}}
71 transport = send_to_server${if eq{$local_part}{nostaple}{1} \
72 {${if eq{$local_part}{norequire} {2} \
73 {${if eq{$local_part}{smtps} {4}{3}}} \
80 #transport = local_delivery
83 # ----- Transports -----
89 file = DIR/test-mail/$local_part
90 headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
98 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
100 hosts_request_ocsp = :
101 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
102 (${listextract {${eval:$tls_out_ocsp+1}} \
103 {notreq:notresp:vfynotdone:failed:verified}})
104 event_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 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 hosts_require_tls = *
128 hosts_require_ocsp = *
129 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
130 (${listextract {${eval:$tls_out_ocsp+1}} \
131 {notreq:notresp:vfynotdone:failed:verified}})
132 event_action = ${acl {logger}}
139 helo_data = helo.data.changed
140 #tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/server1.example.com/ca_chain.pem
141 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
143 hosts_require_tls = *
144 hosts_require_ocsp = *
145 headers_add = X-TLS-out: OCSP status $tls_out_ocsp \
146 (${listextract {${eval:$tls_out_ocsp+1}} \
147 {notreq:notresp:vfynotdone:failed:verified}})
148 event_action = ${acl {logger}}