Add new errors mail_4xx, data_4xx, lost_connection, tls_required.
[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
8ehlo rhu.barb
9??? 250-
10??? 250-
11??? 250-
12??? 250-
13??? 250
14starttls
15??? 220
16****
17# No certificate, certificate optional at TLS time, required by ACL
18client-gnutls 127.0.0.1 PORT_D
19??? 220
20ehlo rhu.barb
21??? 250-
22??? 250-
23??? 250-
24??? 250-
25??? 250
26starttls
27??? 220
28helo rhu.barb
29??? 250
30mail from:<userx@test.ex>
31??? 250
32rcpt to:<userx@test.ex>
33??? 550
34quit
35??? 221
36****
37# Good certificate, certificate required
38client-gnutls HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2
39??? 220
40ehlo rhu.barb
41??? 250-
42??? 250-
43??? 250-
44??? 250-
45??? 250
46starttls
47??? 220
48mail from:<userx@test.ex>
49??? 250
50rcpt to:<userx@test.ex>
51??? 250
52quit
53??? 221
54****
55# Good certificate, certificate optional at TLS time, checked by ACL
56client-gnutls 127.0.0.1 PORT_D aux-fixed/cert2 aux-fixed/cert2
57??? 220
58ehlo rhu.barb
59??? 250-
60??? 250-
61??? 250-
62??? 250-
63??? 250
64starttls
65??? 220
66mail from:<userx@test.ex>
67??? 250
68rcpt to:<userx@test.ex>
69??? 250
70quit
71??? 221
72****
73# Bad certificate, certificate required
74client-gnutls HOSTIPV4 PORT_D aux-fixed/cert1 aux-fixed/cert1
75??? 220
76ehlo rhu.barb
77??? 250-
78??? 250-
79??? 250-
80??? 250-
81??? 250
82starttls
83??? 220
84****
85# Bad certificate, certificate optional at TLS time, reject at ACL time
86client-gnutls 127.0.0.1 PORT_D aux-fixed/cert1 aux-fixed/cert1
87??? 220
88ehlo rhu.barb
89??? 250-
90??? 250-
91??? 250-
92??? 250-
93??? 250
94starttls
95??? 220
96mail from:<userx@test.ex>
97??? 250
98rcpt to:<userx@test.ex>
99??? 550-
100??? 550
101quit
102??? 221
103****
104killdaemon
105exim -DCRL=DIR/aux-fixed/crl.pem -DSERVER=server -bd -oX PORT_D
106****
107# Good but revoked certificate, certificate required
108client-gnutls HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2
109??? 220
110ehlo rhu.barb
111??? 250-
112??? 250-
113??? 250-
114??? 250-
115??? 250
116starttls
117??? 220
118****
119# Revoked certificate, certificate optional at TLS time, reject at ACL time
120client-gnutls 127.0.0.1 PORT_D aux-fixed/cert1 aux-fixed/cert1
121??? 220
122ehlo rhu.barb
123??? 250-
124??? 250-
125??? 250-
126??? 250-
127??? 250
128starttls
129??? 220
130mail from:<userx@test.ex>
131??? 250
132rcpt to:<userx@test.ex>
133??? 550-
134??? 550
135quit
136??? 221
137****
138killdaemon