From 96774de8d6a8419a1dfaa284e46c87f27cc7422f Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Fri, 13 Oct 2023 21:35:03 +0200 Subject: [PATCH] add workaround for windows mail authentication in smtpserver --- smtpserver/server.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/smtpserver/server.go b/smtpserver/server.go index 8dd55e6..fced9f2 100644 --- a/smtpserver/server.go +++ b/smtpserver/server.go @@ -949,6 +949,12 @@ func (c *conn) cmdAuth(p *parser) { } } else { p.xspace() + if !moxvar.Pedantic { + // Windows Mail 16005.14326.21606.0 sends two spaces between "AUTH PLAIN" and the + // base64 data. + for p.space() { + } + } auth = p.remainder() if auth == "" { // ../rfc/4954:235