TLS: variables $tls_(in,out)_tlsver
[exim.git] / test / confs / 5655
CommitLineData
e326959e
JH
1# Exim test configuration 5655
2# OCSP stapling, server, multiple chain-element OCSP
e5489333
JH
3
4.include DIR/aux-var/tls_conf_prefix
5
6primary_hostname = server1.example.com
7
8# ----- Main settings -----
9
e326959e 10acl_smtp_connect = accept logwrite = ${env {SSLKEYLOGFILE}}
e5489333
JH
11acl_smtp_mail = check_mail
12acl_smtp_rcpt = check_recipient
13
14log_selector = +tls_peerdn
15
16queue_only
17queue_run_in_order
18
19tls_advertise_hosts = *
20
21CADIR = DIR/aux-fixed/exim-ca
22DRSA = CADIR/example.com
23DECDSA = CADIR/example_ec.com
24
e326959e 25tls_certificate = DRSA/server1.example.com/fullchain.pem \
e5489333
JH
26 : DECDSA/server1.example_ec.com/server1.example_ec.com.pem
27tls_privatekey = DRSA/server1.example.com/server1.example.com.unlocked.key \
28 : DECDSA/server1.example_ec.com/server1.example_ec.com.unlocked.key
e5489333 29
e326959e
JH
30.ifndef CONTROL
31tls_ocsp_file = PEM DIR/tmp/ocsp/triple.ocsp.pem \
32 : DER DECDSA/server1.example_ec.com/server1.example_ec.com.ocsp.good.resp
33.else
34tls_ocsp_file = PEM DIR/tmp/ocsp/double_r.ocsp.pem \
35 : DER DECDSA/server1.example_ec.com/server1.example_ec.com.ocsp.good.resp
36.endif
e5489333 37
e326959e
JH
38
39.ifdef _HAVE_GNUTLS
40tls_require_ciphers = ${if eq {LIMIT}{TLS1.2} {NORMAL:!VERS-ALL:+VERS-TLS1.2} {}}
41.endif
e5489333
JH
42
43# ------ ACL ------
44
45begin acl
46
47check_mail:
48 accept logwrite = acl_mail: ocsp in status: $tls_in_ocsp \
49 (${listextract {${eval:$tls_in_ocsp+1}} \
50 {notreq:notresp:vfynotdone:failed:verified}})
51
52check_recipient:
53 accept
54
55
56# ----- Routers -----
57
58begin routers
59
60client:
61 driver = manualroute
62 condition = ${if !eq {SERVER}{server}}
63 route_list = * 127.0.0.1
64 self = send
65 transport = remote_delivery
66 errors_to = ""
67
68srvr:
69 driver = accept
70 retry_use_local_part
71 transport = local_delivery
72
73
74# ----- Transports -----
75
76begin transports
77
78remote_delivery:
79 driver = smtp
80 port = PORT_D
81 hosts_require_tls = *
e326959e
JH
82.ifdef _HAVE_GNUTLS
83
84 tls_require_ciphers = ${if eq {LIMIT}{TLS1.2} \
85 {NONE:\
86 ${if eq {OPT}{rsa} \
87 {+SIGN-RSA-SHA256:+VERS-TLS-ALL:+ECDHE-RSA:+DHE-RSA:+RSA} \
88 {+SIGN-ECDSA-SHA512:+VERS-TLS-ALL:+KX-ALL}}\
89 :+CIPHER-ALL:+MAC-ALL:+COMP-NULL:+CURVE-ALL:+CTYPE-X509} \
90 {}}
91 tls_verify_certificates = CADIR/\
92 ${if eq {OPT}{rsa} \
93 {example.com/server1.example.com} \
94 {example_ec.com/server1.example_ec.com}}\
95 /ca_chain.pem
96.endif
e5489333 97 hosts_require_ocsp = *
e5489333
JH
98 tls_verify_cert_hostnames = :
99
100local_delivery:
101 driver = appendfile
102 file = DIR/test-mail/$local_part
103 headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
104 user = CALLER
105
106# End