Commit | Line | Data |
---|---|---|
37ff4e03 | 1 | # Exim test configuration 5840 |
899b8bbc | 2 | # DANE/OpenSSL |
12ee8cf9 JH |
3 | |
4 | SERVER= | |
59c0959a | 5 | CONTROL= * |
12ee8cf9 | 6 | |
d4dc049f JH |
7 | .include DIR/aux-var/tls_conf_prefix |
8 | ||
12ee8cf9 | 9 | primary_hostname = myhost.test.ex |
12ee8cf9 JH |
10 | |
11 | # ----- Main settings ----- | |
12 | ||
bf7aabb4 | 13 | .ifndef OPT |
899b8bbc | 14 | acl_smtp_rcpt = accept logwrite = "rcpt ACL" |
bf7aabb4 JH |
15 | .else |
16 | acl_smtp_rcpt = accept verify = recipient/callout | |
17 | .endif | |
12ee8cf9 | 18 | |
e5cccda9 | 19 | log_selector = +received_recipients +tls_peerdn +tls_certificate_verified |
12ee8cf9 | 20 | |
12ee8cf9 JH |
21 | queue_run_in_order |
22 | ||
23 | tls_advertise_hosts = * | |
24 | ||
25 | # Set certificate only if server | |
899b8bbc | 26 | CDIR1 = DIR/aux-fixed/exim-ca/example.net/server1.example.net |
82525c6f | 27 | CDIR2 = DIR/aux-fixed/exim-ca/example.com/server1.example.com |
12ee8cf9 | 28 | |
854586e1 JH |
29 | .ifdef CERT |
30 | tls_certificate = CERT | |
31 | .else | |
82525c6f | 32 | tls_certificate = ${if eq {SERVER}{server} \ |
899b8bbc | 33 | {${if or {{eq {DETAILS}{ta}} {eq {DETAILS}{ca}} {eq {DETAILS}{ee}}} \ |
82525c6f | 34 | {CDIR2/fullchain.pem}\ |
899b8bbc | 35 | {CDIR1/fullchain.pem}}}\ |
82525c6f | 36 | fail} |
854586e1 | 37 | .endif |
82525c6f | 38 | |
854586e1 JH |
39 | .ifdef ALLOW |
40 | tls_privatekey = ALLOW | |
41 | .else | |
82525c6f | 42 | tls_privatekey = ${if eq {SERVER}{server} \ |
899b8bbc | 43 | {${if or {{eq {DETAILS}{ta}} {eq {DETAILS}{ca}} {eq {DETAILS}{ee}}} \ |
82525c6f | 44 | {CDIR2/server1.example.com.unlocked.key}\ |
899b8bbc | 45 | {CDIR1/server1.example.net.unlocked.key}}}\ |
82525c6f | 46 | fail} |
854586e1 | 47 | .endif |
12ee8cf9 | 48 | |
12ee8cf9 JH |
49 | # ----- Routers ----- |
50 | ||
51 | begin routers | |
52 | ||
53 | client: | |
cf2b569e | 54 | driver = dnslookup |
82525c6f | 55 | condition = ${if eq {SERVER}{}} |
cf2b569e JH |
56 | dnssec_request_domains = * |
57 | self = send | |
12ee8cf9 | 58 | transport = send_to_server |
4b0fe319 | 59 | errors_to = "" |
12ee8cf9 JH |
60 | |
61 | server: | |
62 | driver = redirect | |
63 | data = :blackhole: | |
64 | ||
65 | ||
66 | # ----- Transports ----- | |
67 | ||
68 | begin transports | |
69 | ||
70 | send_to_server: | |
71 | driver = smtp | |
72 | allow_localhost | |
28646fa9 | 73 | port = PORT_D |
277b9979 | 74 | hosts_try_fastopen = : |
12ee8cf9 | 75 | |
59c0959a | 76 | hosts_try_dane = CONTROL |
b7e4352c | 77 | hosts_require_dane = HOSTIPV4 |
01a4a5c5 | 78 | tls_verify_cert_hostnames = ${if eq {OPT}{no_certname} {}{*}} |
281e72e4 | 79 | tls_try_verify_hosts = thishost.test.ex |
570cb1bd | 80 | tls_verify_certificates = ${if eq {DETAILS}{ca} {CDIR2/ca_chain.pem} {}} |
281e72e4 | 81 | |
7a31d643 | 82 | |
12ee8cf9 JH |
83 | |
84 | # ----- Retry ----- | |
85 | ||
86 | ||
87 | begin retry | |
88 | ||
89 | * * F,5d,10s | |
90 | ||
91 | ||
92 | # End |