test935 967 B

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