From cb0f9f906600f4f6e0ac09dab088181b3aba54c2 Mon Sep 17 00:00:00 2001 From: Fiete Minge Date: Wed, 19 Mar 2025 15:10:50 +0100 Subject: [PATCH] change mechanism to upper --- aiosmtpd/smtp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiosmtpd/smtp.py b/aiosmtpd/smtp.py index 3b85fcfb..3e73d0e8 100644 --- a/aiosmtpd/smtp.py +++ b/aiosmtpd/smtp.py @@ -963,7 +963,7 @@ async def smtp_AUTH(self, arg: str) -> None: await self.push('501 Too many values') return - mechanism = args[0] + mechanism = args[0].upper() if mechanism not in self._auth_methods: await self.push('504 5.5.4 Unrecognized authentication type') return