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
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.
The command
Install the CLI on macOS or Linux with
brew install intenseloop/tap/mailsetornpm 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 adddoes it later.Install the CLI on macOS or Linux with
brew install intenseloop/tap/mailsetornpm 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 adddoes it later.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.
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.
The command
Add each sending domain with
mailset domains add example.com, and wait untilmailset domains check example.compasses before you touch any old record.Mail staying where it is for now?
mailset domains apply example.com --sendingwrites only what sending needs.Add each sending domain with
mailset domains add example.com, and wait untilmailset domains check example.compasses before you touch any old record.Mail staying where it is for now?
mailset domains apply example.com --sendingwrites only what sending needs.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.
The command
Switch your code to the Mailset SDK (
mailset guide sending-modes), deploy it, and watch delivery withmailset delivery search --sender example.com.Switch your code to the Mailset SDK (
mailset guide sending-modes), deploy it, and watch delivery withmailset delivery search --sender example.com.Delete the old API keys
Delete the old API keys at the provider.
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.
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.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.
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_domainkeyother than Mailset'sms1andms2, itsinclude:in SPF, verification TXT records such asmandrill_verify.…, and MX records that point at it.Close the old account
Close the provider account in its dashboard.
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-mailsetdeletes 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-leftoversleaves tracking records alone unless you add--include-tracking.