mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Bugfix SCRAM auth response #1575
This commit is contained in:
parent
6cafd65690
commit
34f5f83978
1 changed files with 13 additions and 1 deletions
|
|
@ -17,6 +17,18 @@ namespace MailSo\Smtp;
|
||||||
use MailSo\Net\Enumerations\ConnectionSecurityType;
|
use MailSo\Net\Enumerations\ConnectionSecurityType;
|
||||||
use SnappyMail\IDN;
|
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
|
* @category MailSo
|
||||||
* @package Smtp
|
* @package Smtp
|
||||||
|
|
@ -183,7 +195,7 @@ class SmtpClient extends \MailSo\Net\NetClient
|
||||||
// RFC 5802
|
// RFC 5802
|
||||||
$sRequest = $SASL->authenticate($sLogin, $sPassword, $sResult);
|
$sRequest = $SASL->authenticate($sLogin, $sPassword, $sResult);
|
||||||
$this->logMask($sRequest);
|
$this->logMask($sRequest);
|
||||||
$sResult = $this->sendRequestWithCheck($sRequest, 234);
|
$sResult = $this->sendRequestWithCheck($sRequest, 334);
|
||||||
$sRequest = $SASL->challenge($sResult);
|
$sRequest = $SASL->challenge($sResult);
|
||||||
} else switch ($type) {
|
} else switch ($type) {
|
||||||
// RFC 4616
|
// RFC 4616
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue