Inbound routes

Inbound routes

Email to a subdomain, delivered to your webhook.

On this page
  1. routes list
  2. routes add
  3. routes check
  4. routes apply
  5. routes rotate
  6. routes remove

mailset routes list

List the inbound routes: domains whose mail goes to a webhook.

Admin or owner

Returns

With --json it prints a list of Inbound route objects.

In the API: POST /v1/routes.list

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

mailset routes add

Send every message to a subdomain to a webhook.

Admin or ownerPasskey

Flags

  • <domain>argumentrequired

    The route’s domain: every address at it goes to the hook.

  • --url<url>required

    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.

In the API: POST /v1/routes.add

Usage
mailset routes add <domain> --url <url> [--org <id>]
Example
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.

Admin or owner

Flags

  • <domain>argumentrequired

    The route’s domain: every address at it goes to the hook.

Returns

With --json it prints the Inbound route object.

In the API: POST /v1/routes.check

Usage
mailset routes check <domain> [--org <id>]
Example
mailset routes check in.example.com

mailset routes apply

Write a route’s MX to its DNS host.

Admin or ownerPasskey

Flags

  • <domain>argumentrequired

    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.

In the API: POST /v1/routes.apply

Usage
mailset routes apply <domain> [--org <id>]
Example
mailset routes apply in.example.com

mailset routes rotate

Make a route a new signing secret; the old one stops at once.

Admin or ownerPasskey

Flags

  • <domain>argumentrequired

    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.

In the API: POST /v1/routes.rotate

Usage
mailset routes rotate <domain> [--org <id>]
Example
mailset routes rotate in.example.com

mailset routes remove

Remove a route; mail still waiting for its hook is dropped.

Admin or ownerPasskey

Flags

  • <domain>argumentrequired

    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.

In the API: POST /v1/routes.remove

Usage
mailset routes remove <domain> [--org <id>]
Example
mailset routes remove in.example.com