Inbound Email lets you receive mail on addresses you control and route each message inside Novu. Use it to forward replies to your backend via webhooks, or deliver them to an agent for two-way conversations.
Inbound Email domains are available on Novu Cloud Team plans and above. On Enterprise self-hosted, configure verified domains and routes in the dashboard. Community self-hosted does not include this feature.
How it works#
- Add and verify a domain in the Novu dashboard (Domains).
- Point your domain’s MX record to Novu’s inbound mail servers.
- Create routes that map local-parts (for example,
support@yourcompany.com) to a destination. - When mail arrives, Novu parses the message and delivers it according to the matching route.
Add a domain#
Open Domains
In the Novu dashboard, go to Domains and click Add domain.
Enter your domain
Use a subdomain (for example, mail.yourcompany.com) or an apex domain. Apex domains require an MX record at the root; Novu warns if a conflicting CNAME is present.
Verify DNS
Add the MX record (and any other records) shown in the dashboard. Novu checks verification automatically; you can also click Verify to re-check.
Optional: Domain Connect
If your DNS host supports Domain Connect, use Auto-configure to apply MX records in one step (supported providers include Cloudflare and Vercel).
When the domain status is Verified, you can create routes.
Route types#
Each route matches an address local-part on your verified domain:
| Route type | Destination | Use when |
|---|---|---|
| Agent | An agent in your environment | Users email your agent; replies are handled by ACI and your agent handler |
| Webhook | Your outbound webhook endpoints | You want to process inbound mail in your own backend |
Catch-all routes#
Set the local-part to * to match any address on the domain that does not have a more specific route. Useful for anything@yourcompany.com routing.
Route metadata#
Each route supports optional JSON metadata. Novu includes this metadata in webhook payloads under data.object.route.data, so you can pass tenant IDs, product slugs, or routing hints without encoding them in the email address.
Webhook routes and email.received#
When a message matches a Webhook route, Novu emits an email.received event to your configured webhook endpoints.
Enable webhooks in the dashboard under Webhooks, create an endpoint, and subscribe to email.received.
The event payload includes normalized mail fields (from, to, subject, text, html, headers, attachments, threading headers) plus your domain and route metadata. See Event types - Email events for the full schema.
When the matched route address is only in the SMTP envelope (a BCC recipient not present in the visible To or Cc headers), Novu adds it to data.object.mail.bcc as an array of { address, name } entries and leaves to unchanged. The field is omitted when the matched recipient is already visible in the headers. bcc only ever contains the matched inbound address, never other envelope recipients.
Attachments#
Each item in data.object.mail.attachments is metadata plus a time-limited download URL. Fetch the file with an HTTP GET to url before expiresAt. After that timestamp the link stops working, so copy the bytes into your own storage if you need them later.
| Field | Type | Description |
|---|---|---|
filename | string | Original file name from the message |
contentType | string | MIME type, for example application/pdf |
size | number | File size in bytes |
url | string | Time-limited download URL. Issue an HTTP GET to this value |
expiresAt | string | ISO-8601 time when url stops being valid (six hours after delivery) |
content | object | null | Deprecated, use url. Raw bytes as { "type": "Buffer", "data": number[] }, or null when rehydration failed |
contentBytes | number | Deprecated, use size |
On self-hosted deployments without S3 configured, url is absent and the binary travels inline in the deprecated content field. Fall back to content when url is undefined.
See the email.received example on Event types for the full payload shape.
Do not confuse Inbound Email with Email Activity Tracking. Activity tracking receives delivery and engagement events (delivered, opened, clicked) from your outbound email provider. Inbound Email receives messages users send to you.
Agent routes#
When a message matches an Agent route, Novu forwards it to the selected agent’s email integration. Your agent handler receives the message on your bridge URL and can reply with ctx.reply().
For quick setup on Novu Cloud, agents can also use the shared @agentconnect.sh inbox provisioned during npx novu connect. For production, add a custom domain route so users email @yourcompany.com.
See Agents and providers - Email and Custom code agent setup.
Test a route#
On the domain detail page, open a route and use Send test to simulate an inbound message. Confirm delivery in HTTP Logs (source: inbound_email) or on your webhook endpoint.