From be25ccbf6b398983d67a84acd7327ead897eddba Mon Sep 17 00:00:00 2001 From: Boyi C Date: Wed, 20 Nov 2024 15:18:55 +0800 Subject: [PATCH] Update smtp.py set AUTH challenge from "User Name" to "Username" For max compatibity, response from AUTH LOGIN shouhd be `Username` instead of `User Name`. --- aiosmtpd/smtp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiosmtpd/smtp.py b/aiosmtpd/smtp.py index 3b85fcfb..adf5df44 100644 --- a/aiosmtpd/smtp.py +++ b/aiosmtpd/smtp.py @@ -308,7 +308,7 @@ class SMTP(asyncio.StreamReaderProtocol): If 0 or Falsey, local part length is unlimited. """ - AuthLoginUsernameChallenge = "User Name\x00" + AuthLoginUsernameChallenge = "Username\x00" AuthLoginPasswordChallenge = "Password\x00" def __init__(