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