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