511d51970ef160b57890cd49c0e5e86e7bac350a
[platform/upstream/curl.git] / tests / data / test907
1 <testcase>
2 <info>
3 <keywords>
4 SMTP
5 SMTP AUTH PLAIN SASL-IR
6 RFC4616
7 RFC4954
8 </keywords>
9 </info>
10
11 #
12 # Server-side
13 <reply>
14 <servercmd>
15 REPLY EHLO 250 AUTH PLAIN
16 REPLY AUTH 235 Authenticated
17 </servercmd>
18 </reply>
19
20 #
21 # Client-side
22 <client>
23 <server>
24 smtp
25 </server>
26  <name>
27 SMTP plain authentication with initial response
28  </name>
29 <stdin>
30 mail body\r
31 </stdin>
32  <command>
33 smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 907@foo --mail-from 907@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 PLAIN dGVzdAB0ZXN0ADEyMzQ=\r
43 MAIL FROM:<907@from>\r
44 RCPT TO:<907@foo>\r
45 DATA\r
46 QUIT\r
47 </protocol>
48 <upload>
49 mail body\r
50 .\r
51 </upload>
52 </verify>
53 </testcase>