61d56c5e04dedd5313fc0f764092c40a0b723faf
[platform/upstream/curl.git] / tests / data / test908
1 <testcase>
2 <info>
3 <keywords>
4 SMTP
5 SMTP AUTH LOGIN SASL-IR
6 RFC4954
7 </keywords>
8 </info>
9
10 #
11 # Server-side
12 <reply>
13 <servercmd>
14 REPLY EHLO 250 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 with initial response
28  </name>
29 <stdin>
30 mail body\r
31 </stdin>
32  <command>
33 smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 908@foo --mail-from 908@from -u test:1234 --sasl-ir -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:<908@from>\r
45 RCPT TO:<908@foo>\r
46 DATA\r
47 QUIT\r
48 </protocol>
49 <upload>
50 mail body\r
51 .\r
52 </upload>
53 </verify>
54 </testcase>