Commit | Line | Data |
---|---|---|
12ee8cf9 JH |
1 | # Exim test configuration 5850 |
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 | ||
e5cccda9 | 19 | log_selector = +received_recipients +tls_peerdn +tls_certificate_verified |
12ee8cf9 JH |
20 | |
21 | queue_only | |
22 | queue_run_in_order | |
23 | ||
24 | tls_advertise_hosts = * | |
25 | ||
26 | # Set certificate only if server | |
82525c6f JH |
27 | CDIR1 = DIR/aux-fixed |
28 | CDIR2 = DIR/aux-fixed/exim-ca/example.com/server1.example.com | |
12ee8cf9 | 29 | |
82525c6f JH |
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} | |
12ee8cf9 JH |
41 | |
42 | ||
43 | # ----- Routers ----- | |
44 | ||
45 | begin routers | |
46 | ||
47 | client: | |
cf2b569e | 48 | driver = dnslookup |
82525c6f | 49 | condition = ${if eq {SERVER}{}} |
cf2b569e JH |
50 | dnssec_request_domains = * |
51 | self = send | |
12ee8cf9 JH |
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 | |
12ee8cf9 | 66 | port = PORT_D |
12ee8cf9 | 67 | |
7a31d643 JH |
68 | # hosts_try_dane = * |
69 | hosts_require_dane = * | |
70 | ||
12ee8cf9 JH |
71 | |
72 | # ----- Retry ----- | |
73 | ||
74 | ||
75 | begin retry | |
76 | ||
77 | * * F,5d,10s | |
78 | ||
79 | ||
80 | # End |