# Onboarding a domain

The whole path for a new domain, in order: mail arriving in Mailset, your product sending through it, and the steps on other sites that make inboxes trust it. Replace example.com with your domain and you@example.com with your own address.

Commands are `mailset` commands you run. A step on another site gives the full URL to open. Mailset can't do it for you, so `mailset domains status` lists it as manual.

## Steps

1. 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. Run `mailset domains plan example.com`. It names your DNS host and every record Mailset will want. Nothing changes yet.
3. Run `mailset domains add example.com`. It shows the plan again and asks before adding it. Nothing changes at DNS yet. If the domain's mail stays where it is (Google Workspace, say) and Mailset only sends your product's mail, add `--sending`.
4. Put the records in DNS with `mailset domains apply example.com`. Mailset writes them where it can reach your DNS, links your host's approval page where it supports Domain Connect, or prints them to add by hand: `mailset guide dns-by-hand`. On Cloudflare, run `mailset dns connect cloudflare` first, open the link it prints and pick the account. Mail staying where it is for now (Google Workspace, say)? Add `--sending`: it writes only what sending needs and leaves MX alone.
5. Run `mailset domains check example.com` until every row says ok. The domain says `receiving` once MX and DKIM pass, and `ready` once sending passes too.
6. Add mailboxes with `mailset mailboxes add you@example.com`, and a shared one for your product's mail: `mailset mailboxes add hello@example.com --kind shared`. A sending-only domain needs none: its mail arrives elsewhere. An alias sends another address to a mailbox: `mailset aliases add support@example.com --mailbox hello@example.com`. Give Yahoo's complaint reports one too: `mailset aliases add fbl@example.com --mailbox hello@example.com`.
7. Moving from Google Workspace? Copy each mailbox's old mail with `mailset imports start you@example.com`, and read `mailset guide leaving-google` before cancelling anything.
8. Make a key for your product's server: `mailset keys create --send --mailbox hello@example.com --name "Example API"`. On a sending-only domain, make it for the domain instead, naming the addresses your product uses: `mailset keys create --send --domain example.com --from hello@example.com --name "Example API"`, and send with a `replyTo` where your team reads mail. Keep the printed `MAILSET_KEY` in your secret store for the `mailset` SDK. Then, as you need them: newsletters from a subdomain (`mailset guide sending-modes`), a `deliverBy` for sign-in codes and your plan's limits (`mailset guide sending-limits`), and a hook for bounces (`mailset guide product-events`).
9. Enforce MTA-STS, which starts in testing: once `mailset domains check example.com` shows clean TLS reports, run `mailset domains sts example.com --mode enforce`. Mailset refuses it until your MX is Mailset's, the policy is really served and the reports are clean.
10. Move DMARC to quarantine, then reject, once reports show your mail passing: `mailset guide dmarc`.
11. Add your brand logo: `mailset guide logo`.
12. Add the domain to Gmail Postmaster Tools: `mailset guide postmaster`.
13. Optional: Yahoo Sender Hub and its complaint reports: `mailset guide yahoo`.
14. Give each sending address a Google account photo, so Gmail shows a picture beside your mail: `mailset guide sender-photos`.
15. When everything sends through Mailset, retire the old provider: `mailset guide old-provider`.
16. Optional: run the org's AI on its own Anthropic key, pick a model per feature, or turn AI off: `mailset guide ai`.

## Check

Run `mailset domains status example.com`. Each row says `ok`, `todo`, `manual` or `info`, with the next step: a `mailset` command, or `mailset guide <topic>` for a step on another site. You're done when every row is `ok` or `info` and you've done each `manual` row yourself. `--json` gives the rows as data.

## Watch out

- Leaving another provider, order matters: new records go live first, then your code, then the old keys, then the old DNS records, then the account. Deleting old records first breaks whatever still sends.
- Every app key, campaign domain and mailbox has a brake that stops it on complaints or bounces: `mailset guide brakes`.
- A new org starts on a trial. To keep sending outside your domains and Mailset's AI after it, an owner upgrades: `mailset guide billing`.
- Everyone signs in with a passkey. For Windows, Android or a second computer, and a passkey per device: `mailset guide passkeys`.
- A record you add by hand counts only once `mailset domains check` sees it on your domain's own nameservers. DNS hosts can take a few minutes to publish a change.

---

© 2026 Intenseloop, Inc. Mailset’s site, docs and guides are copyrighted. You may read them and use their code to build with Mailset. Don’t republish them or use them to build a copy of Mailset. Terms: https://mailset.app/terms#content