Domains

Domains

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

On this page
  1. domains list
  2. domains plan
  3. domains add
  4. domains parkPlan
  5. domains park
  6. domains check
  7. domains dmarc
  8. domains apply
  9. domains sts
  10. domains remove
  11. domains postmaster
  12. domains logo
  13. domains verify
  14. domains status
  15. domains connect

mailset domains list

List an org’s domains.

Returns

With --json it prints a list of Domain objects.

In the API: POST /v1/domains.list

Usage
mailset domains list [--org <id>]
Example
mailset domains list

mailset domains plan

Show what adding a domain would change.

Admin or owner

Flags

  • <name>argumentrequired

    The domain’s name, such as example.com.

  • --sendingflagoptional

    Sending only: just the records sending needs, with MX and SPF left as they are.

Returns

With --json it prints what the API returns.

In the API: POST /v1/domains.plan

Usage
mailset domains plan <name> [--sending] [--org <id>]
Example
mailset domains plan example.com

mailset domains add

Add a domain and get its DNS records.

Admin or owner

Flags

  • <name>argumentrequired

    The domain’s name, such as example.com.

  • --sendingflagoptional

    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.

Returns

With --json it prints the Domain object.

In the API: POST /v1/domains.add

Usage
mailset domains add <name> [--sending] [--org <id>]
Example
mailset domains add example.com

mailset domains parkPlan

Show what parking a domain would change.

Admin or owner

Flags

  • <name>argumentrequired

    The domain’s name, such as example.com.

Returns

With --json it prints what the API returns.

In the API: POST /v1/domains.parkPlan

Usage
mailset domains parkPlan <name> [--org <id>]
Example
mailset domains parkPlan acme.org

mailset domains park

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

Admin or ownerPasskey

Flags

  • <name>argumentrequired

    The domain’s name, such as example.com.

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.

Returns

With --json it prints the Domain object.

In the API: POST /v1/domains.park

Usage
mailset domains park <name> [--org <id>]
Example
mailset domains park acme.org

mailset domains check

Check a domain’s DNS records now.

Flags

  • <name>argumentrequired

    The domain’s name, such as example.com.

Returns

With --json it prints the Domain object.

In the API: POST /v1/domains.check

Usage
mailset domains check <name> [--org <id>]
Example
mailset domains check example.com

mailset domains dmarc

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

Passkey

Flags

  • <name>argumentrequired

    The domain’s name, such as example.com.

  • --policyenumoptional

    The DMARC policy to publish: none, quarantine or reject. Left out: only show where it stands.

    One ofnonequarantinereject

  • --anywayflagoptional

    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.

Returns

With --json it prints what the API returns.

In the API: POST /v1/domains.dmarc

Usage
mailset domains dmarc <name> [--policy none|quarantine|reject] [--anyway] [--org <id>]
Example
mailset domains dmarc example.com --policy quarantine

mailset domains apply

Write a domain’s records to its DNS host.

Admin or ownerPasskey

Flags

  • <name>argumentrequired

    The domain’s name, such as example.com.

  • --sendingflagoptional

    Only the DKIM and bounce records: the domain sends, and its mail still arrives where it does today.

  • --only-mailsetflagoptional

    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-trackingflagoptional

    With --drop-leftovers: their tracking records too, which old links still use.

  • --anywayflagoptional

    With --drop-leftovers: without DMARC reports showing they stopped sending.

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.

Returns

With --json it prints what the API returns.

In the API: POST /v1/domains.apply

Usage
mailset domains apply <name> [--sending] [--only-mailset] [--drop-leftovers <drop-leftovers>] [--include-tracking] [--anyway] [--org <id>]
Example
mailset domains apply example.com

mailset domains sts

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

Admin or ownerPasskey

Flags

  • <name>argumentrequired

    The domain’s name.

  • --modeenumrequired

    testing: senders report TLS failures and deliver anyway. enforce: they refuse to deliver without TLS.

    One oftestingenforce

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.

Returns

With --json it prints what the API returns.

In the API: POST /v1/domains.sts

Usage
mailset domains sts <name> --mode testing|enforce [--org <id>]
Example
mailset domains sts example.com --mode enforce

mailset domains remove

Remove a domain.

Admin or ownerPasskey

Flags

  • <name>argumentrequired

    The domain’s name, such as example.com.

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.

Returns

With --json it prints what the API returns.

In the API: POST /v1/domains.remove

Usage
mailset domains remove <name> [--org <id>]
Example
mailset domains remove acme.org

mailset domains postmaster

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

Admin or ownerPasskey

Flags

  • <name>argumentrequired

    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.

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.

Returns

With --json it prints what the API returns.

In the API: POST /v1/domains.postmaster

Usage
mailset domains postmaster <name> [--token <token>] [--org <id>]
Example
mailset domains postmaster example.com

mailset domains verify

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

Admin or ownerPasskey

Flags

  • <name>argumentrequired

    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.

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.

Returns

With --json it prints what the API returns.

In the API: POST /v1/domains.verify

Usage
mailset domains verify <name> --txt <txt> [--host <host>] [--org <id>]
Example
mailset domains verify example.com --txt "google-site-verification=k3XwPq7Zr2Lm9Vt4Yb8Nc1Hd6Jf0Sg5Ua3Ee7Ww2Ii4"

mailset domains status

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

Admin or owner

Flags

  • <name>argumentrequired

    The domain’s name, such as example.com.

Returns

With --json it prints what the API returns.

In the API: POST /v1/domains.status

Usage
mailset domains status <name> [--org <id>]
Example
mailset domains status example.com

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.

Admin or owner

Flags

  • <name>argumentrequired

    The domain’s name, such as example.com.

  • --sendingflagoptional

    Only what sending needs: the DKIM and bounce records.

Returns

With --json it prints what the API returns.

In the API: POST /v1/domains.connect

Usage
mailset domains connect <name> [--sending] [--org <id>]
Example
mailset domains connect example.com