Ticket #15 (closed defect: fixed)
Patch — Return-Path headers should not be added to the message by TurboMail.
| Reported by: | fs | Owned by: | amcgregor |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | message-class | Version: | 2.0.4 |
| Keywords: | patch | Cc: |
Description
TurboMail inserts a Return-Path header in every mail sent. The - now obsolete - RFC 822 stated:
4.3.1. RETURN-PATH This field is added by the final transport system that delivers the message to its recipient. The field is intended to contain definitive information about the address and route back to the message's originator. (...)
TurboMail is definitely NOT the final transport system, therefore this header should be omitted.
RFC 2822 does not say anything particular about when to insert the Return-Path header but states:
The trace fields are a group of header fields consisting of an optional "Return-Path:" field, and one or more "Received:" fields.
I interpret this as there may be only ONE Return-Path header. Inserting two of them as TurboMail does when smtpfrom is not None, should be always wrong.
Furthermore, TurboMail inserts a header named 'Old-Return-Path' which does not appear in any of the RFCs.
With the attached patch no Return-path or Old-Return-Path headers are inserted anymore by TurboMail.
