1<testcase> 2<info> 3<keywords> 4SMTP 5SMTP AUTH DIGEST-MD5 6SMTP AUTH PLAIN 7SASL DOWNGRADE 8RFC2831 9RFC4954 10</keywords> 11</info> 12 13# 14# Server-side 15<reply> 16<servercmd> 17AUTH DIGEST-MD5 PLAIN 18REPLY "AUTH DIGEST-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> 32debug 33crypto 34</features> 35 <name> 36SMTP DIGEST-MD5 authentication with SASL downgrade 37 </name> 38<stdin> 39mail body 40</stdin> 41 <command> 42smtp://%HOSTIP:%SMTPPORT/937 --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 937 51AUTH DIGEST-MD5 52* 53AUTH PLAIN 54dXNlcgB1c2VyAHNlY3JldA== 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