| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 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 | </features> | 
 | 37 |  <name> | 
 | 38 | SMTP DIGEST-MD5 authentication with SASL downgrade | 
 | 39 |  </name> | 
 | 40 | <stdin> | 
 | 41 | mail body
 | 
 | 42 | </stdin> | 
 | 43 |  <command> | 
 | 44 | smtp://%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> | 
 | 52 | EHLO %TESTNUMBER
 | 
 | 53 | AUTH DIGEST-MD5
 | 
 | 54 | *
 | 
 | 55 | AUTH PLAIN
 | 
 | 56 | AHVzZXIAc2VjcmV0
 | 
 | 57 | MAIL FROM:<sender@example.com>
 | 
 | 58 | RCPT TO:<recipient@example.com>
 | 
 | 59 | DATA
 | 
 | 60 | QUIT
 | 
 | 61 | </protocol> | 
 | 62 | <upload> | 
 | 63 | mail body
 | 
 | 64 | .
 | 
 | 65 | </upload> | 
 | 66 | </verify> | 
 | 67 | </testcase> |