2013-04-27 08:04:02 -04:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
SMTP
|
2014-03-15 06:13:13 -04:00
|
|
|
SMTP AUTH LOGIN
|
|
|
|
SASL-IR
|
2013-04-27 08:04:02 -04:00
|
|
|
RFC4954
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<servercmd>
|
2013-09-19 15:29:24 -04:00
|
|
|
AUTH LOGIN
|
2013-04-27 08:04:02 -04:00
|
|
|
REPLY AUTH 334 UGFzc3dvcmQ6
|
2013-10-26 08:44:31 -04:00
|
|
|
REPLY c2VjcmV0 235 Authenticated
|
2013-04-27 08:04:02 -04:00
|
|
|
</servercmd>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
smtp
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
SMTP login authentication with initial response
|
|
|
|
</name>
|
|
|
|
<stdin>
|
2013-04-28 11:12:40 -04:00
|
|
|
mail body
|
2013-04-27 08:04:02 -04:00
|
|
|
</stdin>
|
|
|
|
<command>
|
2013-10-26 08:44:31 -04:00
|
|
|
smtp://%HOSTIP:%SMTPPORT/920 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret --sasl-ir -T -
|
2013-04-27 08:04:02 -04:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2013-10-25 14:17:15 -04:00
|
|
|
EHLO 920
|
2013-10-26 08:44:31 -04:00
|
|
|
AUTH LOGIN dXNlcg==
|
|
|
|
c2VjcmV0
|
2013-09-29 11:48:02 -04:00
|
|
|
MAIL FROM:<sender@example.com>
|
|
|
|
RCPT TO:<recipient@example.com>
|
2013-04-27 08:04:02 -04:00
|
|
|
DATA
|
|
|
|
QUIT
|
|
|
|
</protocol>
|
|
|
|
<upload>
|
2013-04-28 11:12:40 -04:00
|
|
|
mail body
|
2013-04-27 08:04:02 -04:00
|
|
|
.
|
|
|
|
</upload>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|