mirror of
https://github.com/Mailu/Mailu.git
synced 2025-06-02 23:17:26 +02:00
doh
This commit is contained in:
parent
a9340e61f5
commit
cab0ce2017
@ -77,8 +77,7 @@ def handle_authentication(headers):
|
|||||||
# Authenticated user
|
# Authenticated user
|
||||||
elif method == "plain":
|
elif method == "plain":
|
||||||
is_valid_user = False
|
is_valid_user = False
|
||||||
service_port = int(urllib.parse.unquote(headers["Auth-Port"]))
|
if 'Auth-Port' in headers and int(urllib.parse.unquote(headers["Auth-Port"])) == 25:
|
||||||
if 'Auth-Port' in headers and service_port == 25:
|
|
||||||
return {
|
return {
|
||||||
"Auth-Status": "AUTH not supported",
|
"Auth-Status": "AUTH not supported",
|
||||||
"Auth-Error-Code": "502 5.5.1",
|
"Auth-Error-Code": "502 5.5.1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user