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