Return Path Domain Setup: 5 DNS Steps for DMARC

The return path domain is the domain portion of the SMTP envelope sender. SMTP supplies that sender as the reverse-path argument to the MAIL FROM command, and the final receiving system records it in the Return-Path header.
Identity is important here because SPF is usually used to verify the MAIL FROM domain, but DMARC checks if the domain that was verified by SPF or DKIM matches the domain shown in the From address. Just because SPF says everything is okay, it doesn't mean DMARC will pass too.
TL;DR:
- The visible From address, SMTP envelope sender, and Reply-To address serve different purposes.
- A custom return path can provide aligned SPF, but the required DNS record types depend on the sending provider.
- Inspect
Return-Path,Authentication-Results, andDKIM-Signaturewhen diagnosing alignment.
- VERP can encode a recipient or message identifier in the envelope sender for bounce attribution.
- Treat the return path as monitored sending infrastructure, not a one-time DNS task.
Table of Contents
What the return path is (and why it isn't From or Reply-To)
An email has identities at two layers. The header From address is visible to the recipient. The SMTP envelope sender is supplied in the MAIL FROM command and is used for delivery-status notifications.
According to RFC 5321, the value is referred to as the reverse-path. When the message is finally delivered, the receiving system takes the reverse-path and uses it to insert the Return-Path header.
- When you add a
Return-Pathheader to the content of a message, it doesn't actually set the envelope sender. The system that finally receives the message is the one that controls this particular header.
- Most mail clients hide
Return-Pathin their normal message view, so inspect the raw source when debugging.
- Reply-To tells a mail client where a human reply should go. It does not control SPF or DMARC alignment.
The return path is therefore a protocol identity, not a display preference.
How SPF, DKIM and DMARC actually use the return path
SPF evaluates an SMTP identity. For a message with a non-empty reverse-path, that identity is the MAIL FROM domain. SPF also defines a HELO identity check, which matters when the reverse-path is empty.
DKIM works independently of the envelope. It verifies a cryptographic signature and identifies the signing domain in the d= tag of DKIM-Signature.
DMARC passes when at least one authenticated identifier aligns with the visible From domain. That can be the SPF-authenticated MAIL FROM domain or the DKIM d= domain.
- Relaxed SPF alignment (
aspf=r) accepts domains that share the same organisational domain.bounce.example.comcan align withexample.com.
- Strict SPF alignment (
aspf=s) requires theMAIL FROMand From domains to match exactly.
A provider-owned return path may pass SPF for the provider's domain but fail SPF alignment with your From domain. An aligned DKIM signature can still give DMARC a passing path. A custom return path gives SPF its own aligned path.
Setting up a custom return path domain: the DNS checklist
When you set up a custom return path, it usually involves a domain that you have control over, like a subdomain that's just for this purpose. The provider you're working with will give you specific instructions on which DNS records you need to make public. Some providers use something called CNAME delegation, but with Sendmux, you'll get MX and SPF TXT records that are meant for the bounce subdomain.
- Choose a subdomain. Use a clear name such as
bounce.example.comand keep it separate from the apex domain.
- Copy the exact provider records. Do not translate one provider's CNAME instructions into another provider's MX or TXT setup.
- Publish the related authentication records. Add the return-path records and any DKIM records shown for that sending domain.
- Wait for authoritative DNS to answer. Verification time follows DNS propagation and the provider's check schedule, so use the reported state rather than a universal delay estimate.
- Send a test and inspect it. Confirm the recorded
Return-Path, SPF result, DKIM result, and DMARC result in the received message.
Pro tip: Test with a mailbox on a separate receiving system. It gives you a clearer view of how an external receiver evaluates the message.
Reading return path and authentication results in the raw headers
Start with the full message source rather than the client's summary. The exact header format varies by receiver, but four fields usually carry the evidence you need.
- Return-Path shows the reverse-path recorded at final delivery.
- Authentication-Results records SPF, DKIM, and DMARC results plus the identities evaluated. Trust only fields produced inside the receiver's authentication boundary.
- Received shows the relay path. Use trusted authentication results or server logs to trace an SMTP envelope change.
- DKIM-Signature exposes the
d=signing domain ands=selector used for the signature.
An SPF softfail means the domain owner has indicated that the sending host is probably not authorised, typically through ~all. It is a weak negative result, not an SPF pass, and receivers should not reject mail based on it alone. An SPF permerror means the SPF record could not be evaluated correctly.
Use dig TXT example.com for SPF and dig TXT selector._domainkey.example.com for DKIM. DNS answers prove that records exist; a received test message proves how a receiver evaluated a real send.
Bounce handling and VERP for accurate attribution
The envelope sender is also the destination for non-delivery reports. VERP, or Variable Envelope Return Path, varies its local part so a sender can map a returned message to a recipient without trusting human-readable body text. An implementation may include a message identifier as well.
- A VERP address can hold an opaque recipient or an opaque message identifier in its local part.
- The receiving bounce processor must validate and decode that identifier safely.
- Local-part length, privacy, and routing rules still apply, so the exact format is an implementation choice.
- A custom return path is useful for branded alignment, but VERP support depends on the sending service rather than the DNS record alone.
The public Sendmux Sending API schema documents a return_path field as the envelope sender for VERP support. Domain verification and bounce routing remain separate concerns: the address format identifies the message, while DNS makes the domain routable and authenticatable.
Naming, monitoring and operational best practices
Treat the return path domain as part of your sending infrastructure. Give it an owner, include it in change review, and monitor the results that show whether it still works.
- Make sure the names of your return paths are consistent across all the streams you're sending from, so it's clear what each subdomain is for.
- Review DMARC aggregate reports for new or drifting sending sources.
- Keep an eye on how often messages bounce back and how many complaints are made, looking at which providers are involved and when these issues happen. If you notice a change, dig deeper into the messages to figure out what's going on.
- Avoid broad receiver-side allowlists as a substitute for correct authentication.
- Recheck verification after DNS, provider, or domain changes.
Separate subdomains can make operational ownership and reporting clearer, but they do not automatically isolate reputation. Receivers decide how they combine signals across domains, IPs, message streams, and user feedback.
How Sendmux handles return path and domain authentication
For a Sendmux custom sending domain, the current DNS set includes DKIM CNAME records plus MX and SPF TXT records for the bounce subdomain. The domain response includes each required record and the domain's current verification state.
You can use the Management API to set up a sending domain. It can give you the records you need, start the verification process, and tell you the status of the domain. The API also lets you download a zone file, which has all the DNS values you need to copy.
Verification is not instantaneous by contract. A newly created domain begins in a pending state, and Sendmux periodically rechecks records. You can also request a verification check through the Management API.
After sending begins, the deliverability view reports bounce and complaint rates over defined windows. Use message-level delivery logs to investigate the events behind a rate change.
Strict alignment versus operational flexibility
Strict and relaxed alignment are matching rules, not security levels in isolation. Strict mode narrows which authenticated domains align, but legitimate mail can then fail DMARC if the From domain and sending identities are not designed for exact matches. The receiver's policy determines the final disposition.
Relaxed alignment is the DMARC default and works well with dedicated subdomains under the same organisational domain. Strict alignment is appropriate when exact matching is required and every authorised sender can meet it.
Before changing aspf or adkim, inventory every sender and inspect aggregate reports. The useful question is not whether strict sounds stronger. It is whether all legitimate SPF and DKIM identities will still align with the From domain.
Get your return path domain right without babysitting DNS
The reliable path is simple: use the records issued for your provider, verify them, send an external test, and inspect the authentication identities. Then monitor DMARC and delivery data for drift.
The Sendmux dashboard is a central place where you can find all the important information about your domain, like DNS records, verification status, zone files, deliverability signals, and delivery logs. If you want to access this information through the Management API, you can get details about domain records, verification, zone files, and delivery logs. To get started, check out the domain setup documentation and copy the values given for your domain, it's a good place to begin. You can find the documentation here: domain setup documentation.
Sources
The way a protocol behaves is based on the rules set out in the RFCs. For Sendmux, the specific types of records, how things are verified, the fields used in the API, and what can be monitored come from the current public documentation of the product and the descriptions found in OpenAPI.
Frequently Asked Questions
What is the "@" email address technically called?
The technical syntax is an RFC 5322 addr-spec, written as local-part@domain. In this guide, the SMTP envelope sender is supplied as the reverse-path argument to the MAIL FROM command, and the final receiving system records it in the Return-Path header.
What do SPF, DKIM and DMARC each check?
SPF checks whether a sending host is authorised for an SMTP identity, normally the MAIL FROM domain. DKIM verifies a cryptographic signature and its signing domain. DMARC passes when an authenticated SPF or DKIM domain aligns with the visible From domain.
Is DMARC really necessary?
DMARC adds alignment and domain policy to SPF and DKIM. It lets a domain owner publish requested handling for mail that fails aligned authentication and provides aggregate reporting. Receivers retain local discretion, and DMARC validates authorised use of the From domain.
Why does my SPF pass but DMARC still fails?
SPF can pass for a MAIL FROM domain that does not align with the visible From domain. DMARC then needs an aligned DKIM pass or an SPF-authenticated return path that aligns with From. Check trusted Authentication-Results produced inside the receiver's authentication boundary.
Does Sendmux support custom return path domains?
Yes. Sendmux custom sending domains include MX and SPF TXT records for a bounce subdomain, alongside DKIM records. Required DNS values, verification state, and verification actions are available in the dashboard and Management API.