803865404c7a64e0ba0c72d2aaa7a8bb4ac64900
[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) (DANE-EE SPKI SHA2-256)
6 exim -odq t1@dane256ee.test.ex
7 Testing
8 ****
9 ### TLSA (3 1 2) (            SHA2-512)
10 exim -odq t2@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: <t3@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) (DANE-TA CERT SHA2-256)
28 exim -odf t4@mxdane256ta.test.ex
29 Testing
30 ****
31 killdaemon
32 #
33 # OpenSSL-specific regression testcase: certificate having Authority Key ID extension
34 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
35 ****
36 ### TLSA (2 1 1)
37 exim -odf t5@mxdane256tak.test.ex
38 Testing
39 ****
40 killdaemon
41 #
42 ### A server with a nonverifying cert and no TLSA
43 # Check we get a non-CV but TLS connection, with try_dane but no require_dane
44 exim -DSERVER=server -DDETAILS=no -bd -oX PORT_D
45 ****
46 exim -odf t6@thishost.test.ex
47 Testing
48 ****
49 killdaemon
50 #
51 ### A server with a verifying cert and no TLSA
52 # Check we get a CV and TLS connection, with try_dane but no require_dane
53 exim -DSERVER=server -DDETAILS=ca -bd -oX PORT_D
54 ****
55 exim -odf -DDETAILS=ca t7@thishost.test.ex
56 Testing
57 ****
58 exim -DOPT=no_certname -qf
59 ****
60 killdaemon
61 #
62 #
63 exim -DSERVER=server -DDETAILS=ee -bd -oX PORT_D
64 ****
65 ### A server with two MXs for which both TLSA lookups return defer (delivery should defer)
66 exim -odq t8@mxdanelazy.test.ex
67 Testing
68 ****
69 ### A server lacking a TLSA, dane required (should fail)
70 exim -odq t9@dane.no.1.test.ex
71 Testing
72 ****
73 ### A server lacking a TLSA, dane requested only (should deliver, non-DANE, as the NXDOMAIN is not DNSSEC)
74 exim -odq t10@dane.no.2.test.ex
75 Testing
76 ****
77 ### A server where the A is dnssec and the TLSA lookup _fails_ (delivery should defer)
78 exim -odq t11@danebroken1.test.ex
79 Testing
80 ****
81 ### A server securely saying "no TLSA records here", dane required (delivery should fail)
82 exim -odq t12@dane.no.3.test.ex
83 Testing
84 ****
85 ### A server securely saying "no TLSA records here", dane requested only (should deliver)
86 exim -odq t13@dane.no.4.test.ex
87 Testing
88 ****
89 exim -qf
90 ****
91 exim -Mrm $msg1 $msg2
92 ****
93 #
94 ### A server securely serving a wrong TLSA record, dane requested only (delivery should fail)
95 #XXX it defers.
96 exim -odf t14@danebroken2.test.ex
97 Testing
98 ****
99 ### A server insecurely serving a good TLSA record, dane requested only (should deliver, non-DANE)
100 exim -odf t15@danebroken3.test.ex
101 Testing
102 ****
103 ### A server insecurely serving a good TLSA record, dane required (delivery should fail)
104 exim -odf t16@danebroken4.test.ex
105 Testing
106 ****
107 ### A server insecurely serving a good A record, dane requested only (should deliver, non-DANE)
108 exim -odf t17@danebroken5.test.ex
109 Testing
110 ****
111 ### A server insecurely serving a good A record, dane required (delivery should fail)
112 exim -odf t18@danebroken6.test.ex
113 Testing
114 ****
115 #
116 killdaemon
117 #
118 #
119 #
120 ### A server with a name not matching the cert.  TA-mode; should fail
121 exim -DSERVER=server -DDETAILS=cert.net -bd -oX PORT_D
122 ****
123 exim -odf t19@danebroken7.example.com
124 Testing
125 ****
126 #
127 ### A server with a name not matching the cert.  EE-mode; should deliver and claim DANE mode
128 exim -odf t20@danebroken8.example.com
129 Testing
130 ****
131 killdaemon
132 #
133 #
134 sudo rm DIR/spool/db/retry
135 exim -DSERVER=server -DDETAILS=ca -bd -oX PORT_D
136 ****
137 ### A server securely serving a wrong TLSA record, dane not requested (delivery should work non-dane)
138 exim -odf -DCONTROL=: t21@danebroken2.test.ex
139 ****
140 # sleep needed to see the t14 brokenness
141 sleep 1
142 killdaemon
143 sleep 1
144 #
145 no_msglog_check