Guide · SMTP and headers

SMTP envelope sender vs. From header: which address goes where?

An invoice can show a billing address in From, send your reply to a different inbox, and send a delivery failure to a third address. All three can be correct. They belong to two different parts of an email: the SMTP envelope, which mail servers use to move the message, and the message header, which travels with its content. Knowing which address you are looking at makes a missing reply, a bounce or an authentication result much easier to trace.

Reading time
6 min

Four fields at a glance

FieldWhere it livesWhat it is for
MAIL FROMSMTP envelopeThe envelope sender, formally the reverse-path. Later delivery failures go back to it, unless it is empty.
Return-PathHeader, added at final deliveryA trace field that records the reverse-path used for that delivery.
FromMessage headerThe author of the message. A separate Sender field, when present, names the agent that transmitted it.
Reply-ToMessage headerWhere the author suggests that replies go. Without it, replies go to From.

MAIL FROM supplies the envelope sender, which RFC 5321 (section 4.1.1.2) calls the reverse-path. A server learns it in the SMTP transaction, before it receives the message header.

Return-Path is the trace field the server inserts when it makes final delivery (section 4.4). It preserves the reverse-path from the MAIL command. That path can change on the way: section 4.4 lets forwarding, gateway and relay systems remove the return path and rebuild the MAIL command, and a mailing list sends its copies with its own return path (section 3.9.2). So Return-Path does not necessarily show the MAIL FROM used when the message first entered the mail system.

From is the author field of RFC 5322 (section 3.6.2). When a Sender field is present, it names the mailbox of the agent responsible for actually transmitting the message. Sender is a header field, not another name for the envelope sender.

Reply-To names where the author suggests replies be sent. Without it, replies should by default go to From, unless the person replying chooses otherwise (section 3.6.2). Reply-To does not tell a server where to send a delivery failure.

The recipient side has the same split. The RCPT TO command gives the receiving server a recipient for the transaction, while the To field lists the intended recipients in the message itself. Bcc and forwarding are two ordinary reasons the envelope recipient may not match any address on the To line (RFC 5321, section 7.2; RFC 5322, section 3.6.3).

Read a synthetic header line by line

Imagine a billing service submits a message with this envelope:

MAIL FROM:<bounce+42@mailer.example.net>
RCPT TO:<customer@example.org>

Here is what some fields of the delivered copy could look like, if the reverse-path was not changed on the way:

Return-Path: <bounce+42@mailer.example.net>
From: Example Billing <billing@example.com>
Sender: Example Mailer <dispatch@mailer.example.net>
Reply-To: Billing Support <support@example.com>
To: Customer <customer@example.org>
Subject: Your November invoice

The SMTP service was asked to deliver the message to customer@example.org. The header names Example Billing as the author and dispatch@mailer.example.net as the transmitting agent. Neither is where replies should go: Reply-To points to support@example.com. If the receiving system accepted the message and later could not deliver it, the failure report goes to the envelope's bounce+42 address. The Return-Path shows that same address only because the example assumes no rewrite.

All the addresses here are fictional. A real header can contain customer addresses, unique tracking tokens and details of your mail infrastructure. Reproduce a problem with a controlled test message, and do not post full headers in a public ticket or paste site.

Delivery failures and human replies take different routes

A server can reject a message during the SMTP transaction. Then the sending server gets a reply code straight away and does not wait for an email. A delivery status notification (DSN) is different: when a server has accepted the message and later finds that it cannot deliver it, RFC 5321 (section 3.6.3) requires it to send a notification to the originator, as indicated by the reverse-path. The reverse-path alone decides where it goes: Reply-To and From play no part, even when one of them holds the same address.

Notifications such as DSNs are themselves sent with an empty reverse-path, MAIL FROM:<>, so that a failed notification does not cause another one (sections 3.6.3 and 4.5.5). A message with an empty reverse-path still has a From field. So Return-Path: <> on a notification is expected, not a sign of a broken sender setup.

If human replies reach the wrong inbox, check Reply-To and From in a fresh test message. If bounces go missing instead, look up the MAIL FROM your sending provider recorded for that attempt, and its delivery logs. Bounce processing and DSNs explains immediate SMTP errors, DSNs and per-recipient bounce routing.

Which domain does SPF check?

SPF checks whether the connecting server is authorized to use the domain of the MAIL FROM identity. In the example that domain is mailer.example.net, not example.com from the From field. SPF can also check the HELO identity separately. When the reverse-path is empty, RFC 7208 (section 2.4) defines the MAIL FROM identity as the mailbox made of the local part postmaster and the HELO identity.

This matters when you read a result such as spf=pass. A pass for mailer.example.net does not by itself show that the visible example.com author is authorized. For SPF to count towards DMARC, the SPF-validated MAIL FROM domain must be aligned with the From domain; DMARC uses only the MAIL FROM identity, never the HELO check (RFC 9989, sections 3.2.4 and 4.4.2). An aligned, valid DKIM signature is the other way to pass DMARC, independently of SPF (section 4.4.1). In the example, mailer.example.net and example.com have different organizational domains, so this SPF pass would not align (DMARC from none to reject shows how to set up an aligned return path).

When you investigate a real message, start with the authentication results the receiver you trust recorded, and find the domain it actually checked. A Return-Path is a helpful clue, but it does not replace the receiver's SPF verdict, and it does not tell you which server IP address was checked.

What these fields cannot establish

From, Reply-To and Return-Path often differ when a sending platform or a forwarder is involved. That is a reason to check the routing you intended, not proof of spoofing. Equally, an address in a header does not show that a real person wrote the message, controls the reply mailbox or agreed to receive mail. Anyone can put a familiar name or address in a header field the receiver has not authenticated.

Pick the evidence that answers your question:

These checks answer different questions even when the addresses happen to be identical.

Questions

Is Return-Path the same as the From address?

No. Return-Path records the envelope sender used for the final delivery, where delivery failures go. From names the author. They are often different, for example when a sending platform handles your bounces.

Why does SPF pass but DMARC fail?

SPF checked the MAIL FROM domain, and that domain is not aligned with the From domain. Use a return path under your own domain, or sign with an aligned DKIM key.

Where do bounces go if Reply-To is set?

To the envelope sender (MAIL FROM), not to Reply-To, even when both hold the same address. Reply-To only affects human replies.

Try it

Look up the SPF record of your return path domain with the SPF checker, and your From domain's policy with the DMARC checker.

Sources

How we wrote this: drafted by the email-validation.org team with the help of AI writing tools, from our product documentation and the sources linked in the text.

Get up to 500 free credits. No card needed.

New accounts get 500 free credits (100 when you sign up with a free email provider such as Gmail, Outlook or Yahoo, another personal mailbox such as a paid one like Fastmail or one from your internet provider, or an address from a relay or alias service). Try it on your own list before you buy.

Updated · Maintained by: Email Validation LLC