Move certificate name checking to mainline, default enabled
[users/jgh/exim.git] / test / confs / 5840
1 # Exim test configuration 5840
2 # DANE
3
4 SERVER=
5
6 exim_path = EXIM_PATH
7 host_lookup_order = bydns
8 primary_hostname = myhost.test.ex
9 rfc1413_query_timeout = 0s
10 spool_directory = DIR/spool
11 log_file_path = DIR/spool/log/SERVER%slog
12 gecos_pattern = ""
13 gecos_name = CALLER_NAME
14
15 # ----- Main settings -----
16
17 acl_smtp_rcpt = accept
18
19 log_selector =  +received_recipients +tls_peerdn +tls_certificate_verified
20
21 queue_only
22 queue_run_in_order
23
24 tls_advertise_hosts = *
25
26 # Set certificate only if server
27 CDIR1 = DIR/aux-fixed
28 CDIR2 = DIR/aux-fixed/exim-ca/example.com/server1.example.com
29
30 tls_certificate = ${if eq {SERVER}{server} \
31         {${if eq {DETAILS}{ta} \
32                 {CDIR2/fullchain.pem}\
33                 {CDIR1/cert1}}}\
34         fail}
35
36 tls_privatekey = ${if eq {SERVER}{server} \
37         {${if eq {DETAILS}{ta} \
38                 {CDIR2/server1.example.com.unlocked.key}\
39                 {CDIR1/cert1}}}\
40         fail}
41
42
43 # ----- Routers -----
44
45 begin routers
46
47 client:
48   driver = dnslookup
49   condition = ${if eq {SERVER}{}}
50   dnssec_request_domains = *
51   self = send
52   transport = send_to_server
53
54 server:
55   driver = redirect
56   data = :blackhole:
57
58
59 # ----- Transports -----
60
61 begin transports
62
63 send_to_server:
64   driver = smtp
65   allow_localhost
66   port = PORT_D
67
68 #  hosts_try_dane = *
69   hosts_require_dane = *
70   hosts_request_ocsp = ${if or { {= {4}{$tls_out_tlsa_usage}} \
71                                  {= {0}{$tls_out_tlsa_usage}} } \
72                         {*}{}}
73
74
75 # ----- Retry -----
76
77
78 begin retry
79
80 * * F,5d,10s
81
82
83 # End