1<testcase>
2<info>
3<keywords>
4POP3
5POP3 AUTH DIGEST-MD5
6POP3 AUTH PLAIN
7SASL DOWNGRADE
8RFC1734
9RFC2831
10RFC5034
11</keywords>
12</info>
13
14#
15# Server-side
16<reply>
17<servercmd>
18AUTH DIGEST-MD5 PLAIN
19REPLY "AUTH DIGEST-MD5" + Rubbish
20REPLY * -ERR AUTH exchange cancelled by client
21REPLY "AUTH PLAIN" +
22REPLY dXNlcgB1c2VyAHNlY3JldA== +OK Login successful
23</servercmd>
24<data>
25From: me@somewhere
26To: fake@nowhere
27
28body
29
30--
31  yours sincerely
32</data>
33</reply>
34
35#
36# Client-side
37<client>
38<server>
39pop3
40</server>
41<features>
42debug
43crypto
44</features>
45 <name>
46POP3 DIGEST-MD5 authentication with SASL downgrade
47 </name>
48 <command>
49pop3://%HOSTIP:%POP3PORT/881 -u user:secret
50</command>
51</client>
52
53#
54# Verify data after the test has been "shot"
55<verify>
56<protocol>
57CAPA
58AUTH DIGEST-MD5
59*
60AUTH PLAIN
61dXNlcgB1c2VyAHNlY3JldA==
62RETR 881
63QUIT
64</protocol>
65</verify>
66</testcase>
67