Testsuite cases for basic cutthrough_delivery.
[exim.git] / test / scripts / 2000-GnuTLS / 2014
CommitLineData
59371ea7
PH
1# TLS server: mandatory, optional, and revoked certificates
2gnutls
3exim -DSERVER=server -bd -oX PORT_D
4****
5# No certificate, certificate required
6client-gnutls HOSTIPV4 PORT_D
7??? 220
5c8cda3a 8ehlo rhu1.barb
59371ea7
PH
9??? 250-
10??? 250-
11??? 250-
12??? 250-
5b456975 13??? 250-
59371ea7
PH
14??? 250
15starttls
16??? 220
17****
18# No certificate, certificate optional at TLS time, required by ACL
19client-gnutls 127.0.0.1 PORT_D
20??? 220
5c8cda3a 21ehlo rhu2.barb
59371ea7
PH
22??? 250-
23??? 250-
24??? 250-
25??? 250-
5b456975 26??? 250-
59371ea7
PH
27??? 250
28starttls
29??? 220
5c8cda3a 30helo rhu2tls.barb
59371ea7
PH
31??? 250
32mail from:<userx@test.ex>
33??? 250
34rcpt to:<userx@test.ex>
35??? 550
36quit
37??? 221
38****
39# Good certificate, certificate required
40client-gnutls HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2
41??? 220
5c8cda3a 42ehlo rhu3.barb
59371ea7
PH
43??? 250-
44??? 250-
45??? 250-
46??? 250-
5b456975 47??? 250-
59371ea7
PH
48??? 250
49starttls
50??? 220
51mail from:<userx@test.ex>
52??? 250
53rcpt to:<userx@test.ex>
54??? 250
55quit
56??? 221
57****
58# Good certificate, certificate optional at TLS time, checked by ACL
59client-gnutls 127.0.0.1 PORT_D aux-fixed/cert2 aux-fixed/cert2
60??? 220
5c8cda3a 61ehlo rhu4.barb
59371ea7
PH
62??? 250-
63??? 250-
64??? 250-
65??? 250-
5b456975 66??? 250-
59371ea7
PH
67??? 250
68starttls
69??? 220
70mail from:<userx@test.ex>
71??? 250
72rcpt to:<userx@test.ex>
73??? 250
74quit
75??? 221
76****
77# Bad certificate, certificate required
78client-gnutls HOSTIPV4 PORT_D aux-fixed/cert1 aux-fixed/cert1
79??? 220
5c8cda3a 80ehlo rhu5.barb
59371ea7
PH
81??? 250-
82??? 250-
83??? 250-
84??? 250-
5b456975 85??? 250-
59371ea7
PH
86??? 250
87starttls
88??? 220
89****
90# Bad certificate, certificate optional at TLS time, reject at ACL time
91client-gnutls 127.0.0.1 PORT_D aux-fixed/cert1 aux-fixed/cert1
92??? 220
5c8cda3a 93ehlo rhu6.barb
59371ea7
PH
94??? 250-
95??? 250-
96??? 250-
97??? 250-
5b456975 98??? 250-
59371ea7
PH
99??? 250
100starttls
101??? 220
102mail from:<userx@test.ex>
103??? 250
104rcpt to:<userx@test.ex>
105??? 550-
106??? 550
107quit
108??? 221
109****
110killdaemon
111exim -DCRL=DIR/aux-fixed/crl.pem -DSERVER=server -bd -oX PORT_D
112****
113# Good but revoked certificate, certificate required
114client-gnutls HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2
115??? 220
5c8cda3a 116ehlo rhu7.barb
59371ea7
PH
117??? 250-
118??? 250-
119??? 250-
120??? 250-
5b456975 121??? 250-
59371ea7
PH
122??? 250
123starttls
124??? 220
125****
126# Revoked certificate, certificate optional at TLS time, reject at ACL time
127client-gnutls 127.0.0.1 PORT_D aux-fixed/cert1 aux-fixed/cert1
128??? 220
5c8cda3a 129ehlo rhu8.barb
59371ea7
PH
130??? 250-
131??? 250-
132??? 250-
133??? 250-
5b456975 134??? 250-
59371ea7
PH
135??? 250
136starttls
137??? 220
138mail from:<userx@test.ex>
139??? 250
140rcpt to:<userx@test.ex>
141??? 550-
142??? 550
143quit
144??? 221
145****
146killdaemon