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 [email protected] is seeing messages sent to it from @lists.example.com and @distro.example.com from [email protected] (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 [email protected].

Short of me hardcoding an alternative ([email protected]) 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
```

_______________________________________________
Mailman-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/[email protected]/message/3DAD2GB4SA3JLMZJGOAUH5HEXOZQNSVW/

This message sent to [email protected]

Reply via email to