# cutthrough_delivery to target offering TLS
#
munge optional_cert_hostnames
#
exim -DSERVER=server -bd -oX PORT_D
****
# this one should succeed
exim -d-all+acl+transport+expand+lists -bs
EHLO myhost.test.ex
MAIL FROM:<CALLER@myhost.test.ex>
RCPT TO:<userx@domain.com>
DATA

.
QUIT
****
# via a transport setting hosts_avoid_tls
# so this one should not use TLS
exim -d-all+acl+transport+expand+lists -bs
EHLO myhost.test.ex
MAIL FROM:<CALLER@myhost.test.ex>
RCPT TO:<usery@domain.com>
DATA

.
QUIT
****
# via a transport setting hosts_verify_avoid_tls
# so this one should not use TLS
exim -d-all+acl+transport+expand+lists -bs
EHLO myhost.test.ex
MAIL FROM:<CALLER@myhost.test.ex>
RCPT TO:<usery@domain.com>
DATA

.
QUIT
****
killdaemon
no_msglog_check
