From 28c28b1c84fb8699fed89fc9fc1519051f32d0d4 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Fri, 6 Sep 2024 09:40:26 +0200 Subject: [PATCH] INBOUND_TLS_ENFORCE makes no sense. --- core/admin/mailu/internal/nginx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/admin/mailu/internal/nginx.py b/core/admin/mailu/internal/nginx.py index cf24e12f..b9cbe879 100644 --- a/core/admin/mailu/internal/nginx.py +++ b/core/admin/mailu/internal/nginx.py @@ -72,7 +72,7 @@ def handle_authentication(headers): # Incoming mail, no authentication if method in ['', 'none'] and protocol in ['smtp', 'lmtp']: server, port = get_server(protocol, False) - if app.config["INBOUND_TLS_ENFORCE"]: + if app.config["INBOUND_TLS_ENFORCE"] and protocol == 'smtp': if "Auth-SSL" in headers and headers["Auth-SSL"] == "on": return { "Auth-Status": "OK",