Inbound routes
Email to a subdomain, delivered to your webhook.
mailset routes list
List the inbound routes: domains whose mail goes to a webhook.
Returns
With --json it prints a list of Inbound route objects.
mailset routes list [--org <id>]
mailset routes list
mailset routes add
Send every message to a subdomain to a webhook.
Flags
The route’s domain: every address at it goes to the hook.
Where each message is POSTed: an https URL on a public host name.
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.
mailset routes add <domain> --url <url> [--org <id>]
mailset routes add in.example.com --url https://app.example.com/hooks/inbound
mailset routes check
Check that a route’s MX points at Mailset.
Flags
The route’s domain: every address at it goes to the hook.
Returns
With --json it prints the Inbound route object.
mailset routes check <domain> [--org <id>]
mailset routes check in.example.com
mailset routes apply
Write a route’s MX to its DNS host.
Flags
The route’s domain: every address at it goes to the hook.
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 Inbound route object.
mailset routes apply <domain> [--org <id>]
mailset routes apply in.example.com
mailset routes rotate
Make a route a new signing secret; the old one stops at once.
Flags
The route’s domain: every address at it goes to the hook.
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.
mailset routes rotate <domain> [--org <id>]
mailset routes rotate in.example.com
mailset routes remove
Remove a route; mail still waiting for its hook is dropped.
Flags
The route’s domain: every address at it goes to the hook.
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.
mailset routes remove <domain> [--org <id>]
mailset routes remove in.example.com