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