Receive email
Free inbox on your own domain for your team or AI agent: addresses, replies, signed webhooks, forwarding, API and MCP.
Maillayer can receive email on your own domain, for your team or your AI agent: support@, agent@, invoices@. Read and reply in the dashboard, get each email on a webhook, forward it to another mailbox, or read it with the API and MCP. Receiving is free; a reply or a forward counts as one email from your plan.
Turn on receiving#
- Open Inbox → Addresses. Any domain you've verified for sending is listed.
- Pick the host mail should arrive on. The default,
inbound.acme.com, keeps the email you already get onacme.com(Google Workspace, Zoho, Outlook) working. Leave it empty to use the domain itself, only if nothing receives mail there yet. - Add the one
MXrecord shown at your DNS provider. Maillayer checks every minute and shows receiving once it's in place.
| Type | Name | Priority | Value |
|---|---|---|---|
MX | inbound.acme.com | 10 | The mail server shown in your dashboard |
Set up receiving email on acme.com and tell me which DNS record to add.
Addresses#
- Add as many as you need (up to 100), like
[email protected].hello@is created for you. *is a catch-all: mail to any address without its own entry lands there. Without one, that mail is dropped.- Plus addressing works:
support+billing@goes tosupport@. - Each address can have a name for replies, a webhook URL and a forwarding address.
Reading and replying#
The Inbox groups email into conversations. Replies go out from the address the email was sent to and stay in the same conversation. When mail arrives on a subdomain, a reply is sent from your sending domain ([email protected]) with Reply-To set back to [email protected], so the answer comes back to Maillayer.
- HTML email is shown in a sandbox without scripts. Remote images stay hidden until you click Show images.
- If the sender's SPF, DKIM or DMARC check failed, the email shows a warning.
- Email that fails DMARC or is flagged as spam goes to Spam. Spam is deleted after 30 days.
Webhooks#
Give an address a webhook URL (https) and every email to it is posted there as JSON as soon as it arrives. Answer with any 2xx status. Anything else, or no answer within 10 seconds, is retried after 1 minute, 5 minutes, 30 minutes, 2, 6, 12 and 24 hours. Spam isn't sent.
Maillayer-Event: email.received
Maillayer-Delivery: 2b6c… (the same on retries)
Maillayer-Timestamp: 1795700000
Maillayer-Signature: sha256=5d1f…
{
"id": "2b6c…",
"type": "email.received",
"created_at": "2026-11-26T10:00:01.000Z",
"data": {
"id": "a41e…",
"object": "inbound_email",
"inbox_id": "…",
"thread_id": "…",
"from": "[email protected]",
"from_name": "Ada Lovelace",
"to": ["[email protected]"],
"cc": [],
"reply_to": null,
"recipient": "[email protected]",
"subject": "Where is my order?",
"text": "Hi! Order 4512 hasn't arrived…",
"html": "<p>Hi! Order 4512 hasn't arrived…</p>",
"message_id": "<CAF…@mail.gmail.com>",
"in_reply_to": null,
"spam": false,
"authentication": { "spf": "pass", "dkim": "pass", "dmarc": "pass" },
"attachments": [
{ "id": "…", "filename": "receipt.pdf", "content_type": "application/pdf", "size": 48213, "url": "https://…" }
],
"received_at": "2026-11-26T10:00:00.000Z"
}
}Attachment links in a webhook work for 24 hours. Check the signature before trusting a request: it's an HMAC-SHA256 of {timestamp}.{raw body} with the address's signing secret (under Settings on the address).
import { createHmac, timingSafeEqual } from "node:crypto";
function verify(rawBody, headers, secret) {
const ts = headers["maillayer-timestamp"];
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false; // older than 5 minutes
const expected = createHmac("sha256", secret).update(`${ts}.${rawBody}`).digest("hex");
const given = (headers["maillayer-signature"] ?? "").replace("sha256=", "");
return given.length === expected.length && timingSafeEqual(Buffer.from(given), Buffer.from(expected));
}Use Send test event on the address to try your endpoint. Use Maillayer-Delivery to ignore a delivery you've already handled.
Forwarding#
An address can forward every email to another mailbox, like your Gmail. The forward comes from your sending domain with a short “Forwarded by Maillayer” line, and hitting Reply answers the original sender. Each forward uses one email from your plan, so it needs an active plan. Attachments stay in Maillayer.
For AI agents#
With the MCP server an agent can set up receiving, create addresses, read what arrived and reply. See the Inbox API for the same in code.
Check [email protected] for unread email and draft a reply to each one.
Limits#
- Up to 100 addresses per workspace, and 10,000 received emails per 24 hours. More is dropped; ask us if you need more.
- Attachments up to 25 MB each are kept.
- This is an inbox for apps, agents and shared addresses. It doesn't offer IMAP or a phone app.