Leaving your old provider

Move every sender off your old provider, then its records and account.

mailset guide old-provider
9 stepsOn this page
  1. Steps
  2. Setup
  3. 1List everything that sends
  4. 2Get the new records live
  5. 3Move your code to Mailset
  6. 4Delete the old API keys
  7. 5Check nothing still sends
  8. 6Make Mailset the only sender
  9. 7Remove what the provider left
  10. 8Delete its records by hand
  11. 9Close the old account
  12. Check
  13. Watch out

Every sender moved to Mailset, the old records gone from your DNS and the old account closed, in an order that never breaks mail still going out. Replace example.com with your domain.

The order: new records live first, then your code, then the keys, then the old DNS records, then the account.

Steps

  1. Install the CLI and sign in

    Sign inSign in with a passkey

    Press Sign in with a passkey and approve it on this device, your phone or a password manager. Mailset has no passwords.

    Open in Mailset

    The command

    Install the CLI on macOS or Linux with brew install intenseloop/tap/mailset or npm install -g @mailset/cli.

    Run mailset login, open the link it prints and approve with your passkey.

    In a terminal, login also offers your agents the Mailset skill; mailset agents add does it later.

    Install the CLI on macOS or Linux with brew install intenseloop/tap/mailset or npm install -g @mailset/cli.

    Run mailset login, open the link it prints and approve with your passkey.

    In a terminal, login also offers your agents the Mailset skill; mailset agents add does it later.

  2. List everything that sends

    List everything that sends as example.com. Search your repositories and secret stores for the provider's name and the names of its keys.

    Sends as example.com
  3. Get the new records live

    SettingsDomainsRecords

    Press Add domain for each sending domain, and wait until its row passes before you touch an old record. Mailset checks every few hours.

    Open in Mailset

    The command

    Add each sending domain with mailset domains add example.com, and wait until mailset domains check example.com passes before you touch any old record.

    Mail staying where it is for now? mailset domains apply example.com --sending writes only what sending needs.

    Add each sending domain with mailset domains add example.com, and wait until mailset domains check example.com passes before you touch any old record.

    Mail staying where it is for now? mailset domains apply example.com --sending writes only what sending needs.

  4. Move your code to Mailset

    SettingsDeliveryFrom

    Type example.com under From and search. The delivery log lists each message your new code sent and whether it was delivered.

    Open in Mailset

    The command

    Switch your code to the Mailset SDK (mailset guide sending-modes), deploy it, and watch delivery with mailset delivery search --sender example.com.

    Switch your code to the Mailset SDK (mailset guide sending-modes), deploy it, and watch delivery with mailset delivery search --sender example.com.

  5. Delete the old API keys

    Delete the old API keys at the provider.

    Your old provider
  6. Check nothing still sends

    Check the provider's own dashboard or API for anything sent in the last few days. Zero sends means nothing is left.

    Your old provider
  7. Make Mailset the only sender

    Dropping other senders takes the command.

    Run mailset domains apply example.com --only-mailset.

    SPF then names only Mailset, and every other DKIM key on the domain is deleted.

    It refuses a domain that only sends: mail has to come to Mailset.

    Without a DNS host Mailset can write to, take the provider's include: out of SPF and delete its DKIM records by hand.

    Hand it to your agent

    Run mailset domains apply example.com --only-mailset.

    SPF then names only Mailset, and every other DKIM key on the domain is deleted.

    It refuses a domain that only sends: mail has to come to Mailset.

    Without a DNS host Mailset can write to, take the provider's include: out of SPF and delete its DKIM records by hand.

    Terminal
  8. Remove what the provider left

    Leftover records are found by the command.

    Run mailset domains plan example.com.

    On a zone Mailset can read, it lists what each old provider left (bounce, DKIM, SPF, verification, MX, tracking) and whether DMARC reports show it still sending.

    Drop only the providers you left, by the plan's ids: mailset domains apply example.com --drop-leftovers sparkpost.

    Without --anyway, it refuses one still sending or one no report can tell about.

    It keeps the old MX until mail comes to Mailset, and every record of a provider whose MX is still live.

    Hand it to your agent

    Run mailset domains plan example.com.

    On a zone Mailset can read, it lists what each old provider left (bounce, DKIM, SPF, verification, MX, tracking) and whether DMARC reports show it still sending.

    Drop only the providers you left, by the plan's ids: mailset domains apply example.com --drop-leftovers sparkpost.

    Without --anyway, it refuses one still sending or one no report can tell about.

    It keeps the old MX until mail comes to Mailset, and every record of a provider whose MX is still live.

    Terminal
  9. Delete its records by hand

    Where Mailset can't read your zone, delete what the provider left yourself: CNAMEs that point at its domain (sparkpostmail.com, sendgrid.net, mailgun.org, mtasv.net), DKIM keys under _domainkey other than Mailset's ms1 and ms2, its include: in SPF, verification TXT records such as mandrill_verify.…, and MX records that point at it.

    Your DNS host
  10. Close the old account

    Close the provider account in its dashboard.

    The order

Check

mailset domains plan example.com lists nothing an old provider left, and mailset domains dmarc example.com shows no failing source that used to be the provider, a few days after step 6. mailset domains status example.com lists this step as manual: Mailset can't see the old account.

Watch out

  • Never delete a sender's records until step 5 shows it stopped. We broke an outreach tool's DKIM by deleting first.
  • --only-mailset deletes every DKIM key that isn't Mailset's, a help desk's or a billing tool's included. Move those first, or add their records again after.
  • Keep any link-tracking host that mail you already sent still points at, or the links in that mail break. That's why --drop-leftovers leaves tracking records alone unless you add --include-tracking.