1<testcase> 2<info> 3<keywords> 4SMTP 5SASL 6SASL AUTH CRAM-MD5 7SASL AUTH PLAIN 8SASL DOWNGRADE 9RFC2195 10RFC4954 11</keywords> 12</info> 13 14# 15# Server-side 16<reply> 17<servercmd> 18AUTH CRAM-MD5 PLAIN 19REPLY "AUTH CRAM-MD5" 334 Rubbish 20REPLY * 501 AUTH exchange cancelled by client 21REPLY "AUTH PLAIN" 334 PLAIN supported 22REPLY AHVzZXIAc2VjcmV0 235 Authenticated 23</servercmd> 24</reply> 25 26# 27# Client-side 28<client> 29<server> 30smtp 31</server> 32<features> 33crypto 34</features> 35<name> 36SMTP CRAM-MD5 authentication with SASL downgrade 37</name> 38<stdin> 39mail body 40</stdin> 41<command> 42smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --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> 50EHLO %TESTNUMBER 51AUTH CRAM-MD5 52* 53AUTH PLAIN 54AHVzZXIAc2VjcmV0 55MAIL FROM:<sender@example.com> 56RCPT TO:<recipient@example.com> 57DATA 58QUIT 59</protocol> 60<upload> 61mail body 62. 63</upload> 64</verify> 65</testcase> 66