Imported Upstream version 7.40.0
[platform/upstream/curl.git] / tests / data / test935
1 <testcase>
2 <info>
3 <keywords>
4 SMTP
5 SASL
6 SASL AUTH CRAM-MD5
7 SASL AUTH PLAIN
8 SASL DOWNGRADE
9 RFC2195
10 RFC4954
11 </keywords>
12 </info>
13
14 #
15 # Server-side
16 <reply>
17 <servercmd>
18 AUTH CRAM-MD5 PLAIN
19 REPLY "AUTH CRAM-MD5" 334 Rubbish
20 REPLY * 501 AUTH exchange cancelled by client
21 REPLY "AUTH PLAIN" 334 PLAIN supported
22 REPLY dXNlcgB1c2VyAHNlY3JldA== 235 Authenticated
23 </servercmd>
24 </reply>
25
26 #
27 # Client-side
28 <client>
29 <server>
30 smtp
31 </server>
32 <features>
33 crypto
34 </features>
35  <name>
36 SMTP CRAM-MD5 authentication with SASL downgrade
37  </name>
38 <stdin>
39 mail body\r
40 </stdin>
41  <command>
42 smtp://%HOSTIP:%SMTPPORT/935 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
43 </command>
44 </client>
45
46 #
47 # Verify data after the test has been "shot"
48 <verify>
49 <protocol>
50 EHLO 935\r
51 AUTH CRAM-MD5\r
52 *\r
53 AUTH PLAIN\r
54 dXNlcgB1c2VyAHNlY3JldA==\r
55 MAIL FROM:<sender@example.com>\r
56 RCPT TO:<recipient@example.com>\r
57 DATA\r
58 QUIT\r
59 </protocol>
60 <upload>
61 mail body\r
62 .\r
63 </upload>
64 </verify>
65 </testcase>