Skip to content
Snippets Groups Projects
Commit c903c923 authored by ale's avatar ale
Browse files

Reject null senders delivering directly to mailing list

Bounces should use the -bounce address.
parent 4c664432
Branches
No related tags found
No related merge requests found
Pipeline #72466 passed
......@@ -468,6 +468,10 @@ class LMTPRunner(Runner, smtpd.SMTPServer):
))
queue = Switchboard(mm_cfg.INQUEUE_DIR)
elif subaddress is None:
# Reject null senders when delivering to the main list queue.
if mailfrom == '<>':
status.append('550 '+EERR_572)
continue
msgdata['tolist'] = True
queue = Switchboard(mm_cfg.INQUEUE_DIR)
elif subaddress == 'request':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment