You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-08-10 22:31:47 +02:00
INBOUND_TLS_ENFORCE makes no sense.
(cherry picked from commit 28c28b1c84
)
This commit is contained in:
committed by
Mergify
parent
d3b4894196
commit
f5bc226574
@@ -72,7 +72,7 @@ def handle_authentication(headers):
|
|||||||
# Incoming mail, no authentication
|
# Incoming mail, no authentication
|
||||||
if method in ['', 'none'] and protocol in ['smtp', 'lmtp']:
|
if method in ['', 'none'] and protocol in ['smtp', 'lmtp']:
|
||||||
server, port = get_server(protocol, False)
|
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":
|
if "Auth-SSL" in headers and headers["Auth-SSL"] == "on":
|
||||||
return {
|
return {
|
||||||
"Auth-Status": "OK",
|
"Auth-Status": "OK",
|
||||||
|
Reference in New Issue
Block a user