test905 879 B

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