Fix CVE-2016-1531
[exim.git] / test / confs / 2132
1 # Exim test configuration 2132 (close copy of 2102)
2
3 exim_path = EXIM_PATH
4 keep_environment =
5 host_lookup_order = bydns
6 primary_hostname = myhost.test.ex
7 rfc1413_query_timeout = 0s
8 spool_directory = DIR/spool
9 log_file_path = DIR/spool/log/%slog
10 gecos_pattern = ""
11 gecos_name = CALLER_NAME
12
13 # ----- Main settings -----
14
15 acl_smtp_rcpt = check_recipient
16
17 log_selector = +tls_peerdn
18
19 queue_only
20 queue_run_in_order
21
22 tls_advertise_hosts = 127.0.0.1 : HOSTIPV4
23
24 tls_certificate = DIR/aux-fixed/exim-ca/example.com/server2.example.com/server2.example.com.pem
25 tls_privatekey = DIR/aux-fixed/exim-ca/example.com/server2.example.com/server2.example.com.unlocked.key
26
27 tls_verify_hosts = HOSTIPV4
28 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/server1.example.com/certdir
29
30
31 # ------ ACL ------
32
33 begin acl
34
35 check_recipient:
36   accept  hosts = :
37   deny    hosts = HOSTIPV4
38          !encrypted = AES256-SHA : \
39                       AES256-GCM-SHA384 : \
40                       AES128-GCM-SHA256 : \
41                       IDEA-CBC-MD5 : \
42                       DES-CBC3-SHA : \
43                       DHE-RSA-AES256-SHA : \
44                       DHE-RSA-AES256-GCM-SHA384 : \
45                       DHE_RSA_AES_256_CBC_SHA1 : \
46                       DHE_RSA_3DES_EDE_CBC_SHA
47   warn    logwrite =  ${if def:tls_in_ourcert \
48                 {Our cert SN: <${certextract{subject}{$tls_in_ourcert}}>} \
49                 {We did not present a cert}}
50   accept  condition = ${if !def:tls_in_peercert}
51           logwrite =  Peer did not present a cert
52   accept  logwrite =  SN  <${certextract {subject}      {$tls_in_peercert}}>
53
54
55 # ----- Routers -----
56
57 begin routers
58
59 abc:
60   driver = accept
61   retry_use_local_part
62   transport = local_delivery
63   headers_add = tls-certificate-verified: $tls_certificate_verified
64
65
66 # ----- Transports -----
67
68 begin transports
69
70 local_delivery:
71   driver = appendfile
72   file = DIR/test-mail/$local_part
73   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
74   user = CALLER
75
76 # End