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