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 EXTERNAL |
| 7 | RFC4422 |
| 8 | RFC4954 |
| 9 | </keywords> |
| 10 | </info> |
| 11 | |
| 12 | # |
| 13 | # Server-side |
| 14 | <reply> |
| 15 | <servercmd> |
| 16 | AUTH EXTERNAL |
| 17 | REPLY AUTH 334 EXTERNAL supported |
| 18 | REPLY dXNlcg== 235 Authenticated |
| 19 | </servercmd> |
| 20 | </reply> |
| 21 | |
| 22 | # |
| 23 | # Client-side |
| 24 | <client> |
| 25 | <server> |
| 26 | smtp |
| 27 | </server> |
| 28 | <name> |
| 29 | SMTP external authentication |
| 30 | </name> |
| 31 | <stdin> |
| 32 | mail body
|
| 33 | </stdin> |
| 34 | <command> |
| 35 | 'smtp://user;AUTH=EXTERNAL@%HOSTIP:%SMTPPORT/%TESTNUMBER' --mail-rcpt recipient@example.com --mail-from sender@example.com -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 EXTERNAL
|
| 45 | dXNlcg==
|
| 46 | MAIL FROM:<sender@example.com>
|
| 47 | RCPT TO:<recipient@example.com>
|
| 48 | DATA
|
| 49 | QUIT
|
| 50 | </protocol> |
| 51 | <upload> |
| 52 | mail body
|
| 53 | .
|
| 54 | </upload> |
| 55 | </verify> |
| 56 | </testcase> |