113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciSMTP
513498266Sopenharmony_ciSASL
613498266Sopenharmony_ciSASL AUTH CRAM-MD5
713498266Sopenharmony_ciSASL AUTH PLAIN
813498266Sopenharmony_ciSASL DOWNGRADE
913498266Sopenharmony_ciRFC2195
1013498266Sopenharmony_ciRFC4954
1113498266Sopenharmony_ci</keywords>
1213498266Sopenharmony_ci</info>
1313498266Sopenharmony_ci
1413498266Sopenharmony_ci#
1513498266Sopenharmony_ci# Server-side
1613498266Sopenharmony_ci<reply>
1713498266Sopenharmony_ci<servercmd>
1813498266Sopenharmony_ciAUTH CRAM-MD5 PLAIN
1913498266Sopenharmony_ciREPLY "AUTH CRAM-MD5" 334 Rubbish
2013498266Sopenharmony_ciREPLY * 501 AUTH exchange cancelled by client
2113498266Sopenharmony_ciREPLY "AUTH PLAIN" 334 PLAIN supported
2213498266Sopenharmony_ciREPLY AHVzZXIAc2VjcmV0 235 Authenticated
2313498266Sopenharmony_ci</servercmd>
2413498266Sopenharmony_ci</reply>
2513498266Sopenharmony_ci
2613498266Sopenharmony_ci#
2713498266Sopenharmony_ci# Client-side
2813498266Sopenharmony_ci<client>
2913498266Sopenharmony_ci<server>
3013498266Sopenharmony_cismtp
3113498266Sopenharmony_ci</server>
3213498266Sopenharmony_ci<features>
3313498266Sopenharmony_cicrypto
3413498266Sopenharmony_ci</features>
3513498266Sopenharmony_ci<name>
3613498266Sopenharmony_ciSMTP CRAM-MD5 authentication with SASL downgrade
3713498266Sopenharmony_ci</name>
3813498266Sopenharmony_ci<stdin>
3913498266Sopenharmony_cimail body
4013498266Sopenharmony_ci</stdin>
4113498266Sopenharmony_ci<command>
4213498266Sopenharmony_cismtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
4313498266Sopenharmony_ci</command>
4413498266Sopenharmony_ci</client>
4513498266Sopenharmony_ci
4613498266Sopenharmony_ci#
4713498266Sopenharmony_ci# Verify data after the test has been "shot"
4813498266Sopenharmony_ci<verify>
4913498266Sopenharmony_ci<protocol>
5013498266Sopenharmony_ciEHLO %TESTNUMBER
5113498266Sopenharmony_ciAUTH CRAM-MD5
5213498266Sopenharmony_ci*
5313498266Sopenharmony_ciAUTH PLAIN
5413498266Sopenharmony_ciAHVzZXIAc2VjcmV0
5513498266Sopenharmony_ciMAIL FROM:<sender@example.com>
5613498266Sopenharmony_ciRCPT TO:<recipient@example.com>
5713498266Sopenharmony_ciDATA
5813498266Sopenharmony_ciQUIT
5913498266Sopenharmony_ci</protocol>
6013498266Sopenharmony_ci<upload>
6113498266Sopenharmony_cimail body
6213498266Sopenharmony_ci.
6313498266Sopenharmony_ci</upload>
6413498266Sopenharmony_ci</verify>
6513498266Sopenharmony_ci</testcase>
66