On 2026-07-10 12:58, Mark Sapiro wrote:
On 7/10/26 09:01, Thomas Ward via Mailman-users wrote:
Upon deeper trackdown of this, our owner user mailman@example.com is seeing messages sent to it from @lists.example.com and @distro.example.com from mailman@example.com (despite the From in the envelope being list-bounces+mailman=example.com@[lists|distro].example.com)
These messages are sent to (envelope recipients) the list admins but with a To: header of `list-owner@...` and a From: header of the address configured as the site_owner in mailman.cfg. That introduces a problem too... the list-owner is *also* the site owner mailman@example.com.
Short of me hardcoding an alternative (noreply@mailman.example.com) or such, or just changing site owner address, that will break some things. (site owner is IT - IT also owns all lists).
You can change the From: from the site owner address to the `list-owner@...` address with a patch like: ``` --- a/src/mailman/email/message.py +++ b/src/mailman/email/message.py @@ -237,10 +237,11 @@ class OwnerNotification(UserNotification): if roster is None: recipients = set([config.mailman.site_owner]) to = config.mailman.site_owner + sender = config.mailman.site_owner else: recipients = set(address.email for address in roster.addresses) to = mlist.owner_address - sender = config.mailman.site_owner + sender = mlist.owner_address super().__init__(recipients, sender, subject, text, mlist.preferred_language) # Envelope sender ```