From cab0ce2017c10828944a71100210e70a959a54fe Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Thu, 23 Sep 2021 19:01:09 +0200 Subject: [PATCH] doh --- core/admin/mailu/internal/nginx.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/admin/mailu/internal/nginx.py b/core/admin/mailu/internal/nginx.py index 78f83e99..ff7070ab 100644 --- a/core/admin/mailu/internal/nginx.py +++ b/core/admin/mailu/internal/nginx.py @@ -77,8 +77,7 @@ def handle_authentication(headers): # Authenticated user elif method == "plain": is_valid_user = False - service_port = int(urllib.parse.unquote(headers["Auth-Port"])) - if 'Auth-Port' in headers and service_port == 25: + if 'Auth-Port' in headers and int(urllib.parse.unquote(headers["Auth-Port"])) == 25: return { "Auth-Status": "AUTH not supported", "Auth-Error-Code": "502 5.5.1",