test904 780 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. SMTP
  5. SASL
  6. SASL AUTH LOGIN
  7. RFC4954
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <servercmd>
  14. AUTH LOGIN
  15. REPLY AUTH 334 VXNlcm5hbWU6
  16. REPLY dXNlcg== 334 UGFzc3dvcmQ6
  17. REPLY c2VjcmV0 235 Authenticated
  18. </servercmd>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <server>
  24. smtp
  25. </server>
  26. <name>
  27. SMTP login 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 LOGIN
  42. dXNlcg==
  43. c2VjcmV0
  44. MAIL FROM:<sender@example.com>
  45. RCPT TO:<recipient@example.com>
  46. DATA
  47. QUIT
  48. </protocol>
  49. <upload>
  50. mail body
  51. .
  52. </upload>
  53. </verify>
  54. </testcase>