Bouncewise

Bouncewise › Guides › Return-Path vs Reply-To vs From: which address does what

Email delivery guide

Return-Path vs Reply-To vs From: which address does what

By the Bouncewise team · Updated · 3 min read · How we check guides

Short answer

From is the address people see, and the domain DMARC protects. Reply-To, if set, is where a reply goes when someone presses Reply. Return-Path is the envelope sender (the SMTP MAIL FROM): bounces are sent there, SPF is checked against its domain, and the receiving server writes it into the Return-Path header on delivery. You set From and Reply-To per message; the Return-Path comes from your provider's bounce domain.

The three addresses side by side

Return-Path (envelope from)From (header from)Reply-To
Where it is setSMTP MAIL FROM commandMessage headerMessage header
Who sees itHidden in the full headersEveryoneShown when replying
What uses itBounces and delivery failure reportsDisplay, filters, DMARCThe recipient's Reply button
AuthenticationSPF checks this domain (smtp.mailfrom)DMARC requires SPF or DKIM to align with it (header.from)Not checked by SPF, DKIM or DMARC
Also calledEnvelope sender, 5321.MailFrom, bounce address5322.From, author-

Envelope from vs header from

An email travels like a letter in an envelope. The SMTP conversation carries the envelope; the message inside carries the headers. They do not have to match, and for mail sent through a provider they almost never do:

MAIL FROM:<[email protected]>     <- envelope sender
RCPT TO:<[email protected]>                        <- envelope recipient
DATA
From: Example App <[email protected]>         <- what people see
Reply-To: Example Support <[email protected]>  <- where replies go
To: [email protected]
Subject: Your receipt

RFC 5321 says the server that makes final delivery inserts a Return-Path line copied from the MAIL FROM, and that the reverse-path "MUST be used as the target of any mail containing delivery error messages". So the delivered message looks like this:

Return-Path: <[email protected]>
Authentication-Results: mx.example.org;
  spf=pass smtp.mailfrom=pm-bounces.example.com;
  dkim=pass header.d=example.com;
  dmarc=pass header.from=example.com
From: Example App <[email protected]>
Reply-To: Example Support <[email protected]>

The same RFC says a sending system should not add its own Return-Path header, and that the final server may remove one before adding its own. Putting Return-Path in your API call's custom headers is not how you change it.

Message source showing Return-Path, From and Reply-To headers with different addresses
Return-Path, From and Reply-To in one delivered message.

Where replies, bounces and checks go

What happensAddress used
Someone presses ReplyReply-To if present, otherwise From
The receiving server rejects or bounces the message laterReturn-Path, so your provider can record the bounce and suppress the address
SPF checkThe Return-Path domain (or the HELO name for bounces, which have an empty envelope sender)
DMARC checkThe From domain, compared with the SPF and DKIM domains

This is why a From: [email protected] with Reply-To: [email protected] is fine: Reply-To plays no part in authentication. A Reply-To on another domain is also fine for DMARC, though recipients may find it odd.

Setting each one with your provider

ProviderFrom and Reply-To per messageReturn-Path
PostmarkFrom, ReplyTo (defaults to the sender signature's Reply-To)Custom Return-Path domain, e.g. pm-bounces.example.com CNAME to pm.mtasv.net
SendGridfrom, reply_to object or reply_to_list (not both)The em CNAME created by domain authentication
Mailgunfrom; other headers with the h: prefix, e.g. h:Reply-ToThe sending domain you verified; check Mailgun's docs for its envelope settings
Resendfrom, reply_to (string or array)Defaults to send.example.com from the domain setup

The Return-Path is a domain setting, not a per-message field, because the provider needs to receive and process the bounces. Setting one up on your own domain is covered in custom Return-Path domain.

Mistakes to avoid

  • Expecting bounces at Reply-To. Bounces go to the Return-Path, which your provider handles. To see them, look at your provider's bounce list, not your support inbox.
  • Adding the provider's SPF include to your root domain and expecting it to help. SPF is checked on the Return-Path domain; see SPF fail.
  • A Return-Path on an unrelated domain. SPF can pass and still not align with From, so DMARC relies on DKIM alone. See why DMARC fails.
  • Sending From a free mailbox address such as Gmail through a provider. You cannot authenticate a domain you do not control.

Questions

What is the Return-Path in an email?

The envelope sender address from the SMTP MAIL FROM command, written into the Return-Path header by the receiving server. Bounces are sent to it and SPF checks its domain.

Is the envelope from the same as the From header?

Not necessarily. The envelope from is used by servers for bounces and SPF; the From header is what people see and what DMARC protects. Providers usually use their own bounce address as the envelope from.

Does Reply-To affect deliverability or DMARC?

It is not part of SPF, DKIM or DMARC. Keep it to an address people would expect for your brand.

Can I set the Return-Path per message?

Usually not. With transactional providers it comes from the provider's bounce domain or the custom Return-Path you configure for your domain, and a Return-Path header you add yourself is not how it is set.

Sources