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