Why can a delivered message's Return-Path show a sending service's bounce domain while its From header shows the brand's domain?
answer
- written at the last hop
- copied from the reverse-path
- where failures should go
- an empty pair of angle brackets
basics
~20 sReturn-Path is written by the server making final delivery, copied from the envelope MAIL FROM. A sending service puts its own bounce address in MAIL FROM so failures return to it, while From keeps the brand.
solid answer
~40 sRFC 5321 section 4.4 requires the server making **final delivery** to insert a `Return-Path` line that preserves the reverse-path from the `MAIL FROM` command; originating systems SHOULD NOT send one themselves. Its purpose is to say where non-delivery reports go. An outside sending service sets `MAIL FROM` to an address in its own bounce domain so failures return to it and it can process them for the brand, while the RFC 5322 `From` stays `[email protected]`. So the support desk's answer is that this is normal and is not, on its own, a sign of spoofing. The one consequence worth flagging is that SPF then passes for the service's domain, not the brand's, which matters for DMARC alignment.
go deeper
Recall that Return-Path is written at final delivery from MAIL FROM and is where bounces go, so it can differ from From.
Explain RFC 5321 section 4.4: who inserts the line, why originators should not, the null reverse-path of a bounce, and why a sending service uses its own bounce domain.
Say what the mismatch changes in practice: SPF covering the service's domain rather than the brand's, and which receiver-written fields to read before calling a message forged.
Weigh a custom envelope subdomain against leaving the service's default bounce domain, considering bounce handling, DNS ownership and who must change records when the service changes.
## The question a support desk gets A customer forwards a newsletter and asks why the headers show `Return-Path: <[email protected]>` when the message plainly comes from `[email protected]`. Has someone forged it? Usually not: the two fields come from different layers of the transaction, and each was set by a different party. ## Who writes Return-Path, and from what The rules sit in RFC 5321 (October 2008), section 4.4, and in the identity table of RFC 5598: - When the delivery server makes **final delivery** (the message leaves the SMTP environment for a mailbox), it inserts a `Return-Path` line at the beginning of the mail data. RFC 5321 says this use is required and that mail systems MUST support it. - The line **preserves the reverse-path** from the `MAIL FROM` command. RFC 5598 records it the same way: the delivery agent writes Return-Path from the envelope MailFrom. - A message-originating system **SHOULD NOT** send a message that already contains `Return-Path`, and the server making final delivery **MAY remove** existing ones before adding its own, so exactly one appears on the delivered copy. - In RFC 5322 it is a **trace field**, written as an angle-bracketed address that may be empty. So `Return-Path` on a delivered message is the receiver's record of what the sending client said in `MAIL FROM`. Nobody types it into the newsletter. ## Why a sending service uses its own domain there RFC 5321 says the primary purpose of the return path is to designate where messages reporting non-delivery or other failures are sent, and that the mailbox there may differ from the actual sender's, for example to send errors to a special handling mailbox. A sending service does exactly that: 1. It sends `MAIL FROM:<[email protected]>`, often with a per-message or per-recipient address so it can tell which recipient failed. 2. Bounces return to the service, which suppresses dead addresses and reports to the brand. 3. The RFC 5322 `From` remains `"Example News" <[email protected]>`, the identity the reader recognises. RFC 5321 section 7.1 explicitly defends this freedom, calling attempts to force envelope and `From` to match "largely misguided" because they break legitimate cases like this and mailing lists. ## The empty Return-Path If the field reads `Return-Path: <>`, the message was sent with a **null reverse-path**, `MAIL FROM:<>`. Delivery status notifications and other automatic replies use it so that a failure to deliver a report cannot generate another report. It describes a bounce, not a broken header. ## Reading the two fields together | Field | Layer | Set by | Used for | |---|---|---|---| | `Return-Path` | Envelope, recorded at delivery | Final delivery server, from `MAIL FROM` | Destination for bounces | | `From` | Message header | Author | What the reader sees as the sender | | `Sender` | Message header | Originator | The agent that transmitted it, when not the author | | `Reply-To` | Message header | Author | Where human replies go | ## What it means for the brand's domain A mismatch is expected; what it changes is which domain the checks covered: - **SPF** evaluates the `MAIL FROM` domain, so the receiver's `Authentication-Results` shows `smtp.mailfrom=bounces.example.net`. That pass says nothing about `example.com`. - Whether that pass helps the brand's DMARC result is a question of identifier alignment. The usual remedies, a custom envelope subdomain under the brand's domain or a DKIM signature in the brand's name, are covered with DMARC alignment. ## Other legitimate mismatches The newsletter is not a special case. RFC 5321 gives mailing lists as the common example of a return path that differs from the author: errors go to the list maintainer, not to whoever wrote the post. Other ordinary patterns produce the same picture: - an application that sends receipts from `[email protected]` while its relay supplies a bounce address of its own; - an automatic notification, sent with the null reverse-path, whose `From` names the reporting system; - delegated sending, where `Sender` names an assistant and `From` the manager, while the envelope sender may be either of them or a bounce address. ## What to tell the customer - The bounce domain in `Return-Path` is the sending service's address for delivery failures and is normal for bulk mail. - The identity to judge is the `From` address, together with the receiver's authentication results for it. - A `Return-Path` that matches `From` is not proof of authenticity either: both are values the sending side chose.
- Can a sender control the Return-Path a recipient finally sees by writing one into the message?Not reliably. RFC 5321 says an originating system SHOULD NOT send a message that already contains Return-Path, and the server making final delivery MAY remove existing ones before inserting its own from the envelope. What the sender controls is the `MAIL FROM` reverse-path, which the delivery server copies.
- Why does a bounce carry an empty reverse-path, and what does that look like on delivery?RFC 5321 has notification messages sent with a null reverse-path, `MAIL FROM:<>`, so that a failure to deliver the notification cannot trigger another notification and loop. The delivery server copies it as `Return-Path: <>`.
- Treats a Return-Path that differs from From as proof of spoofing
- Believes the sending client writes Return-Path into the header it sends
- Thinks Return-Path is copied from the Sender or Reply-To field
- Reads Return-Path: <> as a parsing error rather than a null reverse-path
- Assumes an SPF pass for the bounce domain also covers the brand's From domain