Testsuite: add DANE testcase for TLSA lookup SERVFAIL
[exim.git] / test / scripts / 5840-DANE-OpenSSL / 5840
... / ...
CommitLineData
1# DANE client: general
2#
3exim -DSERVER=server -DDETAILS=ee -bd -oX PORT_D
4****
5### TLSA (3 1 1)
6exim -odq CALLER@dane256ee.test.ex
7Testing
8****
9### TLSA (3 1 2)
10exim -odq CALLER@mxdane512ee.test.ex
11Testing
12****
13exim -qf
14****
15#
16#
17### Recipient callout
18exim -DOPT=callout -bhc 127.0.0.1
19MAIL FROM: <CALLER@myhost.test.ex>
20RCPT TO: <rcptuser@dane256ee.test.ex>
21****
22killdaemon
23#
24#
25exim -DSERVER=server -DDETAILS=ta -bd -oX PORT_D
26****
27### TLSA (2 0 1)
28exim -odq CALLER@mxdane256ta.test.ex
29Testing
30****
31exim -qf
32****
33killdaemon
34#
35### A server with a nonverifying cert and no TLSA
36# Check we get a non-CV but TLS connection, with try_dane but no require_dane
37exim -DSERVER=server -DDETAILS=no -bd -oX PORT_D
38****
39exim -odq CALLER@thishost.test.ex
40Testing
41****
42exim -qf
43****
44killdaemon
45#
46### A server with a verifying cert and no TLSA
47# Check we get a CV and TLS connection, with try_dane but no require_dane
48exim -DSERVER=server -DDETAILS=ca -bd -oX PORT_D
49****
50exim -odq CALLER@thishost.test.ex
51Testing
52****
53exim -DOPT=no_certname -qf
54****
55killdaemon
56#
57#
58exim -DSERVER=server -DDETAILS=ee -bd -oX PORT_D
59****
60### A server with two MXs for which both TLSA lookups return defer
61exim -odq CALLER@mxdanelazy.test.ex
62Testing
63****
64### A server lacking a TLSA, dane required (should fail)
65exim -odq CALLER@dane.no.1.test.ex
66Testing
67****
68### A server lacking a TLSA, dane requested only (should fail, as the NXDOMAIN is not DNSSEC)
69exim -odq CALLER@dane.no.2.test.ex
70Testing
71****
72### A server where the A is dnssec and the TLSA _fails_
73exim -odq CALLER@danebroken1.test.ex
74Testing
75****
76# ### A server securely saying "no TLSA records here", dane required (should fail)
77# exim -odq CALLER@dane.no.3.test.ex
78# Testing
79# ### A server securely saying "no TLSA records here", dane requested only (should transmit)
80# exim -odq CALLER@dane.no.4.test.ex
81# Testing
82# ****
83exim -qf
84****
85killdaemon
86no_msglog_check