Endpoints and routes
Where mail can go besides the Inbox, and the difference between a route and a rule.
Endpoints
Named places mail can be sent: Slack, Discord, a webhook or a forward. Create them in Mail routing → Destinations; each has a name rules call it by. Send a test from its ⋯ menu.
| Type | Call it as | Notes |
|---|---|---|
| Slack | endpoints.support({ text }) | An incoming webhook URL from Slack. Stored encrypted; mentions and link previews are off. |
| Discord | endpoints.alerts({ content }) | A webhook URL from Discord. Stored encrypted; mentions are off. |
| Webhook | endpoints.crm(payload?) | Signed JSON to your HTTPS URL; the signing secret is shown once. Without a payload it gets the whole message event. |
| Forward | endpoints.team() | Forwards the whole email, attachments included, once its recipient confirms by email. A route can forward too. |
Routes or rules?
A route sends every message for an address, whole, to inboxes, webhooks and forwards. Every address has one: by default, its own Inbox. Edit it from the address’s page (Where mail goes → Change) or from a catch-all or wildcard row.
A rule chooses: which mail, and what to send. Slack and Discord posts are only sent by rules, because a channel post needs a message written for it. If a rule calls a webhook the route also delivers to, with a payload of its own, that webhook gets the rule’s payload instead of the whole message, once per message.
Catch-all
Mail for an address that doesn’t exist on the domain follows the domain’s catch-all, set on its page in Domains: store it without an inbox, or create an address for each new recipient. A *@domain route takes precedence.