From 34f5f83978727c3ab414e46d8b7a75f09c7c4cc0 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Mon, 13 May 2024 12:43:21 +0200 Subject: [PATCH] Bugfix SCRAM auth response #1575 --- .../0.0.0/app/libraries/MailSo/Smtp/SmtpClient.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Smtp/SmtpClient.php b/snappymail/v/0.0.0/app/libraries/MailSo/Smtp/SmtpClient.php index d6ab092af..752d9efe5 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Smtp/SmtpClient.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Smtp/SmtpClient.php @@ -17,6 +17,18 @@ namespace MailSo\Smtp; use MailSo\Net\Enumerations\ConnectionSecurityType; use SnappyMail\IDN; +/** + response codes: + 220 ready + 221 Closing + 235 Authentication succeeded + 250 Requested mail action okay, completed + 251 User not local; will forward + 252 Cannot verify the user, but it will try to deliver the message anyway + 334 Server challenge (the text part contains the Base64-encoded challenge) + 354 Start mail input +*/ + /** * @category MailSo * @package Smtp @@ -183,7 +195,7 @@ class SmtpClient extends \MailSo\Net\NetClient // RFC 5802 $sRequest = $SASL->authenticate($sLogin, $sPassword, $sResult); $this->logMask($sRequest); - $sResult = $this->sendRequestWithCheck($sRequest, 234); + $sResult = $this->sendRequestWithCheck($sRequest, 334); $sRequest = $SASL->challenge($sResult); } else switch ($type) { // RFC 4616