xref: /curl/tests/data/test904 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4SMTP
5SASL
6SASL AUTH LOGIN
7RFC4954
8</keywords>
9</info>
10
11#
12# Server-side
13<reply>
14<servercmd>
15AUTH LOGIN
16REPLY AUTH 334 VXNlcm5hbWU6
17REPLY dXNlcg== 334 UGFzc3dvcmQ6
18REPLY c2VjcmV0 235 Authenticated
19</servercmd>
20</reply>
21
22#
23# Client-side
24<client>
25<server>
26smtp
27</server>
28<name>
29SMTP login authentication
30</name>
31<stdin>
32mail body
33</stdin>
34<command>
35smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
36</command>
37</client>
38
39#
40# Verify data after the test has been "shot"
41<verify>
42<protocol>
43EHLO %TESTNUMBER
44AUTH LOGIN
45dXNlcg==
46c2VjcmV0
47MAIL FROM:<sender@example.com>
48RCPT TO:<recipient@example.com>
49DATA
50QUIT
51</protocol>
52<upload>
53mail body
54.
55</upload>
56</verify>
57</testcase>
58