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