2013-09-20 14:09:39 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
SMTP
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
2020-07-02 22:42:55 +08:00
|
|
|
<servercmd>
|
|
|
|
REPLY MAIL 501 not fine enough
|
|
|
|
</servercmd>
|
2013-09-20 14:09:39 +08:00
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
smtp
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
SMTP invalid --mail-from
|
|
|
|
</name>
|
2021-03-13 00:38:26 +08:00
|
|
|
<file name="log/test%TESTNUMBER.eml">
|
2013-09-20 14:09:39 +08:00
|
|
|
From: different
|
|
|
|
To: another
|
|
|
|
|
|
|
|
body
|
|
|
|
</file>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from invalid -T log/test%TESTNUMBER.eml
|
2013-09-20 14:09:39 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
2013-11-24 20:33:21 +08:00
|
|
|
# 55 - CURLE_SEND_ERROR
|
2013-09-20 14:09:39 +08:00
|
|
|
<errorcode>
|
|
|
|
55
|
|
|
|
</errorcode>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
EHLO %TESTNUMBER
|
2013-09-20 14:09:39 +08:00
|
|
|
MAIL FROM:<invalid>
|
|
|
|
QUIT
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|