Fix CVE-2016-1531
[exim.git] / test / confs / 5760
1 # Exim test configuration 5760 (dup of 5750)
2 # $tls_out_peercert - OpenSSL
3
4 SERVER=
5
6 exim_path = EXIM_PATH
7 keep_environment =
8 host_lookup_order = bydns
9 primary_hostname = myhost.test.ex
10 rfc1413_query_timeout = 0s
11 spool_directory = DIR/spool
12 log_file_path = DIR/spool/log/SERVER%slog
13 gecos_pattern = ""
14 gecos_name = CALLER_NAME
15
16 # ----- Main settings -----
17
18 acl_smtp_rcpt = accept
19
20 log_selector =  +tls_peerdn
21
22 queue_only
23 queue_run_in_order
24
25 tls_advertise_hosts = *
26
27 tls_certificate = DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.pem
28 tls_privatekey = DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.unlocked.key
29
30 tls_verify_hosts = *
31 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/server2.example.com/ca_chain.pem
32
33 #
34
35 begin acl
36 logger:
37   warn   logwrite =  $acl_arg1 $tpda_delivery_local_part
38   warn   logwrite =  ${if !def:tls_out_ourcert \
39                 {NO CLENT CERT presented} \
40                 {Our cert SN: ${certextract{subject}{$tls_out_ourcert}}}}
41   accept condition = ${if !def:tls_out_peercert}
42          logwrite =  No Peer cert
43   accept logwrite = Peer cert:
44          logwrite =  ver <${certextract {version}       {$tls_out_peercert}}>
45          logwrite =  SN  <${certextract {subject}       {$tls_out_peercert}}>
46          logwrite =  IN  <${certextract {issuer}        {$tls_out_peercert}}>
47          logwrite =  NB  <${certextract {notbefore}     {$tls_out_peercert}}>
48          logwrite =  NA  <${certextract {notafter}      {$tls_out_peercert}}>
49          logwrite =  SA  <${certextract {sig_algorithm} {$tls_out_peercert}}>
50          logwrite =  SG  <${certextract {signature}     {$tls_out_peercert}}>
51          logwrite = ${certextract {subj_altname,>;}{$tls_out_peercert}{SAN <$value>}{(no SAN)}}
52          logwrite =       ${certextract {ocsp_uri}      {$tls_out_peercert} {OCU <$value>}{(no OCU)}}
53          logwrite =       ${certextract {crl_uri}       {$tls_out_peercert} {CRU <$value>}{(no CRU)}}
54
55
56 # ----- Routers -----
57
58 begin routers
59
60 client:
61   driver = accept
62   condition = ${if eq {SERVER}{server}{no}{yes}}
63   retry_use_local_part
64   transport = send_to_server
65
66
67 # ----- Transports -----
68
69 begin transports
70
71 send_to_server:
72   driver = smtp
73   allow_localhost
74   hosts = 127.0.0.1
75   port = PORT_D
76
77   tls_certificate = DIR/aux-fixed/exim-ca/example.com/server2.example.com/server2.example.com.pem
78   tls_privatekey = DIR/aux-fixed/exim-ca/example.com/server2.example.com/server2.example.com.unlocked.key
79
80   tls_verify_certificates = DIR/aux-fixed/exim-ca/\
81        ${if eq {$local_part}{good}\
82 {example.com/server1.example.com/ca_chain.pem}\
83 {example.net/server1.example.net/ca_chain.pem}}
84
85   tpda_delivery_action =   ${acl {logger} {delivery} {$domain} }
86   tpda_host_defer_action = ${acl {logger} {deferral} {$domain} }
87
88 # ----- Retry -----
89
90
91 begin retry
92
93 * * F,5d,10s
94
95
96 # End