# Domains

Add a domain, check its records, and set its policies.

## mailset domains list

List an org’s domains.

```bash
mailset domains list [--org <id>]
```

With `--json` it prints a list of [Domain objects](https://mailset.app/docs/api/domains#domain).

Example:

```bash
mailset domains list
```

In the API: [POST /v1/domains.list](https://mailset.app/docs/api/domains#domains.list)

## mailset domains plan

Show what adding a domain would change.

```bash
mailset domains plan <name> [--sending] [--org <id>]
```

### Flags

- `<name>` (argument, required): The domain’s name, such as `example.com`.
- `--sending` (flag, optional): Sending only: just the records sending needs, with MX and SPF left as they are.

An admin or owner of the org can run it.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/domains#domains.plan-returns).

Example:

```bash
mailset domains plan example.com
```

In the API: [POST /v1/domains.plan](https://mailset.app/docs/api/domains#domains.plan)

## mailset domains add

Add a domain and get its DNS records.

```bash
mailset domains add <name> [--sending] [--org <id>]
```

### Flags

- `<name>` (argument, required): The domain’s name, such as `example.com`.
- `--sending` (flag, optional): Sending only: its mail keeps arriving where it does today, so it needs only the DKIM, bounce and DMARC records, and a domain key sends as the addresses it names there.

An admin or owner of the org can run it.

With `--json` it prints the [Domain object](https://mailset.app/docs/api/domains#domain).

Example:

```bash
mailset domains add example.com
```

In the API: [POST /v1/domains.add](https://mailset.app/docs/api/domains#domains.add)

## mailset domains parkPlan

Show what parking a domain would change.

```bash
mailset domains parkPlan <name> [--org <id>]
```

### Flags

- `<name>` (argument, required): The domain’s name, such as `example.com`.

An admin or owner of the org can run it.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/domains#domains.parkPlan-returns).

Example:

```bash
mailset domains parkPlan acme.org
```

In the API: [POST /v1/domains.parkPlan](https://mailset.app/docs/api/domains#domains.parkPlan)

## mailset domains park

Park a domain: no mail to or from it, and nobody can spoof it.

```bash
mailset domains park <name> [--org <id>]
```

### Flags

- `<name>` (argument, required): The domain’s name, such as `example.com`.

An admin or owner of the org can run it.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

With `--json` it prints the [Domain object](https://mailset.app/docs/api/domains#domain).

Example:

```bash
mailset domains park acme.org
```

In the API: [POST /v1/domains.park](https://mailset.app/docs/api/domains#domains.park)

## mailset domains check

Check a domain’s DNS records now.

```bash
mailset domains check <name> [--org <id>]
```

### Flags

- `<name>` (argument, required): The domain’s name, such as `example.com`.

With `--json` it prints the [Domain object](https://mailset.app/docs/api/domains#domain).

Example:

```bash
mailset domains check example.com
```

In the API: [POST /v1/domains.check](https://mailset.app/docs/api/domains#domains.check)

## mailset domains dmarc

Show a domain’s DMARC: what’s wrong with the record, its pass rate and the sources that fail.

```bash
mailset domains dmarc <name> [--policy none|quarantine|reject] [--anyway] [--org <id>]
```

### Flags

- `<name>` (argument, required): The domain’s name, such as `example.com`.
- `--policy` (enum, optional): The DMARC policy to publish: `none`, `quarantine` or `reject`. Left out: only show where it stands. One of `none`, `quarantine`, `reject`.
- `--anyway` (flag, optional): Raise it before reports show the mail passing.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/domains#domains.dmarc-returns).

Example:

```bash
mailset domains dmarc example.com --policy quarantine
```

In the API: [POST /v1/domains.dmarc](https://mailset.app/docs/api/domains#domains.dmarc)

## mailset domains apply

Write a domain’s records to its DNS host.

```bash
mailset domains apply <name> [--sending] [--only-mailset] [--drop-leftovers <drop-leftovers>] [--include-tracking] [--anyway] [--org <id>]
```

### Flags

- `<name>` (argument, required): The domain’s name, such as `example.com`.
- `--sending` (flag, optional): Only the DKIM and bounce records: the domain sends, and its mail still arrives where it does today.
- `--only-mailset` (flag, optional): Mailset is the only thing that sends as this domain: SPF names only Mailset, and every other DKIM key is deleted. For a domain that left Google or another provider for good.
- `--drop-leftovers` (\<drop-leftovers\>, optional): The old providers whose records go, by id, as `domains plan` lists them: bounce, DKIM, SPF, verification and, once mail comes here, MX. Never what Mailset wrote. A bare flag is refused with the ids found.
- `--include-tracking` (flag, optional): With --drop-leftovers: their tracking records too, which old links still use.
- `--anyway` (flag, optional): With --drop-leftovers: without DMARC reports showing they stopped sending.

An admin or owner of the org can run it.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/domains#domains.apply-returns).

Example:

```bash
mailset domains apply example.com
```

In the API: [POST /v1/domains.apply](https://mailset.app/docs/api/domains#domains.apply)

## mailset domains sts

Set a domain’s MTA-STS mode: testing or enforce.

```bash
mailset domains sts <name> --mode testing|enforce [--org <id>]
```

### Flags

- `<name>` (argument, required): The domain’s name.
- `--mode` (enum, required): `testing`: senders report TLS failures and deliver anyway. `enforce`: they refuse to deliver without TLS. One of `testing`, `enforce`.

An admin or owner of the org can run it.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/domains#domains.sts-returns).

Example:

```bash
mailset domains sts example.com --mode enforce
```

In the API: [POST /v1/domains.sts](https://mailset.app/docs/api/domains#domains.sts)

## mailset domains remove

Remove a domain.

```bash
mailset domains remove <name> [--org <id>]
```

### Flags

- `<name>` (argument, required): The domain’s name, such as `example.com`.

An admin or owner of the org can run it.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/domains#domains.remove-returns).

Example:

```bash
mailset domains remove acme.org
```

In the API: [POST /v1/domains.remove](https://mailset.app/docs/api/domains#domains.remove)

## mailset domains postmaster

Gmail’s view of a domain, from Google Postmaster Tools.

```bash
mailset domains postmaster <name> [--token <token>] [--org <id>]
```

### Flags

- `<name>` (argument, required): The domain’s name, such as `example.com`.
- `--token` (\<token\>, optional): The TXT value Postmaster Tools shows for the domain. Given, Mailset writes that record and checks it.

An admin or owner of the org can run it.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/domains#domains.postmaster-returns).

Example:

```bash
mailset domains postmaster example.com
```

In the API: [POST /v1/domains.postmaster](https://mailset.app/docs/api/domains#domains.postmaster)

## mailset domains logo

A domain’s brand logo (BIMI).

```bash
mailset domains logo <name> [--title <title>] [--certificate <certificate>] [--remove] [--file <path>] [--org <id>]
```

### Flags

- `<name>` (argument, required): The domain’s name, such as `example.com`.
- `--title` (\<title\>, optional): The brand’s name, the logo’s `<title>`. The org’s name when left out.
- `--certificate` (\<certificate\>, optional): The https URL of the logo’s VMC or CMC certificate, or `none` to take it off.
- `--remove` (flag, optional): Take the logo off the domain.
- `--file` (\<path\>, optional): The SVG, base64.

An admin or owner of the org can run it.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/domains#domains.logo-returns).

Example:

```bash
mailset domains logo example.com --file logo.svg --title Acme
```

In the API: [POST /v1/domains.logo](https://mailset.app/docs/api/domains#domains.logo)

## mailset domains verify

Add the TXT record a service asks for to prove a domain (Google, Yahoo, Apple, Microsoft, Facebook).

```bash
mailset domains verify <name> --txt <txt> [--host <host>] [--org <id>]
```

### Flags

- `<name>` (argument, required): The domain’s name, such as `example.com`.
- `--txt` (\<txt\>, required): The TXT value the service asks for, as it shows it.
- `--host` (\<host\>, optional): The name under the domain the record goes on, when the service names one. Left out: the domain itself.

An admin or owner of the org can run it.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/domains#domains.verify-returns).

Example:

```bash
mailset domains verify example.com --txt "google-site-verification=k3XwPq7Zr2Lm9Vt4Yb8Nc1Hd6Jf0Sg5Ua3Ee7Ww2Ii4"
```

In the API: [POST /v1/domains.verify](https://mailset.app/docs/api/domains#domains.verify)

## mailset domains status

A domain’s setup checklist: where each step stands and the next command for it, steps on other sites included.

```bash
mailset domains status <name> [--org <id>]
```

### Flags

- `<name>` (argument, required): The domain’s name, such as `example.com`.

An admin or owner of the org can run it.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/domains#domains.status-returns).

Example:

```bash
mailset domains status example.com
```

In the API: [POST /v1/domains.status](https://mailset.app/docs/api/domains#domains.status)

## mailset domains connect

One-click setup: a link to the DNS host’s own page, where you approve Mailset’s records once, for a host Mailset can’t write that supports Domain Connect.

```bash
mailset domains connect <name> [--sending] [--org <id>]
```

### Flags

- `<name>` (argument, required): The domain’s name, such as `example.com`.
- `--sending` (flag, optional): Only what sending needs: the DKIM and bounce records.

An admin or owner of the org can run it.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/domains#domains.connect-returns).

Example:

```bash
mailset domains connect example.com
```

In the API: [POST /v1/domains.connect](https://mailset.app/docs/api/domains#domains.connect)

---

© 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