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