1<testcase>
2<info>
3<keywords>
4SMTP
5SMTP AUTH PLAIN
6SASL-IR
7RFC4616
8RFC4954
9</keywords>
10</info>
11
12#
13# Server-side
14<reply>
15<servercmd>
16AUTH PLAIN
17REPLY AUTH 235 Authenticated
18</servercmd>
19</reply>
20
21#
22# Client-side
23<client>
24<server>
25smtp
26</server>
27 <name>
28SMTP plain authentication with initial response
29 </name>
30<stdin>
31mail body
32</stdin>
33 <command>
34smtp://%HOSTIP:%SMTPPORT/919 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret --sasl-ir -T -
35</command>
36</client>
37
38#
39# Verify data after the test has been "shot"
40<verify>
41<protocol>
42EHLO 919
43AUTH PLAIN dXNlcgB1c2VyAHNlY3JldA==
44MAIL FROM:<sender@example.com>
45RCPT TO:<recipient@example.com>
46DATA
47QUIT
48</protocol>
49<upload>
50mail body
51.
52</upload>
53</verify>
54</testcase>
55