Migration · Postmark

Move from Postmark without changing the mailer.

A practical Postmark to Transmitly migration: swap SMTP credentials, map API fields and webhook events, then run both before cutover.

Postmark's SMTP endpoint is a migration route, and Transmitly supports the same pattern. Change the host and credentials for a fast cutover, or map the API fields and webhook events when the application is ready. Keep the Postmark stream separation when you move.

Fastest path: SMTP

Postmark uses smtp.postmarkapp.com for transactional mail and a separate host for broadcasts. Transmitly uses one submission host and distinguishes transactional and marketing with the stream field or the X-Transmitly-Stream header.

  • Postmark's Server API token can act as both username and password; replace both with the Transmitly username and key.
  • If the app uses a Postmark SMTP token, replace the access key and secret with apikey and the Transmitly key.
  • Port 587 uses STARTTLS; port 465 uses implicit TLS.
  • Use X-Transmitly-Stream to keep transactional and marketing traffic separated.
environment variables
# before (transactional)
SMTP_HOST=smtp.postmarkapp.com
SMTP_PORT=587
SMTP_USER=POSTMARK_SERVER_TOKEN
SMTP_PASSWORD=POSTMARK_SERVER_TOKEN

# after
SMTP_HOST=mail.transmitly.io
SMTP_PORT=587
SMTP_USER=apikey
SMTP_PASSWORD=txk_...

If you use the API

Postmark's single-email endpoint maps to one Transmitly message. The server token header goes away; the Transmitly key authenticates the request. Postmark Tag is one value per message; Transmitly tags are a key/value object.

  • From, To, Subject, HtmlBody and TextBody map to from, to, subject, html and text.
  • Postmark Tag maps to one key in the Transmitly tags object.
  • Postmark Metadata and X-PM-Metadata-* headers have no direct field; keep them in headers or your own store.
  • Postmark Attachments map to the Transmitly attachment array; verify binary field names before moving uploads.
  • Message stream selection maps to the Transmitly stream field. Do not send a broadcast on the transactional stream.
Transmitly request
POST /v1/emails
{
  "from": "Acme <[email protected]>",
  "to": ["[email protected]"],
  "subject": "Your receipt",
  "html": "<p>Thanks for the payment.</p>",
  "stream": "transactional",
  "tags": { "flow": "receipt" }
}

Webhook mapping

Postmark posts a typed webhook per event. Transmitly emits signed events per state change and keeps deferred attempts separate from hard failures.

  • Delivery → email.delivered_to_mx
  • Bounce → email.bounced
  • SpamComplaint → email.complained
  • Open → email.opened
  • Click → email.clicked
  • SubscriptionChange → a preference change, not a delivery event; handle it in your subscription flow
  • Inbound → a Transmitly inbound route or inbox event

Domain authentication and dual-run

Verify the domain in Transmitly and publish the ownership TXT plus SPF, DKIM and DMARC records. A subdomain keeps the old and new authentication records separate while both providers are active.

Postmark accepts SMTP messages before all validation completes. Transmitly returns 250 only after the durable transaction commits, but delivery to MX is still a later event. Compare both event streams before moving volume.

  • Use a test-only key for staging and the synthetic @transmitly.test addresses.
  • Confirm the new webhook signature before enabling production consumers.
  • Keep the Postmark server token and webhook configuration until the dual-run closes.
  • Roll back by restoring the old host and credentials.

What changes after cutover

Accepted, delivered-to-MX, deferred, bounced and complained stay separate, with per-recipient state and replay. The transactional and marketing streams remain isolated, but the separation is part of the same workspace instead of two SMTP hosts.

Questions

Common questions

+Can I keep Postmark active during the migration?

Yes. Keep the server token and webhook configuration active, run a controlled flow through both providers, and compare delivery, bounce and complaint events before moving volume.

+Does the Postmark Tag map directly?

Postmark allows one tag per message. Transmitly uses a key/value tags object, so map the Postmark tag to one key and add any other delivery labels as additional tags.

+How do message streams map?

Postmark uses separate transactional and broadcast SMTP hosts. Transmitly uses one submission host with a stream field or X-Transmitly-Stream header. Keep marketing mail on the marketing stream.

+Do I need to change DNS?

Yes. Verify the sending domain in Transmitly and publish SPF, DKIM and DMARC. A subdomain keeps the old and new records separate during a dual-run.

Related

See what the remote MX actually said.

Start free, verify a domain and send a test. Acceptance and delivery evidence stay separate.