Return-Path

Definition

The Return-Path is the email header that records where bounce messages should be sent. The final delivery server writes it from the SMTP MAIL FROM value, as specified in RFC 5321. You cannot set it directly by adding a header; the receiving server strips that and uses the envelope sender. The domain in it is what SPF authenticates.

  • It is the persistent record of the envelope sender, written into the header on delivery
  • You cannot set it by hand; the receiving server overwrites it with the MAIL FROM
  • Its domain is the one SPF checks, so a custom Return-Path drives SPF alignment
  • Aligning it with your From domain helps your mail pass DMARC
At a glance
Header name Return-Path:
Written by The final delivery server
Defined in RFC 5321, section 4.4
Source value The SMTP MAIL FROM
Used for Bounce routing & SPF
Same as Envelope sender (recorded)

What the Return-Path is

The Return-Path is a header field that names the address where bounce messages and other delivery notifications should go. It is not something the sender types in. Per RFC 5321 section 4.4, when the final delivery server accepts a message it inserts a single Return-Path line at the top of the header, copied from the envelope sender (the MAIL FROM value used during the SMTP transaction).

In other words, the envelope sender and the Return-Path are the same address at two different moments: the envelope sender is the live value during transmission, and the Return-Path is that value preserved in the delivered message. This is also why any Return-Path header you try to add yourself is ignored; the receiving server strips it and writes its own from what actually arrived in MAIL FROM.

A Return-Path on a custom subdomain, set up for SPF alignment
Return-Path: <bounce@mail.example.com>

Return-Path, SPF, and alignment

The Return-Path domain is the one SPF authenticates, which makes it central to DMARC. DMARC does not just want SPF to pass; it wants the passing domain to align with the visible From domain. When you send through an ESP, the default Return-Path is usually on the ESP’s own domain, so SPF passes but does not align with your From, and DMARC can still fail on the SPF side.

The fix is a custom Return-Path, often a subdomain like mail.example.com that you point at your ESP with the DNS records they provide. Now the Return-Path is on your own organizational domain, SPF passes and aligns, and DMARC is satisfied. Most ESPs document this under “custom Return-Path,” “custom MAIL FROM,” or “domain authentication.” You can confirm the result with our SPF checker.

Return-Path vs From header

Return-Path From header
Purpose Where bounces go Who the message is from
Seen by reader? No Yes
Set by Receiving server (from MAIL FROM) The sender
Checked by SPF DMARC alignment

Common mistakes

Trying to set Return-Path as a header
Adding a Return-Path header in your message has no effect; the receiving server discards it and writes its own from the SMTP MAIL FROM. Control it through the envelope sender, not the header.
Leaving the ESP default Return-Path in place
A Return-Path on your ESP’s domain lets SPF pass but not align with your From, so DMARC can fail on SPF. Set up a custom Return-Path on your own subdomain.
Confusing Return-Path with Reply-To
Return-Path routes machine-generated bounces and is invisible to readers. Reply-To sets where human replies go and is part of the visible message. They solve different problems.

Frequently asked questions

Can I set the Return-Path myself?
Not by adding a header. The receiving server overwrites any Return-Path you include, using the SMTP MAIL FROM value instead. To control it, you set the envelope sender, which through an ESP usually means configuring a custom Return-Path or custom MAIL FROM domain with the DNS records they supply.
What is the difference between Return-Path and Reply-To?
Return-Path is the invisible address where automated bounces go, written by the receiving server from the envelope sender. Reply-To is a visible header that tells a recipient’s mail client which address to use when they hit reply. One is for machines, the other for people.
Why does my Return-Path need to match my domain?
Because SPF authenticates the Return-Path domain, and DMARC requires that domain to align with your visible From. If the Return-Path stays on your ESP’s domain, SPF passes but does not align, which can cause DMARC to fail. A custom Return-Path on your own domain fixes the alignment.
Reviewed by Jennifer Jackson, Email Deliverability Analyst · June 2026 ← Back to glossary