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.
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.
| Property | Envelope sender | Header From |
|---|---|---|
| Where it lives | SMTP command MAIL FROM:<addr> | Message header From: Name <addr> |
| Also called | Return-Path, MAIL FROM, bounce address, mfrom, 5321.MailFrom | 5322.From, visible From, friendly From, author address |
| Defined in | RFC 5321 (SMTP) | RFC 5322 (message format) |
| Seen by the reader? | Usually not; shown in headers as Return-Path | Yes, in the inbox list and message view |
| Receives | Bounces and delivery notices | Nothing automatically (replies go to Reply-To or From) |
| Checked by SPF | Yes (or HELO if empty) | No |
| Checked by DMARC | Only as an input for alignment | Yes, the domain is the policy domain |
| Signed by DKIM | No; DKIM signs headers and body | The From header must be covered by the signature |
| Can be empty | Yes, the null sender for bounces. See null sender | No |
Related addresses and headers
| Header | Meaning |
|---|---|
| Return-Path | Written by the final receiving server; it copies the envelope sender so it is available to the recipient system |
| Sender | The 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-To | Where replies should go; clients prefer it to From when present |
| Resent-From and Resent-Sender | Used when a message is resent or forwarded intact |
| Delivered-To | Added by some servers to record the mailbox that received the message |
| X-Original-Sender and similar | Added 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
| Setup | Envelope sender | Header From | DKIM d= | DMARC result |
|---|---|---|---|---|
| Everything on your domain | [email protected] | [email protected] | example.com | Pass (aligned) |
| Platform defaults | [email protected] | [email protected] | platform-mail.net | Fail (unaligned) |
| Custom return-path, platform DKIM | [email protected] | [email protected] | platform-mail.net | Pass via SPF (relaxed alignment) |
| Platform return-path, custom DKIM | [email protected] | [email protected] | example.com | Pass via DKIM |
| Forwarded message | Often rewritten by the forwarder | Unchanged | Unchanged if body intact | DKIM can still pass. See forwarding |
| Mailing list that rewrites From | List address | List address (original in Reply-To) | List domain | Aligned to the list domain |
Setting it up well
- Choose a return-path subdomain of your domain, such as
bounces.example.comormail.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). - Publish DKIM for your sending domain using the selector and key your provider gives you, often through CNAME records. See DKIM CNAME delegation.
- Use a From address on your domain that you can receive mail on, so replies work and recipients recognise it.
- Process bounces arriving on the return-path domain; per-message return addresses (VERP) make this reliable. See VERP.
- 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.
- 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.
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.