Skip to content

WordPress + Postmark integration — transactional-only, on purpose

Postmark for WordPress transactional email — why the strict transactional-only policy makes deliverability better, the server token setup, and the bounce + spam-complaint handling.

Postmark is the deliberate pick for WordPress transactional mail when inbox placement matters more than marketing volume. Their stance is unambiguous: marketing email gets refused, transactional gets a dedicated IP pool, and the pool reputation stays clean because they enforce policy by terminating accounts that try to send newsletters from a transactional server. The result is the highest reliable inbox placement among the major SMTP-API vendors, at a price point that reflects it.

What’s happening

Postmark exposes its API via the Postmark mailer in WP Mail SMTP, FluentSMTP, and Post SMTP. Each “server” you create in Postmark has its own server token scoped to one stream — Transactional or Broadcasts. The transactional server token is what WordPress uses. Sending marketing-style content through it triggers an automated review and possible suspension.

Two design decisions in Postmark matter for WordPress integration:

  • Per-server tokens. You can give each WordPress site its own server, so a compromise of one site doesn’t leak credentials that send for the whole company.
  • Strict bounce policy. Hard bounces are automatically added to a suppression list. Sending to a previously-bounced address fails fast with a clear error, rather than degrading reputation silently.

DKIM and the Return-Path require setup. Postmark gives you a DKIM TXT (selector is the Postmark domain ID) and a CNAME for the Return-Path. Both are required for full authentication; skipping the Return-Path means bounces don’t route back correctly.

How to verify

dig +short TXT <pm-domain-id>._domainkey.example.com
dig +short CNAME pm-bounces.example.com
curl -s -H "X-Postmark-Server-Token: $POSTMARK_SERVER_TOKEN" \
  https://api.postmarkapp.com/server | jq '.Name, .DeliveryType'

In the Postmark dashboard, Servers > [Your server] > Activity is the source of truth — every send shows up with the recipient, status, and the receiver’s actual response. Spam Complaints and Bounces have their own tabs with the affected addresses.

Test from WordPress:

wp eval 'var_dump( wp_mail("you@example.com","sh-postmark-test","body") );'

Postmark’s Activity tab should show the send within seconds, with a status of Delivered, Opened, or Bounced.

The fix

  1. Create a transactional server in Postmark — not Broadcasts. Get its server token. If WordPress also sends newsletters, create a separate Broadcasts server with its own token, and route via FluentSMTP’s connection routing.
  2. Publish the DKIM TXT and the Return-Path CNAME exactly as Postmark gives them. Verify both in the Postmark dashboard.
  3. Configure the WordPress SMTP plugin with postmark as the mailer, the server token, and the verified From address. The token is the credential — protect it like any production secret, in wp-config.php constants.
  4. Subscribe to bounce and spam-complaint webhooks. Postmark posts to a URL of your choosing on each event. Route to a WordPress endpoint that updates user records — the same suppression-sync pattern.
  5. Do not try to send marketing content. Account reviews are fast and the suspension is real. If you have a marketing list, use Mailchimp or a Postmark Broadcasts server, not the transactional stream.
  6. Monitor the Activity Stream for the first 48 hours after cutover. Bounce rate above 5% triggers Postmark’s review process — better to catch a bad list early than to have the server suspended. On enterprise WordPress support sites, the 48-hour watch is a standard cutover artifact.

Stack Harbor recommends Postmark for enterprise WordPress support sites where password resets, order confirmations, and one-to-one notifications must land. We pair it with a separate marketing path for clients who also have a list. If your WordPress transactional mail is unreliable on a shared-IP provider, moving to Postmark is usually the audit conclusion.