mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 19:45:04 -05:00
49341628b5
...to the client address as this frees the RCPT strings to contain just an email address and by passing the test number into curl as the client address remains consistent with POP3 and IMAP tests as they are specified in the URL.
55 lines
749 B
Plaintext
55 lines
749 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
SMTP
|
|
SMTP AUTH LOGIN SASL-IR
|
|
RFC4954
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
<servercmd>
|
|
AUTH LOGIN
|
|
REPLY AUTH 334 UGFzc3dvcmQ6
|
|
REPLY MTIzNA== 235 Authenticated
|
|
</servercmd>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
smtp
|
|
</server>
|
|
<name>
|
|
SMTP login authentication with initial response
|
|
</name>
|
|
<stdin>
|
|
mail body
|
|
</stdin>
|
|
<command>
|
|
smtp://%HOSTIP:%SMTPPORT/908 --mail-rcpt 908@example.com --mail-from 908@example.com -u test:1234 --sasl-ir -T -
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol>
|
|
EHLO 908
|
|
AUTH LOGIN dGVzdA==
|
|
MTIzNA==
|
|
MAIL FROM:<908@example.com>
|
|
RCPT TO:<908@example.com>
|
|
DATA
|
|
QUIT
|
|
</protocol>
|
|
<upload>
|
|
mail body
|
|
.
|
|
</upload>
|
|
</verify>
|
|
</testcase>
|