1<testcase> 2<info> 3<keywords> 4SMTP 5SASL 6SASL AUTH DIGEST-MD5 7SASL AUTH PLAIN 8SASL DOWNGRADE 9RFC2831 10RFC4954 11</keywords> 12</info> 13 14# 15# Server-side 16<reply> 17<servercmd> 18AUTH DIGEST-MD5 PLAIN 19REPLY "AUTH DIGEST-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> 33!SSPI 34Debug 35crypto 36</features> 37<name> 38SMTP DIGEST-MD5 authentication with SASL downgrade 39</name> 40<stdin> 41mail body 42</stdin> 43<command> 44smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T - 45</command> 46</client> 47 48# 49# Verify data after the test has been "shot" 50<verify> 51<protocol> 52EHLO %TESTNUMBER 53AUTH DIGEST-MD5 54* 55AUTH PLAIN 56AHVzZXIAc2VjcmV0 57MAIL FROM:<sender@example.com> 58RCPT TO:<recipient@example.com> 59DATA 60QUIT 61</protocol> 62<upload> 63mail body 64. 65</upload> 66</verify> 67</testcase> 68