debian experimental exim-daemon-heavy config
[exim.git] / test / scripts / 5820-DANE-GnuTLS / 5820
CommitLineData
12ee8cf9
JH
1# DANE client: general
2#
899b8bbc
JH
3exim -DSERVER=server -DDETAILS=ee -bd -oX PORT_D
4****
570cb1bd 5### TLSA (3 1 1) (DANE-EE SPKI SHA2-256)
feb5343a 6exim -odq t1@dane256ee.test.ex
899b8bbc 7Testing
12ee8cf9 8****
570cb1bd 9### TLSA (3 1 2) ( SHA2-512)
feb5343a 10exim -odq t2@mxdane512ee.test.ex
12ee8cf9
JH
11Testing
12****
13exim -qf
14****
899b8bbc
JH
15#
16#
17### Recipient callout
18exim -DOPT=callout -bhc 127.0.0.1
feb5343a 19MAIL FROM: <t3@myhost.test.ex>
899b8bbc
JH
20RCPT TO: <rcptuser@dane256ee.test.ex>
21****
22killdaemon
23#
24#
25exim -DSERVER=server -DDETAILS=ta -bd -oX PORT_D
26****
570cb1bd 27### TLSA (2 0 1) (DANE-TA CERT SHA2-256)
feb5343a 28exim -odf t4@mxdane256ta.test.ex
899b8bbc
JH
29Testing
30****
31killdaemon
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
36exim -DSERVER=server -DDETAILS=no -bd -oX PORT_D
37****
feb5343a 38exim -odf t6@thishost.test.ex
899b8bbc
JH
39Testing
40****
12ee8cf9 41killdaemon
899b8bbc
JH
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
45exim -DSERVER=server -DDETAILS=ca -bd -oX PORT_D
46****
feb5343a 47exim -odf -DDETAILS=ca t7@thishost.test.ex
899b8bbc
JH
48Testing
49****
50exim -DOPT=no_certname -qf
51****
52killdaemon
53#
54#
55exim -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)
feb5343a 58exim -odq t8@mxdanelazy.test.ex
899b8bbc
JH
59Testing
60****
61### A server lacking a TLSA, dane required (should fail)
feb5343a 62exim -odq t9@dane.no.1.test.ex
899b8bbc
JH
63Testing
64****
65### A server lacking a TLSA, dane requested only (should deliver, non-DANE, as the NXDOMAIN is not DNSSEC)
feb5343a 66exim -odq t10@dane.no.2.test.ex
899b8bbc
JH
67Testing
68****
69### A server where the A is dnssec and the TLSA lookup _fails_ (delivery should defer)
feb5343a 70exim -odq t11@danebroken1.test.ex
899b8bbc
JH
71Testing
72****
73### A server securely saying "no TLSA records here", dane required (delivery should fail)
feb5343a 74exim -odq t12@dane.no.3.test.ex
899b8bbc
JH
75Testing
76****
77### A server securely saying "no TLSA records here", dane requested only (should deliver)
feb5343a 78exim -odq t13@dane.no.4.test.ex
899b8bbc
JH
79Testing
80****
81exim -qf
12ee8cf9 82****
feb5343a
JH
83exim -Mrm $msg1 $msg2
84****
899b8bbc
JH
85#
86### A server securely serving a wrong TLSA record, dane requested only (delivery should fail)
feb5343a
JH
87#XXX it defers.
88exim -odf t14@danebroken2.test.ex
899b8bbc
JH
89Testing
90****
91### A server insecurely serving a good TLSA record, dane requested only (should deliver, non-DANE)
feb5343a 92exim -odf t15@danebroken3.test.ex
899b8bbc
JH
93Testing
94****
95### A server insecurely serving a good TLSA record, dane required (delivery should fail)
feb5343a 96exim -odf t16@danebroken4.test.ex
899b8bbc
JH
97Testing
98****
99### A server insecurely serving a good A record, dane requested only (should deliver, non-DANE)
feb5343a 100exim -odf t17@danebroken5.test.ex
899b8bbc
JH
101Testing
102****
103### A server insecurely serving a good A record, dane required (delivery should fail)
feb5343a 104exim -odf t18@danebroken6.test.ex
899b8bbc
JH
105Testing
106****
107#
94c13285 108### A server with a mixed-usage set of TLSAs - the EE-mode one failing verify (should deliver, DANE-mode)
59c0959a 109# that way round to exercise more code in the implementation
feb5343a 110exim -odf t18a@danemixed.test.ex
94c13285
JH
111Testing
112****
113#
899b8bbc 114killdaemon
94c13285
JH
115#
116#
117#
28646fa9
JH
118### A server with a name not matching the cert. TA-mode; should fail
119exim -DSERVER=server -DDETAILS=cert.net -bd -oX PORT_D
120****
feb5343a 121exim -odf t19@danebroken7.example.com
28646fa9
JH
122Testing
123****
124#
125### A server with a name not matching the cert. EE-mode; should deliver and claim DANE mode
feb5343a 126exim -odf t20@danebroken8.example.com
28646fa9
JH
127Testing
128****
59c0959a
JH
129killdaemon
130#
28646fa9 131#
59c0959a
JH
132sudo rm DIR/spool/db/retry
133exim -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)
feb5343a 136exim -odf -DCONTROL=: t21@danebroken2.test.ex
59c0959a 137****
feb5343a
JH
138# sleep needed to see the t14 brokenness
139sleep 1
28646fa9 140killdaemon
feb5343a 141sleep 1
59c0959a 142#
899b8bbc 143no_msglog_check