all repos — listfix @ a2801f12ee70567b89bfb2c92d40dfd6af43c186

Postfix Mailing List Software; Maintained on behalf the of Agency Economy Incorporated NFP.

removed the ability for non-members to message on the list
Robert Ismo me@robertismo.com
Mon, 13 Apr 2026 23:05:59 -0500
commit

a2801f12ee70567b89bfb2c92d40dfd6af43c186

parent

dbd5463da5fb52ab93ec9afb12fa45eb82572be4

1 files changed, 6 insertions(+), 7 deletions(-)

jump to
M listfix.pylistfix.py

@@ -33,19 +33,18 @@ sender_name = email_in.get_sender_name()

sender_email = sender_email.lower() + if (sender_email not in list_recipients): + log.info(f"Email dropped: sender {sender_email} not a member of list {list_email}.") + exit() + log.info(f"Email from: {sender_email}") log.info(f"Email list: {list_email}") email_out = Email(email_in.get_content()) email_out.strip_headers(exclude = ["To", "Cc", "Subject", "Content-[^:]+", "MIME-Version"]) - if (sender_email not in list_recipients): - email_out.add_header_prepend(f"Reply-To: {list_email}, {sender_email}") - else: - email_out.add_header_prepend(f"Reply-To: {list_email}") + email_out.add_header_prepend(f"Reply-To: {list_email}") email_out.add_header_prepend(f"From: \"{sender_name} via {list_name}\" <{list_email}>") - - if sender_email in list_recipients: - list_recipients.remove(sender_email) + list_recipients.remove(sender_email) for r in list_recipients: log.info(f"Recipient: {r}")