Postmark · Domain authentication
Postmark mail fails DMARC: add DKIM and the custom Return-Path
DMARC passes when either SPF or DKIM passes and aligns with your From domain. With no DKIM record published, Postmark does not sign for your domain — and without a custom Return-Path, SPF cannot align either. Fix both legs and DMARC has two ways to pass.
The fast answer
Do not add a guessed SPF record and hope. Postmark authentication is two records: the DKIM TXT record from your Postmark account, and the custom Return-Path CNAME (pm-bounces pointing to pm.mtasv.net). DMARC passes when either leg aligns, so a verified DKIM record alone can carry it — but the Return-Path adds aligned SPF, so DMARC still passes if the DKIM leg is ever questioned. If your mail fails DMARC, one or both of these records is missing or unverified.
What you are looking at, in plain words
Every message carries two “from” addresses: the visible From address your customer sees, and the envelope Return-Path address that receives bounces. DMARC compares the domain of each passing check against the visible From domain. Postmark’s default Return-Path is [email protected] — Postmark’s domain, not yours. So SPF can pass (Postmark’s servers are authorised for Postmark’s domain) while still failing DMARC alignment for your domain. A custom Return-Path puts the bounce address on your domain, and Postmark still collects the bounces through the CNAME. One aligned leg is enough for DMARC to pass, so verified DKIM on its own can carry it — the Return-Path is what gives DMARC a second aligned leg, and it is the only leg you have until DKIM verifies, because Postmark only starts signing for your domain once the DKIM record verifies.
Step 0 — Prove which part is failing
- Send a Postmark message to an address you control and read its full headers. Look for three lines: the
Return-Pathheader, thespf=verdict with its domain, and thedkim=verdict with its domain. - Classify the failure. If the Return-Path domain is
pm.mtasv.net, you have no custom Return-Path — that is the gap on the SPF leg. If DKIM shows fail or “no key”, the DKIM record itself is missing or mistyped — and with neither leg aligned, DMARC fails. - Check Postmark’s DNS Settings page for the domain. It shows the DKIM and Return-Path records separately, with a Verify step for each. Do not guess values: the DKIM hostname and key are unique to your domain.
The fixes, in order
- Add the domain in Postmark. In Sender Signatures, add the domain (for a whole domain) rather than a single address if you send from several addresses on it. Note that for full domain verification, Postmark requires the DKIM record; for a single sender signature, DKIM is strongly recommended but not mandatory to send.
- Publish the DKIM TXT record exactly as Postmark shows it. Copy the hostname (it looks like a long selector ending in
._domainkey, for example2023060112345pm._domainkeyin Postmark’s own example) and the value (startingv=DKIM1; k=rsa; p=...). If your DNS panel appends your domain automatically, enter only the selector plus._domainkey— for example2023060112345pm._domainkey— without your domain, or you will create a doubled name that never verifies. - Publish the custom Return-Path CNAME. Add a CNAME with host
pm-bounces(Postmark’s default alias; you may choose another alias, but it must match what you enter in Postmark) pointing topm.mtasv.net. Then enter that alias in Postmark’s Return-Path section for the domain. This CNAME is what lets Postmark keep collecting bounces while the envelope address carries your domain. - Set Cloudflare CNAMEs to DNS-only. Postmark’s DKIM guide calls this out directly: a proxied (orange-cloud) CNAME interferes with verification. Set the Return-Path CNAME to DNS-only (grey cloud).
- Verify each record in Postmark. Click Verify on the DNS Settings page. If DKIM shows “Not Verified”, Postmark itself notes DNS changes can take from a few minutes to 24 hours to propagate — and its automatic check can take up to 48 hours, so use the Verify button for a manual check rather than waiting. Also check for leading or trailing spaces and for TXT string-splitting limits on older DNS panels before re-creating anything.
- Add DMARC separately, once, at monitoring first. Postmark does not publish your DMARC record in your DNS for you — its free DMARC monitoring tool can generate the record text, but you add it yourself as one TXT record at
_dmarc, atp=nonewith a reporting address. Confirm Postmark mail shows as aligned in reports, and only then tighten the policy.
Prove it worked
Send another Postmark message and read its headers: the Return-Path should now read [email protected] (or your chosen alias), spf=pass for your domain, dkim=pass for your domain, and dmarc=pass. In Postmark, both the DKIM and Return-Path rows should show verified. Keep the test message — it is your before-and-after proof if deliverability is questioned later.
Still not working? Work this ladder in order
- DKIM still “Not Verified” after 48 hours. Click Verify for a manual check first — Postmark’s automatic check can take up to 48 hours. Then check for typos and spaces in the pasted value, a doubled hostname from auto-appending panels, and TXT length limits (ask your DNS provider about string splitting rather than shortening the key yourself).
- Return-Path verifies but headers still show Postmark’s domain. The alias in Postmark does not match the CNAME host you published, or you are sending from a different domain than the one you configured. Check both sides use the same alias and the same sending domain.
- Both verify but DMARC still fails. Check the visible From domain matches the authenticated domain exactly, and that you have not published two DMARC records. Also check your DMARC record’s alignment mode: with strict mode (
aspf=soradkim=s) a subdomain must match exactly, so the custom Return-Path subdomain will not satisfy strict SPF alignment — relaxed mode, the default, allows it. Read the aggregate report for that message: it names which identifier failed alignment. - Mail goes to spam despite passing headers. Authentication is now correct; the remaining causes are content, list quality, volume, and reputation. Do not “fix” working DNS to chase a spam-folder problem.
Mistakes that make it worse
- Reading “SPF pass” in headers as DMARC alignment — SPF passes for Postmark’s domain, not yours, until the custom Return-Path is in place.
- Adding a guessed SPF include for Postmark instead of the Return-Path CNAME.
- Leaving the Return-Path CNAME proxied on Cloudflare.
- Copying another account’s DKIM selector and key.
- Publishing a second DMARC record instead of editing the one that exists.
FAQ — Postmark domain authentication, answered
Do I need to add an SPF record for Postmark?
Not for ordinary sending: Postmark handles SPF for you by default, and its own DKIM guide says so. What you do need for DMARC alignment is the custom Return-Path CNAME. Add a separate SPF include only if a specific Postmark document for your use case asks for one — do not guess one.
What is the custom Return-Path, in plain words?
It is the envelope address receivers reply bounces to. Without it, Postmark’s default Return-Path uses Postmark’s own domain, so SPF passes for Postmark’s domain and cannot align with your From domain. With a custom Return-Path on your domain, SPF can both pass and align.
Why does Postmark say DKIM is required for a whole domain but only recommended for a single address?
A single sender signature is confirmed by an email to that address, so Postmark can let you send with DKIM recommended but optional. Verifying a whole domain authorises every address on it, so Postmark requires the DKIM record before the domain verifies.
Sources
Postmark support — Getting started with Postmark (DKIM + custom Return-Path as the two authentication steps; pm.mtasv.net and pm-bounces alias) · Setting up DKIM for your domain (per-domain hostname/value, host auto-append trap, Cloudflare DNS-only, propagation window) · How do I add a custom Return-Path? (default Return-Path, alignment explanation) · How do I verify a domain? (DKIM + Return-Path Verify buttons, verification within 48 hours, signing starts after DKIM verifies) · DMARC FAQ (Postmark’s free DMARC record generator, _dmarc TXT record) · DMARC reporting tool FAQ (DMARC needs either SPF or DKIM aligned).
Did this fix work for you?
Your reaction is stored only in your own browser — it is not sent to us.