New guide: how to warm up a dedicated IP without hurting your reputation. Read now →
Log in
MigoSMTP
SMTP and APIUpdated 26 Oct 2026

Envelope From vs Header From: Two Sender Addresses, Return-Path and Why They Differ

The difference between the SMTP envelope sender and the From header, which one SPF and DMARC check, where Return-Path comes from, Sender and Reply-To, bulk sending setups and common confusions.

CL
Written by Camille Laurent
Email Marketing Strategist
Reviewed by Mei Lin Tan
  • Published17 Mar 2025
  • Read time6 min
  • Length1,213 words
Share this guide

One email message has more than one sender address. This surprises almost everyone the first time they look at a message source or a DMARC report. The address shown in the inbox is not the address the receiving server used to decide who sent the message and where to send bounces. Two different layers of email carry two different addresses, and authentication standards check them differently. Understanding the distinction clears up many questions: why bounces do not return to your From address, why SPF can pass while DMARC fails, why a platform asks you to add a return-path domain and why spoofers can show any name in the From line. This guide explains each address, who uses it, how the protocols relate and how to set them up for your own domain. It builds on DMARC alignment, custom return paths and authentication results.

Envelope FromThe SMTP MAIL FROM address; used for routing bounces and for SPF; recorded as Return-Path
Header FromThe From header the reader sees; used by DMARC and clients
AlignmentDMARC passes only when an authenticated domain matches the Header From domain
SetupUse a custom return-path domain and DKIM signing with your own domain

The two layers

The SMTP envelope is like the outside of a paper envelope: addresses for the postal system. The message, with its headers and body, is the letter inside. The mail transfer agents read the envelope; the recipient reads the letter. The two can be and often are different.

PropertyEnvelope senderHeader From
Where it livesSMTP command MAIL FROM:<addr>Message header From: Name <addr>
Also calledReturn-Path, MAIL FROM, bounce address, mfrom, 5321.MailFrom5322.From, visible From, friendly From, author address
Defined inRFC 5321 (SMTP)RFC 5322 (message format)
Seen by the reader?Usually not; shown in headers as Return-PathYes, in the inbox list and message view
ReceivesBounces and delivery noticesNothing automatically (replies go to Reply-To or From)
Checked by SPFYes (or HELO if empty)No
Checked by DMARCOnly as an input for alignmentYes, the domain is the policy domain
Signed by DKIMNo; DKIM signs headers and bodyThe From header must be covered by the signature
Can be emptyYes, the null sender for bounces. See null senderNo
HeaderMeaning
Return-PathWritten by the final receiving server; it copies the envelope sender so it is available to the recipient system
SenderThe agent who actually submitted the message when it differs from the author in From. Used when a secretary or a system sends on someone's behalf. See send as vs on behalf
Reply-ToWhere replies should go; clients prefer it to From when present
Resent-From and Resent-SenderUsed when a message is resent or forwarded intact
Delivered-ToAdded by some servers to record the mailbox that received the message
X-Original-Sender and similarAdded by lists or gateways to preserve the original

What each protocol checks

  • SPF verifies that the connecting IP is allowed by the SPF record of the envelope sender domain (or of the HELO name when the envelope sender is empty). It says nothing about the From header. See SPF.
  • DKIM verifies a signature over selected headers and the body. The signing domain is in d=; the signature must cover the From header, but the signing domain need not equal the From domain.
  • DMARC asks whether SPF or DKIM passed and the domain they authenticated matches the Header From domain. Matching is called alignment: relaxed allows a shared organisational domain, strict requires an exact match.
  • ARC preserves authentication results across forwarding hops. See ARC.

The classic failure shows up when a sending platform uses its own domain in the envelope sender and its own domain in the DKIM signature. SPF passes (for the platform's domain) and DKIM passes (for the platform's domain), but neither aligns with your From domain, so DMARC fails. The remedy is to publish a custom return-path domain that you control and to sign DKIM with your own domain.

