git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add testcase for TLSA record access
[exim.git]
/
test
/
confs
/
5850
diff --git
a/test/confs/5850
b/test/confs/5850
index ac967fcb8b5242093de288947c1072fabbd4ef11..c381ef616709884384b85cc0e748ac27be13a960 100644
(file)
--- a/
test/confs/5850
+++ b/
test/confs/5850
@@
-16,7
+16,7
@@
gecos_name = CALLER_NAME
acl_smtp_rcpt = accept
acl_smtp_rcpt = accept
-log_selector = +
tls_peerdn
+log_selector = +
received_recipients +tls_peerdn +tls_certificate_verified
queue_only
queue_run_in_order
queue_only
queue_run_in_order
@@
-24,12
+24,20
@@
queue_run_in_order
tls_advertise_hosts = *
# Set certificate only if server
tls_advertise_hosts = *
# Set certificate only if server
+CDIR1 = DIR/aux-fixed
+CDIR2 = DIR/aux-fixed/exim-ca/example.com/server1.example.com
-tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
-tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
+tls_certificate = ${if eq {SERVER}{server} \
+ {${if eq {DETAILS}{ta} \
+ {CDIR2/fullchain.pem}\
+ {CDIR1/cert1}}}\
+ fail}
-#tls_verify_hosts = *
-#tls_verify_certificates = ${if eq {SERVER}{server}{DIR/aux-fixed/cert2}fail}
+tls_privatekey = ${if eq {SERVER}{server} \
+ {${if eq {DETAILS}{ta} \
+ {CDIR2/server1.example.com.unlocked.key}\
+ {CDIR1/cert1}}}\
+ fail}
# ----- Routers -----
# ----- Routers -----
@@
-37,9
+45,10
@@
tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
begin routers
client:
begin routers
client:
- driver = accept
- condition = ${if eq {SERVER}{server}{no}{yes}}
- retry_use_local_part
+ driver = dnslookup
+ condition = ${if eq {SERVER}{}}
+ dnssec_request_domains = *
+ self = send
transport = send_to_server
server:
transport = send_to_server
server:
@@
-54,11
+63,10
@@
begin transports
send_to_server:
driver = smtp
allow_localhost
send_to_server:
driver = smtp
allow_localhost
- hosts = 127.0.0.1
port = PORT_D
port = PORT_D
-# tls_certificate = DIR/aux-fixed/cert2
-#
tls_privatekey = DIR/aux-fixed/cert2
-# tls_verify_certificates = DIR/aux-fixed/cert2
+
+#
hosts_try_dane = *
+ hosts_require_dane = *
# ----- Retry -----
# ----- Retry -----