test903 765 B

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