From df68ebadf8c42f66f551e9442c5427de118ab742 Mon Sep 17 00:00:00 2001 From: Ward Pieters Date: Sun, 5 May 2024 11:23:50 +0200 Subject: [PATCH] fix(smtp): compatibility issues with Microsoft Outlook (#400) --- crates/smtp/src/inbound/auth.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/smtp/src/inbound/auth.rs b/crates/smtp/src/inbound/auth.rs index a5ef6b22..62360d2c 100644 --- a/crates/smtp/src/inbound/auth.rs +++ b/crates/smtp/src/inbound/auth.rs @@ -78,7 +78,7 @@ impl Session { } (AUTH_LOGIN, Credentials::Plain { username, secret }) => { if username.is_empty() && secret.is_empty() { - self.write(b"334 VXNlciBOYW1lAA==\r\n").await?; + self.write(b"334 VXNlcm5hbWU6\r\n").await?; return Ok(true); } } @@ -115,7 +115,7 @@ impl Session { (AUTH_LOGIN, Credentials::Plain { username, secret }) => { return if username.is_empty() { *username = response.into_string(); - self.write(b"334 UGFzc3dvcmQA\r\n").await?; + self.write(b"334 UGFzc3dvcmQ6\r\n").await?; Ok(true) } else { *secret = response.into_string();