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