Postmark: DKIM, Return-Path and DMARC setup
Your app sends through Postmark, and a receiver reports a DKIM or DMARC failure. Postmark needs two records: a DKIM key, so it signs as your domain, and a custom Return-Path, so SPF matches your domain.
The DNS records Postmark asks for
Add your domain under Sender Signatures, open its DNS Settings, and copy the records from there. example.com is your domain.
- TXT
Name
<selector>._domainkey.Valueexample.com v=DKIM1; k=rsa; p=<public key>DKIM. Copy the host name exactly: in Postmark's examples the selector is a long number followed bypm. - CNAME
Name
pm-bounces.example.comValuepm.mtasv.netCustom Return-Path.pm-bouncesis Postmark's default name. The target already carries SPF for Postmark. - TXT
Name
_dmarc.example.comValuev=DMARC1; p=none; rua=mailto:[email protected]Your DMARC record, if you don't have one yet. Start withp=none.
You don't need to add Postmark to the SPF record at example.com. SPF is checked on the Return-Path domain, and Postmark's Return-Path already passes.
Which check aligns with DMARC
- No: SPF does not align by default. Postmark's default Return-Path is
[email protected]. SPF passes, but for pm.mtasv.net, not for your domain. - Yes: SPF aligns with a custom Return-Path once the CNAME verifies, with relaxed SPF alignment. Postmark says
aspf=scan't work, because the Return-Path is always a subdomain. - Yes: DKIM aligns once the DKIM record verifies: Postmark then signs with your domain.
DKIM alignment alone is enough for DMARC to pass. The custom Return-Path adds SPF alignment as a second path.
Common mistakes
- The DNS host adds your domain twice. The record ends up at
…pm._domainkey.example.com.example.com. Enter the host name without.example.com. - An SPF TXT record on the Return-Path name. A name with a CNAME can't have other records. It doesn't need one: the CNAME target handles SPF.
- Cloudflare proxy. Postmark says to set the Return-Path CNAME to DNS only (grey cloud), because proxying can block verification.
- A DNS host that limits TXT length. The DKIM key is long. If your host won't take it, ask the host about splitting the value into strings.
Check your setup
- Check your domain with MailDoctor (form below) for SPF, DMARC and the rest.
- Check the key with the DKIM key checker. The selector is the part of the DKIM host name before
._domainkey. - Send yourself a message through Postmark and paste its headers into the email header analyzer. The Return-Path should be on your
pm-bouncessubdomain, and DKIM should show your domain.
Marketing mail: on Broadcast message streams, Postmark adds the one-click List-Unsubscribe and List-Unsubscribe-Post headers by default. See How to include a List-Unsubscribe header.
Sources, checked 27 November 2026: How do I verify a domain? · How do I add a custom Return-Path? · How do I set up SPF for Postmark? · Setting up DKIM for your domain · My DKIM record won't verify
Check the domain you send from. Grade, problems and the exact records to fix them.