Add option to remove Sender header

Bug #266824 reported by Xpl0re
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Status tracked in 3.0
Fix Released
Mark Sapiro
Fix Released
Barry Warsaw

Bug Description

When sending messages through mailman with Postfix, it
adds a new header called "Sender" in addition to the
Errors-To and Return-Path headers.

Outlook (probably mistakenly) sees the Sender header
and treats it like gold. All messages show up in the
user's mailbox as from list-bounces on behalf of
therealperson. What's worse is that the rules/filters
will only work on the list-bounces part and not

If we could selectively turn off the addition of the
Sender header (and be able to keep the other two), then
we should still be able to use bounces but have Outlook
be able to filter messages.


Related branches

Revision history for this message
Ppsys (ppsys) wrote :

RFC2822 (Para 3.6.2. - Originator fields) would suggest that simply not
the Sender: header when Mailman is the agent responsible for the actual
transmission of the message is a breach of the RFC.

The problem with the behaviour of Outlook is discussed in the Mailman FAQ


A suggested code change which cosmetically improves the Outlook
presentation by changing the Sender: header value from the listname-
bounces alias to the listname alias is described there.


The Error-to: header is deprecated and only inserted for backward
compatibilty with old/broken MTAs.

The Return-path is not a header that travels with the message and is
as a trace field. It is mandatory and normally inserted at the start of
message, as a header, by the final SMTP delivery MTA and is the value of
SMTP envelope sender.

As an aside, Outlook 2003 appears to allow filtering on the contents of
header wihtout any problems (as opposed to the From field displayed on the

GUI) and this does not involve the contents of the Sender: header.

Revision history for this message
Xpl0re (xpl0re) wrote :

Thanks for that posting. The hack to comment that line out
definetly fixes the "problem". While I definetly agree that
putting in fixes to correct behavior in MS products sucks,
in this case, it would be great to just have it as an option
so we don't have to have the hacked code.

Revision history for this message
Malte S. Stretz (mss) wrote :
Changed in mailman:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.