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