Rename facility to Event Actions, ifdeffed on EXPERIMENTAL_EVENT
[exim.git] / test / confs / 5860
CommitLineData
37ff4e03 1# Exim test configuration 5860
83b27293
JH
2# DANE
3
4SERVER=
5
6exim_path = EXIM_PATH
7host_lookup_order = bydns
8primary_hostname = myhost.test.ex
9rfc1413_query_timeout = 0s
10spool_directory = DIR/spool
11log_file_path = DIR/spool/log/SERVER%slog
12gecos_pattern = ""
13gecos_name = CALLER_NAME
14
15# ----- Main settings -----
16
17acl_smtp_rcpt = accept
18
19log_selector = +received_recipients +tls_peerdn +tls_certificate_verified
20
21queue_only
22queue_run_in_order
23
24tls_advertise_hosts = *
25
26# Set certificate only if server
27CDIR1 = DIR/aux-fixed
28CDIR2 = DIR/aux-fixed/exim-ca/example.com/server1.example.com
29
30tls_certificate = ${if eq {SERVER}{server} \
31 {${if eq {DETAILS}{ta} \
32 {CDIR2/fullchain.pem}\
33 {CDIR1/cert1}}}\
34 fail}
35
36tls_privatekey = ${if eq {SERVER}{server} \
37 {${if eq {DETAILS}{ta} \
38 {CDIR2/server1.example.com.unlocked.key}\
39 {CDIR1/cert1}}}\
40 fail}
41
42
43begin acl
44
45logger:
774ef2d7
JH
46 accept condition = ${if eq {tls} {${listextract{1}{$event_name}}}}
47 logwrite = $event_name depth = $event_data \
83b27293
JH
48 <${certextract {subject} {$tls_out_peercert}}>
49# message = noooo
50
774ef2d7
JH
51 accept condition = ${if eq {msg} {${listextract{1}{$event_name}}}}
52 logwrite = $event_name dane=$tls_out_dane
83b27293
JH
53 accept
54
55# ----- Routers -----
56
57begin routers
58
59client:
60 driver = dnslookup
61 condition = ${if eq {SERVER}{}}
62 dnssec_request_domains = *
63 self = send
64 transport = send_to_server
65
66server:
67 driver = redirect
68 data = :blackhole:
69
70
71# ----- Transports -----
72
73begin transports
74
75send_to_server:
76 driver = smtp
77 allow_localhost
78 port = PORT_D
79
80# hosts_try_dane = *
81 hosts_require_dane = *
82 hosts_request_ocsp = ${if or { {= {4}{$tls_out_tlsa_usage}} \
83 {= {0}{$tls_out_tlsa_usage}} } \
84 {*}{}}
85
774ef2d7 86 event_action = ${acl {logger}}
83b27293
JH
87
88# End