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