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