Git init
[external/curl.git] / tests / data / test805
1 <testcase>
2 <info>
3 <keywords>
4 SMTP
5 SMTP AUTH PLAIN
6 RFC4616
7 RFC4954
8 </keywords>
9 </info>
10
11 #
12 # Server-side
13 <reply>
14 <servercmd>
15 REPLY EHLO 220 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
28  </name>
29 <stdin>
30 mail body
31 </stdin>
32  <command>
33 smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 805@foo --mail-from 805@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 PLAIN dGVzdAB0ZXN0ADEyMzQ=\r
43 MAIL FROM:805@from\r
44 RCPT TO:<805@foo>\r
45 DATA\r
46 QUIT\r
47 </protocol>
48 <upload>
49 mail body
50 \r
51 .\r
52 </upload>
53 </verify>
54 </testcase>