test938 1.1 KB

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