test922 844 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <testcase>
  2. <info>
  3. <keywords>
  4. SMTP
  5. SASL
  6. SASL AUTH OAUTH2
  7. SASL-IR
  8. RFC4954
  9. RFC6749
  10. </keywords>
  11. </info>
  12. #
  13. # Server-side
  14. <reply>
  15. <servercmd>
  16. AUTH XOAUTH2
  17. REPLY AUTH 235 Authenticated
  18. </servercmd>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <server>
  24. smtp
  25. </server>
  26. <name>
  27. SMTP OAuth 2.0 (XOAUTH2) authentication with initial response
  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 --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir -T -
  34. </command>
  35. </client>
  36. #
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <protocol>
  40. EHLO %TESTNUMBER
  41. AUTH XOAUTH2 dXNlcj11c2VyAWF1dGg9QmVhcmVyIG1GXzkuQjVmLTQuMUpxTQEB
  42. MAIL FROM:<sender@example.com>
  43. RCPT TO:<recipient@example.com>
  44. DATA
  45. QUIT
  46. </protocol>
  47. <upload>
  48. mail body
  49. .
  50. </upload>
  51. </verify>
  52. </testcase>