mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-04 10:24:41 +02:00
INBOUND_TLS_ENFORCE makes no sense.
This commit is contained in:
parent
97e21df845
commit
28c28b1c84
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user