1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-18 03:21:36 +02:00

Fix the bug @ghost has reported

This commit is contained in:
Florent Daigniere 2023-06-02 14:53:25 +02:00
parent 50f8a5cb65
commit 15569c62df

View File

@ -125,6 +125,8 @@ def postfix_sender_map(sender):
This is for bounces to come back the reverse path properly.
"""
if sender.count('@') > 1 or sender.startswith('"'):
return flask.abort(404)
srs = srslib.SRS(flask.current_app.srs_key)
domain = flask.current_app.config["DOMAIN"]
try: