domains
Custom domains, DNS records, catch-all. The `machinemail domains` commands: arguments, flags, examples and the API routes they call.
Custom domains, DNS records, catch-all. Also spelled domain.
| Command | Summary |
|---|---|
domains connect | Get Domain Connect setup |
domains create | Create domain |
domains delete | Delete domain |
domains get | Get domain |
domains list | List domains |
domains update | Update domain |
domains verify | Verify domain |
domains zone-file | Get zone file |
Every command also takes the global flags.
domains connect
Get Domain Connect setup.
Discovers whether the domain’s DNS provider supports Domain Connect (TXT _domainconnect.<zone> and the provider’s /v2/<zone>/settings) and has onboarded the MachineMail template (machinemail.dev/email). When it has, apply_url is a signed synchronous-flow link (RS256, key=_dck1, sig last) that opens the provider with the outstanding MX, SPF, DKIM and DMARC records prefilled. Discovery is cached on the domain (6 h; provider errors 10 min) and re-run by Verify Domain.
Requires the domain_read permission.
Arguments
<domain-id>stringRequiredFlags
--pod <pod-id>stringExamples
API
GET /v0/domains/{domain_id}/domain-connectGET /v0/pods/{pod_id}/domains/{domain_id}/domain-connectwith--pod
domains create
Create domain.
Registers the domain and returns the DNS records to publish (status: NOT_STARTED). Publish them, then call Verify Domain. A background worker re-checks PENDING and INVALID domains about every 5 minutes until 7 days after creation; a NOT_STARTED domain is only checked by Verify Domain.
A domain can be registered by one organization only (409), and the shared domain cannot be added (409). Inbox-scoped credentials cannot add domains (403).
allow_conflicting_provider, subdomains_enabled and tracking_enabled are not supported.
Requires the domain_create permission.
Flags
--pod <pod-id>string--domain <domain>string--feedback-enabledboolean--inbound-enabledboolean--client-id <id>string--catch-allboolean--catch-all-ttl-seconds <n>integer | null-d, --data <json|@file|->stringExamples
API
POST /v0/domainsPOST /v0/pods/{pod_id}/domainswith--pod
domains delete
Delete domain.
Also: machinemail domains rm.
Inboxes on the domain are not deleted.
Requires the domain_delete permission.
Arguments
<domain-id>stringRequiredFlags
--pod <pod-id>stringExamples
API
domains get
Get domain.
Requires the domain_read permission.
Arguments
<domain-id>stringRequiredFlags
--pod <pod-id>stringExamples
API
domains list
List domains.
Also: machinemail domains ls.
Requires the domain_read permission.
Flags
--pod <pod-id>string--limit <n>integer--page-token <value>string--ascendingboolean--allbooleanExamples
API
GET /v0/domainsGET /v0/pods/{pod_id}/domainswith--pod
domains update
Update domain.
Fields you omit are unchanged. subdomains_enabled and tracking_enabled are not supported.
Requires the domain_update permission.
Arguments
<domain-id>stringRequiredFlags
--pod <pod-id>string--feedback-enabledboolean--inbound-enabledboolean--catch-allboolean--catch-all-ttl-seconds <n>integer | null-d, --data <json|@file|->stringExamples
API
domains verify
Verify domain.
Checks every DNS record now, updates records[].status and status, and re-runs Domain Connect discovery. A domain.verified event is emitted when the domain becomes VERIFIED.
Requires the domain_update permission.
Arguments
<domain-id>stringRequiredFlags
--pod <pod-id>stringExamples
API
domains zone-file
Get zone file.
Requires the domain_read permission.
Arguments
<domain-id>stringRequiredFlags
--pod <pod-id>string-o, --output <file|dir|->string