Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nextgens committed May 10, 2024
1 parent d90ecae commit 736fad1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/admin/mailu/internal/views/postfix.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ def postfix_recipient_map(recipient):
This is meant for bounces to go back to the original sender.
"""
if recipient.count('@') > 1 or recipient.startswith('"'):
return flask.abort(404)
srs = srslib.SRS(flask.current_app.srs_key)
if srslib.SRS.is_srs_address(recipient):
try:
Expand Down
1 change: 1 addition & 0 deletions towncrier/newsfragments/3252.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ensure that sending emails to invalid addresses with an '@' in localpart is permanently and not temporarily rejected.

0 comments on commit 736fad1

Please sign in to comment.