Bouncewise

Bouncewise › Guides › Custom Return-Path domain: why and how to set it up

Email delivery guide

Custom Return-Path (bounce) domain: why and how to set it up

Updated · 2 min read

Short answer

The Return-Path is the envelope sender where bounces go, and it is the domain SPF checks. By default your provider uses its own domain, so SPF passes for them but does not align with your From address for DMARC. A custom Return-Path is a subdomain of yours (on Postmark, a CNAME such as pm-bounces.example.com pointing to pm.mtasv.net) that makes SPF pass in alignment.

  1. Choose a subdomain Use an unused subdomain of your From domain, such as pm-bounces.example.com on Postmark.
  2. Add the CNAME Point it at your provider's bounce host (pm.mtasv.net for Postmark), DNS-only, with no other records at that name.
  3. Enter it in your provider In Postmark: Sender Signatures, the domain, DNS Settings, Return-Path section.
  4. Verify Run the provider's verification once dig shows the CNAME.
  5. Check a sent message Confirm the Return-Path ends in your subdomain and SPF passes for it.

What the Return-Path is and why it matters

Every message has two senders. The From header is what people see. The envelope sender (SMTP MAIL FROM) is where bounce reports go; receivers record it as the Return-Path header. SPF checks the envelope sender's domain, not the From.

DMARC passes if SPF or DKIM passes on a domain aligned with the From. With the provider's default Return-Path you rely entirely on DKIM. That works until something breaks DKIM: a key rotated wrongly, a DNS change, or a system that modifies the message. A custom Return-Path gives you a second, independent aligned pass.

It also tidies what recipients see: Gmail's message details show the envelope domain under "mailed-by", and with a custom Return-Path that is your domain.

Bounce processing is unchanged. The subdomain points at your provider, so bounce reports still reach it and still feed its suppression list; you do not need to run a mail server for the bounce domain.

Set it up on Postmark

Postmark's default hostname is pm-bounces. Add one CNAME at your DNS host:

pm-bounces.example.com.  CNAME  pm.mtasv.net.

Then in Postmark open Sender Signatures, choose the domain, open DNS Settings and enter the subdomain in the Return-Path section, and verify. If your DNS host adds the zone automatically, enter only pm-bounces as the name; otherwise you end up with pm-bounces.example.com.example.com.

Domains screen with the Return-Path record pm-bounces pointing to pm.mtasv.net and its verification status
The Return-Path CNAME and whether it has verified.

The equivalent on other providers

  • Resend: the Return-Path defaults to send.example.com, set up by the MX and TXT records on that subdomain when you add a domain. You can choose a custom path.
  • SendGrid: domain authentication creates an em1234.example.com CNAME (number varies) that carries SPF for your domain, so you get an aligned Return-Path as part of the standard setup.
  • Mailgun: you add v=spf1 include:mailgun.org ~all to the sending domain itself (for example mg.example.com). Check Mailgun's current docs for how it sets the envelope sender on your domain.

Whatever the provider, the subdomain must sit under the same organisational domain as your From address. A bounce domain on example-mail.com will not align with From: [email protected].

Gotchas and how to confirm

  • A CNAME cannot share its name with other records. Do not put an MX or TXT record on pm-bounces.example.com; pick an unused subdomain.
  • Proxying. If your DNS host offers a proxy (Cloudflare's orange cloud), keep these records DNS-only.
  • One Return-Path per provider. Do not reuse the same bounce subdomain for two providers; give each its own, such as pm-bounces.example.com and send.example.com.
  • Stale records after a DNS move. When you change DNS host, the Return-Path CNAME is the record most often forgotten. Mail keeps flowing, but SPF quietly stops aligning.

Confirm with dig +short CNAME pm-bounces.example.com, which should print pm.mtasv.net., then send a message and check its headers: the Return-Path address should end in @pm-bounces.example.com, and Authentication-Results should show spf=pass with smtp.mailfrom on that subdomain.

Questions

Do I need a custom Return-Path if DKIM already passes?

DMARC will pass with aligned DKIM alone. The custom Return-Path is a second aligned pass, which keeps DMARC working if DKIM breaks.

Will bounces still reach my provider?

Yes. The CNAME points the subdomain at the provider's servers, so bounce processing works as before.

Can I use the root domain as the Return-Path?

Not with a CNAME, because the root of a domain cannot be a CNAME and usually already has MX and TXT records. Use a subdomain.

Sources