AUTH PLAIN bug with qpsmtpd and alpine

Trying to get SMTP auth working with alpine, I came across a bug.
Alpine sends AUTH PLAIN and waits for a 334 response, then sends the
auth string. According to the RFC, the server should reply with 334
and a nothing else, but in Auth.pm qpsmtpd responds with "334 Please
continue."   the "Please continue" is interpreted as a non-zero
length initial challenge which causes alpine (and maybe other
clients?) to abort the session.

Signed-off-by: Charlie Brady <charlieb@budge.apana.org.au>
Signed-off-by: Robert <rspier@pobox.com>
This commit is contained in:
Rick 2009-12-24 20:35:37 -08:00 committed by Robert
parent 3889821d16
commit 7de104bf66

View File

@ -20,7 +20,7 @@ sub SASL {
if ( $mechanism eq "plain" ) { if ( $mechanism eq "plain" ) {
if (!$prekey) { if (!$prekey) {
$session->respond( 334, "Please continue" ); $session->respond( 334, " " );
$prekey= <STDIN>; $prekey= <STDIN>;
} }
( $loginas, $user, $passClear ) = split /\x0/, ( $loginas, $user, $passClear ) = split /\x0/,