xref: /curl/tests/data/test980 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4SMTP
5STARTTLS
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<servercmd>
13CAPA STARTTLS
14AUTH PLAIN
15REPLY STARTTLS 454 currently unavailable\r\n235 Authenticated\r\n250 2.1.0 Sender ok\r\n250 2.1.5 Recipient ok\r\n354 Enter mail\r\n250 2.0.0 Accepted
16REPLY AUTH 535 5.7.8 Authentication credentials invalid
17</servercmd>
18</reply>
19
20#
21# Client-side
22<client>
23<features>
24SSL
25</features>
26<server>
27smtp
28</server>
29<name>
30SMTP STARTTLS pipelined server response
31</name>
32<stdin>
33mail body
34</stdin>
35<command>
36smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret --ssl --sasl-ir -T -
37</command>
38</client>
39
40#
41# Verify data after the test has been "shot"
42<verify>
43# 8 is CURLE_WEIRD_SERVER_REPLY
44<errorcode>
458
46</errorcode>
47<protocol>
48EHLO %TESTNUMBER
49STARTTLS
50</protocol>
51</verify>
52</testcase>
53