<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
POP3
SASL
SASL AUTH EXTERNAL
SASL-IR
RFC1734
RFC4422
RFC5034
</keywords>
</info>

# Server-side
<reply>
<servercmd>
AUTH EXTERNAL
REPLY AUTH +OK Login successful
</servercmd>
<data crlf="yes">
From: me@somewhere
To: fake@nowhere

body

--
  yours sincerely
</data>
</reply>

# Client-side
<client>
<server>
pop3
</server>
<name>
POP3 external authentication with initial response
</name>
<command>
'pop3://user;AUTH=EXTERNAL@%HOSTIP:%POP3PORT/%TESTNUMBER' --sasl-ir
</command>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol crlf="yes">
CAPA
AUTH EXTERNAL %b64[user]b64%
RETR %TESTNUMBER
QUIT
</protocol>
</verify>
</testcase>
