lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | SMTP |
| 5 | RFC821 |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | # |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <servercmd> |
| 13 | REPLY EHLO 500 Command unrecognized |
| 14 | </servercmd> |
| 15 | </reply> |
| 16 | |
| 17 | # |
| 18 | # Client-side |
| 19 | <client> |
| 20 | <server> |
| 21 | smtp |
| 22 | </server> |
| 23 | <name> |
| 24 | RFC821-only SMTP with username and password |
| 25 | </name> |
| 26 | <stdin> |
| 27 | mail body
|
| 28 | </stdin> |
| 29 | <command> |
| 30 | smtp://%HOSTIP:%SMTPPORT/939 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T - |
| 31 | </command> |
| 32 | </client> |
| 33 | |
| 34 | # |
| 35 | # Verify data after the test has been "shot" |
| 36 | <verify> |
| 37 | <protocol> |
| 38 | EHLO 939
|
| 39 | HELO 939
|
| 40 | MAIL FROM:<sender@example.com>
|
| 41 | RCPT TO:<recipient@example.com>
|
| 42 | DATA
|
| 43 | QUIT
|
| 44 | </protocol> |
| 45 | <upload> |
| 46 | mail body
|
| 47 | .
|
| 48 | </upload> |
| 49 | </verify> |
| 50 | </testcase> |