tizen 2.3.1 release
[external/curl.git] / tests / data / test905
1 <testcase>
2 <info>
3 <keywords>
4 SMTP
5 SASL
6 SASL AUTH CRAM-MD5
7 RFC2195
8 RFC4954
9 </keywords>
10 </info>
11
12 #
13 # Server-side
14 <reply>
15 <servercmd>
16 AUTH CRAM-MD5
17 REPLY AUTH 334 PDE5NzIuOTg3NjU0MzIxQGN1cmw+
18 REPLY dXNlciA3MDMxNzI1NTk5ZmRiYjVkNDEyNjg5YWEzMjNlM2UwYg== 235 Authenticated
19 </servercmd>
20 </reply>
21
22 #
23 # Client-side
24 <client>
25 <server>
26 smtp
27 </server>
28 <features>
29 crypto
30 </features>
31  <name>
32 SMTP CRAM-MD5 authentication
33  </name>
34 <stdin>
35 mail body\r
36 </stdin>
37  <command>
38 smtp://%HOSTIP:%SMTPPORT/905 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
39 </command>
40 </client>
41
42 #
43 # Verify data after the test has been "shot"
44 <verify>
45 <protocol>
46 EHLO 905\r
47 AUTH CRAM-MD5\r
48 dXNlciA3MDMxNzI1NTk5ZmRiYjVkNDEyNjg5YWEzMjNlM2UwYg==\r
49 MAIL FROM:<sender@example.com>\r
50 RCPT TO:<recipient@example.com>\r
51 DATA\r
52 QUIT\r
53 </protocol>
54 <upload>
55 mail body\r
56 .\r
57 </upload>
58 </verify>
59 </testcase>