Move from another provider

PostHog imports what you built with another email provider: your suppression list, unsubscribes, templates, and, for some providers, contacts and automations. Then you move your sending over one email at a time.

Ask your agent

With the PostHog MCP connected, your coding agent runs the import, checks what it flagged, and switches your code over:

“Move our email from Resend to PostHog.”

Or import in PostHog

Go to Messaging > Opt-outs and click Import from another tool. Pick your provider, paste an API key, pick what to import, and click Start import.

The Import from another tool window on the Opt-outs tab, with the list of providers

The import runs in the background, and PostHog only reads from your account. It deletes the key when the import ends, so paste it again for each import. Customer.io is the exception: PostHog keeps its key, so you can import again or keep opt-outs in sync.

Pick your provider

ProviderSuppressions and unsubscribesTemplatesContactsAutomations
ResendYesYesYesYes
Customer.ioYesWith their campaignsYesYes
PostmarkYesYesNoPostmark has none
SendGridYesYesYesRebuild them
MailgunYesYesYesMailgun has none
MailchimpYesYesYesRebuild them

Imported contacts match people in PostHog by email. Each person the import creates or updates counts as an event on your bill.

Switch over safely

  1. Set up your domain. PostHog needs its own DNS records, even for a domain that already sends. Keep your old provider's records while you move.
  2. Import. The import brings over suppressions and unsubscribes first, so nobody who opted out gets an email.
  3. Fix what the import flagged. Each template and automation lists anything that didn't convert cleanly. Send yourself a test.
  4. Move your code one email at a time. Start with a low-risk email, and send it with the server SDK.
  5. Turn on each automation as you turn off the old one. Imported automations are drafts, and never send until you turn them on. Switch both at the same time, so nobody gets the same email twice.
  6. Ramp up slowly. Mailbox providers slow down a sender whose volume jumps. Check your sending allowance first.
  7. Clean up. Once nothing sends through the old provider, remove its DNS records and delete the API key.

Importing again adds what's new. Templates and categories that are already in PostHog stay as they are.

Still have questions?

Was this page useful?