Fix CVE-2016-1531
[exim.git] / test / confs / 5600
1 # Exim test configuration 5600
2 # OCSP stapling, server
3
4 CRL=
5
6 exim_path = EXIM_PATH
7 keep_environment =
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/%slog
13 gecos_pattern = ""
14 gecos_name = CALLER_NAME
15
16 # ----- Main settings -----
17
18 acl_smtp_connect = check_connect
19 acl_smtp_mail = check_mail
20 acl_smtp_rcpt = check_recipient
21
22 log_selector = +tls_peerdn
23
24 queue_only
25 queue_run_in_order
26
27 tls_advertise_hosts = *
28
29 tls_certificate = DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.pem
30 tls_privatekey = DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.unlocked.key
31
32 tls_verify_hosts = HOSTIPV4
33 tls_try_verify_hosts = *
34 tls_verify_certificates = DIR/aux-fixed/cert2
35 tls_crl = CRL
36 tls_ocsp_file = OCSP
37
38
39 # ------ ACL ------
40
41 begin acl
42
43 check_connect:
44   accept   logwrite = acl_conn: ocsp in status: $tls_in_ocsp \
45     (${listextract {${eval:$tls_in_ocsp+1}} \
46                 {notreq:notresp:vfynotdone:failed:verified}})
47
48 check_mail:
49   accept   logwrite = acl_mail: ocsp in status: $tls_in_ocsp \
50     (${listextract {${eval:$tls_in_ocsp+1}} \
51                 {notreq:notresp:vfynotdone:failed:verified}})
52
53 check_recipient:
54   deny     message = certificate not verified: peerdn=$tls_peerdn
55          ! verify = certificate
56   accept
57
58
59 # ----- Routers -----
60
61 begin routers
62
63 abc:
64   driver = accept
65   retry_use_local_part
66   transport = local_delivery
67
68
69 # ----- Transports -----
70
71 begin transports
72
73 local_delivery:
74   driver = appendfile
75   file = DIR/test-mail/$local_part
76   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
77   user = CALLER
78
79 # End