Git init
[external/curl.git] / tests / data / test806
1 <testcase>
2 <info>
3 <keywords>
4 SMTP
5 SMTP AUTH LOGIN
6 RFC4954
7 </keywords>
8 </info>
9
10 #
11 # Server-side
12 <reply>
13 <servercmd>
14 REPLY EHLO 220 AUTH LOGIN
15 REPLY AUTH 334 UGFzc3dvcmQ6
16 REPLY MTIzNA== 235 Authenticated
17 </servercmd>
18 </reply>
19
20 #
21 # Client-side
22 <client>
23 <server>
24 smtp
25 </server>
26  <name>
27 SMTP login authentication
28  </name>
29 <stdin>
30 mail body
31 </stdin>
32  <command>
33 smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 806@foo --mail-from 806@from -u test:1234 -T -
34 </command>
35 </client>
36
37 #
38 # Verify data after the test has been "shot"
39 <verify>
40 <protocol>
41 EHLO user\r
42 AUTH LOGIN dGVzdA==\r
43 MTIzNA==\r
44 MAIL FROM:806@from\r
45 RCPT TO:<806@foo>\r
46 DATA\r
47 QUIT\r
48 </protocol>
49 <upload>
50 mail body
51 \r
52 .\r
53 </upload>
54 </verify>
55 </testcase>