mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-12 10:45:38 +02:00
Merge #2275
2275: Fix2274: Inbound emails are rejected r=mergify[bot] a=nextgens ## What type of PR? bug-fix ## What does this PR do? Fix email reception ### Related issue(s) - closes #2274 ## Prerequisites No documentation as this affects only people running master since yesterday Co-authored-by: Florent Daigniere <nextgens@freenetproject.org> Co-authored-by: Florent Daigniere <nextgens@users.noreply.github.com>
This commit is contained in:
commit
43598119b8
@ -12,7 +12,7 @@ def nginx_authentication():
|
||||
"""
|
||||
client_ip = flask.request.headers["Client-Ip"]
|
||||
headers = flask.request.headers
|
||||
if headers["Auth-Port"] == '25':
|
||||
if headers["Auth-Port"] == '25' and headers['Auth-Method'] != 'none':
|
||||
response = flask.Response()
|
||||
response.headers['Auth-Status'] = 'AUTH not supported'
|
||||
response.headers['Auth-Error-Code'] = '502 5.5.1'
|
||||
|
Loading…
Reference in New Issue
Block a user