Typical configurations

SetupEnvelope senderHeader FromDKIM d=DMARC result
Everything on your domain[email protected][email protected]example.comPass (aligned)
Platform defaults[email protected][email protected]platform-mail.netFail (unaligned)
Custom return-path, platform DKIM[email protected][email protected]platform-mail.netPass via SPF (relaxed alignment)
Platform return-path, custom DKIM[email protected][email protected]example.comPass via DKIM
Forwarded messageOften rewritten by the forwarderUnchangedUnchanged if body intactDKIM can still pass. See forwarding
Mailing list that rewrites FromList addressList address (original in Reply-To)List domainAligned to the list domain

Setting it up well

  1. Choose a return-path subdomain of your domain, such as bounces.example.com or mail.example.com, and point it at your sending service with the records the service asks for (usually an MX and an SPF record on that subdomain).
  2. Publish DKIM for your sending domain using the selector and key your provider gives you, often through CNAME records. See DKIM CNAME delegation.
  3. Use a From address on your domain that you can receive mail on, so replies work and recipients recognise it.
  4. Process bounces arriving on the return-path domain; per-message return addresses (VERP) make this reliable. See VERP.
  5. Verify with a test message: read the Return-Path, the DKIM signature domain and the Authentication-Results header, and confirm that at least one aligned pass is present.
  6. Monitor DMARC reports to find senders that still use unaligned identities.

Reading it in a real message

Return-Path: <[email protected]>
Received-SPF: pass (mx.receiver.example: domain of [email protected] designates 203.0.113.10 as permitted sender)
DKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=s2025; h=from:to:subject:date; ...
From: Example News <[email protected]>
Sender: <[email protected]>
Reply-To: [email protected]

In this example the envelope sender is [email protected], so SPF was evaluated for mail.example.com and passed. The DKIM signature was made by example.com, the same domain as the From header. Both identities align with the author domain, so DMARC passes by either route. The Sender header names a different system that submitted the message, which is allowed and sometimes shown by clients as "sent via". Replies go to the Reply-To address. If you can read a header block like this one, you can answer almost any question about who a message claims to be from, who really sent it and where problems will be reported.

Common confusions

  • "The bounce did not come to my From address." Bounces go to the envelope sender, not the From header.
  • "SPF passes but DMARC fails." SPF passed for a different domain than the From domain.
  • "The sender shows my domain but I did not send it." The From header can be forged freely; only authentication and DMARC policy constrain it. See spoofing.
  • "Gmail shows via another domain." The client noticed that the authenticating domain differs from the From domain.
  • "Replies go to a different address." A Reply-To header overrides From for replies.
  • "My app sets From but the server rewrites it." Some relays enforce a verified From or replace the envelope sender; check the service rules.

Once you think in two layers, most sender-address puzzles resolve themselves. The envelope tells servers where to send problems and which domain to check with SPF; the header tells people and DMARC who the author is. Align them under your own domain and the system works as designed.

Check your authentication records Verify SPF, DKIM and DMARC for your sending domain.

Open the checker

References and further reading

Frequently asked questions

What is the difference between envelope From and header From?

The envelope From is the SMTP MAIL FROM used for bounces and SPF; the header From is the visible author address used by DMARC and shown to readers.

Which address does SPF check?

The envelope sender domain, or the HELO name if the envelope sender is empty.

Where do bounces go?

To the envelope sender, recorded as Return-Path, not to the visible From address.

Why does DMARC fail when SPF passes?

SPF may have authenticated a different domain than the header From, so there is no alignment.

How do I fix unaligned platform mail?

Set up a custom return-path domain and sign DKIM with your own domain.

Topics#envelope#return-path#from header#spf#dmarc
Was this guide helpful?Your answer helps us improve our documentation.

Start sending in minutes.

Create an account, add your domain and send your first email.

Get started Talk to sales