Be careful about DNS response AD/AA bits for error returns
[exim.git] / test / scripts / 5860-DANE-OpenSSL-events / 5861
CommitLineData
c4b57fdd
JH
1# DANE client: dane-fail events
2#
3### A server with a nonverifying cert and no TLSA
4# Check we get a non-CV but TLS connection, with try_dane but no require_dane
5# There should not be a dane-fail event
6exim -DSERVER=server -DDETAILS=no -bd -oX PORT_D
7****
8exim -odf CALLER@thishost.test.ex
9Testing
10****
11killdaemon
12#
13### A server with a verifying cert and no TLSA
14# Check we get a CV and TLS connection, with try_dane but no require_dane
15# There should not be a dane-fail event
16exim -DSERVER=server -DDETAILS=ca -bd -oX PORT_D
17****
18exim -odf CALLER@thishost.test.ex
19Testing
20****
21exim -DOPT=no_certname -qf
22****
23killdaemon
24#
25#
26exim -DSERVER=server -DDETAILS=ee -bd -oX PORT_D
27****
28### A server with two MXs for which both TLSA lookups return defer (delivery should defer)
29# One dane-fail event, as one of the MXs was dane-required
30exim -odf CALLER@mxdanelazy.test.ex
31Testing
32****
33### A server lacking a TLSA, dane required (should fail; should get an event)
34exim -odf CALLER@dane.no.1.test.ex
35Testing
36****
37### A server lacking a TLSA, dane requested only (should deliver, non-DANE, as the NXDOMAIN is not DNSSEC)
38# No event
39exim -odf CALLER@dane.no.2.test.ex
40Testing
41****
42### A server where the A is dnssec and the TLSA lookup _fails_ (delivery should defer)
43# gets an event, as the TLSA fail was non-dnssec
44exim -odf CALLER@danebroken1.test.ex
45Testing
46****
47### A server securely saying "no TLSA records here", dane required (delivery should fail)
48# An event; dane-required
49exim -odf CALLER@dane.no.3.test.ex
50Testing
51****
52### A server securely saying "no TLSA records here", dane requested only (should deliver)
53# No event (dane is not supported by this target, so not a failure)
54exim -odf CALLER@dane.no.4.test.ex
55Testing
56****
57#
58### A server securely serving a wrong TLSA record, dane requested only (delivery should fail)
59# An event (validation-failure)
60exim -odf CALLER@danebroken2.test.ex
61Testing
62****
63### A server insecurely serving a good TLSA record, dane requested only (should deliver, non-DANE)
64# No event (we didn't get a usable TLSA, so dane is not supported by...)
65exim -odf CALLER@danebroken3.test.ex
66Testing
67****
68### A server insecurely serving a good TLSA record, dane required (delivery should fail)
69# An event (dane-required)
70exim -odf CALLER@danebroken4.test.ex
71Testing
72****
73### A server insecurely serving a good A record, dane requested only (should deliver, non-DANE)
74# No event (not dane-worthy)
75exim -odf CALLER@danebroken5.test.ex
76Testing
77****
78### A server insecurely serving a good A record, dane required (delivery should fail)
79# An event (dane-required)
80exim -odf CALLER@danebroken6.test.ex
81Testing
82****
83#
84killdaemon
85#
86#
87#
88### A server with a name not matching the cert. TA-mode; should fail
89# An event (validation-failure)
90exim -DSERVER=server -DDETAILS=cert.net -bd -oX PORT_D
91****
92exim -odf CALLER@danebroken7.example.com
93Testing
94****
95#
96### A server with a name not matching the cert. EE-mode; should deliver and claim DANE mode
97# No event (no failure)
98exim -odf CALLER@danebroken8.example.com
99Testing
100****
101#
102killdaemon
103no_msglog_check
104no_stderr_check