Closed Bug 1286515 Opened 8 years ago Closed 3 years ago

Using custom From header sends mail with original email address as Return-Path header

Categories

(MailNews Core :: Networking: SMTP, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: bugzilla, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Build ID: 20160604131506

Steps to reproduce:

Write a new email, customize the from address via drop-down, send it.
In this example my account address is bob@example.org, which I customize to bob-bugzilla@example.org




Actual results:

The email has my account email address in the Return-Path header:
Return-Path: <bob@example.org>
From: Bob <bob-bugzilla@example.org>


Expected results:

Return-Path and From should be the same:
Return-Path: <bob-bugzilla@example.org>
From: Bob <bob-bugzilla@example.org>

To eliminate a problem at the SMTP server: if I directly edit the Thunderbird account and set bob-bugzilla@example.org as my account email address, it works as expected.
Component: Untriaged → Message Compose Window
Hmm, so - the "Return-Path:" header reflects the envelope address, which I'd think should be the "Sender:" address (which is the account authenticated with). The standard only states in RFC 5321:
"The primary purpose of the Return-path is to designate the address to which messages indicating non-delivery or other mail system failures are to be sent." As such, it doesn't seem that the client *must* use the authenticated account for it, but it would seem logical to do so.
Component: Message Compose Window → Networking: SMTP
Product: Thunderbird → MailNews Core
Version: 45 Branch → 45
(In reply to rsx11m from comment #1)
> [...]
> As such, it doesn't seem that the client *must* use the authenticated
> account for it, but it would seem logical to do so.

1. If I use "Manage identities" to add another emailaddress, this is used for both From and Return-Path. Also these additional identities are not authenticated.
In my opinion both additional identies and customized From addresses should be handled equally.

2. For privacy reasons, I would prefer my emails from "bob@company.com" not to have "bob@private.com" as a Return-Path, if I used a custom From address to send that mail.

3. In Sent mail, there is no Return-Path header shown, so there is not even a way to see which address was used as a Return-Path. If I have multiple identities (not even accounts), pick a random one, and customize the From address, it will use the last selected identity for the Return-Path.
See Also: → 1294027
See Also: → 1299430

Version 91 has all new smtp backend code. If you can still reproduce this issue, please file a new bug report https://bugzilla.mozilla.org/enter_bug.cgi?product=MailNews%20Core&component=Networking%3A%20SMTP

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE

I can confirm this is no longer an issue.

Resolution: INCOMPLETE → WORKSFORME
You need to log in before you can comment on or make changes to this bug.