Cloudflare Email Routing vs an inbound email API
Forwarding, a Worker and a stored inbox solve different jobs. Compare the parsing, storage and recovery work each architecture leaves to your app.
By Arin Prajapati, founder, 6 min read
On this page (6)
Use Cloudflare Email Routing when you need domain forwarding or want to build inbound processing in a Worker. Use an inbound email API when you want the provider to parse messages into an application contract, and a stored inbox API when your app must list or read messages later. Routing can power all three jobs, but the parsing, storage, replay and mailbox interface then become your application work.
Checked November 26, 2026. Cloudflare is a valid option, especially for teams already operating Workers. This page compares responsibilities rather than declaring one architecture universally better. For sending costs, see Cloudflare Email Sending vs Resend.
What Email Routing does
A Cloudflare routing rule sends mail for an address on your domain to a verified destination address or to an Email Worker. The domain must use Cloudflare DNS, and onboarding adds the receiving MX records [1]. A forwarding rule can therefore put support@yourdomain.com into an existing team mailbox without creating another mail account.
An Email Worker's email() handler gets the envelope sender, envelope recipient, headers and raw MIME stream. It can forward, reject or reply to the message [2]. Body extraction is a separate step: a MIME parser must decode multipart text, HTML and attachments. A raw MIME stream is not the same contract as a JSON object with a text field.
The documented routing rules deliver mail to an existing address or a Worker [6]. From that interface, treat Routing as a delivery layer: a stored inbox UI, IMAP login or message-list API would need another product or your own implementation. Cloudflare shows how to add storage and processing with KV storage and a queue [3]. That is a useful foundation when owning the pipeline is part of your product.
Where the application work lives
The phrase “inbound email API” covers two architectures. Some providers post a parsed message to your webhook. Others store the message and notify you that it is available. The distinction matters more than whether the product uses the word “API”.
Swipe sideways to see every column.
| Responsibility | Cloudflare Routing + Worker | Parsed webhook service | Stored inbox API |
|---|---|---|---|
| Accept mail for a domain | Routing MX and rules | Provider's inbound MX | Provider's inbound MX or supplied address |
| Decode MIME | Your parser | Provider parses the payload | Provider parses stored messages |
| Keep a searchable application history | Your storage and index | Usually your application database | Provider read API plus your application mapping |
| Processing after your code fails | Design durable storage and retry | Check the provider's retry contract | Refetch stored mail; also deduplicate events |
| Thread matching | Your Message-ID mapping | Check payload; persist mappings | Some providers group threads; still enforce app authorization |
| IMAP or shared inbox | Build or connect another product | Not implied by a webhook | Only if the chosen provider documents it |
Postmark documents an inbound processing workflow that posts parsed email to a webhook [7]. Mailgun offers route actions including forwarding and storage [8]. Resend has a receiving API [9]. Runearc keeps messages in inboxes, provides a signed event, and lets you fetch messages and threads through its messages API. Our inbound email API comparison covers these choices in more detail.
Design for failed processing
Start with the failure you want to recover from: a reply arrives, but the ticketing database is temporarily unavailable. Forwarding an email and creating a ticket are separate operations. A log entry saying the Worker ran does not prove that a durable application record exists.
With your own pipeline, write the raw email or a durable job before treating it as handled. Keep an identifier for duplicate detection, then run parsing and application updates from a retriable consumer. Cloudflare's own storage-and-queue example is a starting point [3]. Avoid acknowledging downstream work that has only been started in memory.
With a webhook service, verify the signature or documented authentication, durably store the event, and return success only after that write. A notification-only payload may require another API request for the body. Make the message id unique in your database so a replay cannot create two comments.
With a stored inbox API, the message can also be reread independently of webhook delivery. That simplifies recovery, but it does not remove the need for application idempotency. Add reconciliation that lists new mail after an outage, and check the provider's retention policy before assuming messages remain forever. Email API vs inbox API explains this split.
Which option fits
Choose forwarding when a person already works in Gmail, Outlook or another mailbox and the domain only needs a public address. You do not need to build a ticketing backend merely to receive a contact email.
Choose an Email Worker when a custom processor is the product: invoice extraction, special routing, compliance archiving under your own storage policy, or ingestion directly into an application you already operate. Your team owns the parser, data model, retry handling and search interface. That control can be valuable.
Choose a parsed webhook API when each email becomes one application action and the application will keep its own history. Evaluate signature verification, payload size, retry timing, attachment access and quoted-reply extraction.
Choose a stored inbox API when a person or agent needs to come back later, browse messages, read thread history or use a mail client. Check explicit IMAP support; receiving mail through HTTP does not imply IMAP exists. Runearc is one option for that workflow, with setup in the Cloudflare Workers guide.
Cloudflare lists inbound routing as unlimited, while Email Workers execution follows Workers pricing [5]. The inbound size limit is 25 MiB, and free-plan Worker CPU/memory limits can affect complex processing [4]. Include parsing, attachment storage and operations in your cost estimate, even when the routing line item is free.
Keep existing mail working
Choose the receiving name before changing DNS. If employees already receive at yourdomain.com, use a separate name such as replies.yourdomain.com for app mail. Configure that name with the chosen provider. Keep the root MX records for the employees' existing mail service.
Mixing the MX records of two unrelated mailbox providers on the same name does not split delivery by local part. MX priority is a delivery preference, not an instruction to send support@ to one provider and sales@ to another. Cloudflare's setup changes the MX records for the onboarded domain [1]; read that change before approving it.
Then test the whole path: send from a different mailbox, confirm the envelope recipient, inspect the parsed body, force an application failure, replay it, and confirm only one ticket or comment appears. Test an attachment and an automated reply too. For a stored-inbox implementation with sender checks, see receive email replies in your app. If all you need is a mailbox product, start with Email Routing alternatives.
Questions
Does Cloudflare Email Routing store a mailbox?
It routes mail to another mailbox or to your code. Cloudflare's storage example adds KV storage and a queue explicitly; Routing is not a hosted mailbox with an IMAP login. You can build storage and an API around it.
Can Cloudflare parse email into JSON?
An Email Worker receives envelope fields, headers and a raw MIME stream. Add a MIME parser in your code to extract body parts and attachments, then choose the JSON shape your app needs.
Is Email Routing free?
Cloudflare lists inbound Email Routing as unlimited on both Workers plans. Worker execution follows Workers pricing, and storage or queue usage can add costs. Unlimited routing is not unlimited free application processing.
Can I keep Google Workspace and use an inbound API?
Keep the root domain's existing MX records and configure a separate receiving subdomain with the provider's required MX records. Do not mix unrelated mail providers' MX records on one receiving name and expect them to route by mailbox.
Sources, read on November 26, 2026
- [1]Cloudflare, route emails: developers.cloudflare.com/email-service/get-started/route-emails/
- [2]Cloudflare, inbound Workers API: developers.cloudflare.com/email-service/api/route-emails/email-handler/
- [3]Cloudflare, email storage and processing example: developers.cloudflare.com/email-service/examples/email-routing/email-storage/
- [4]Cloudflare Email Service limits: developers.cloudflare.com/email-service/platform/limits/
- [5]Cloudflare Email Service pricing: developers.cloudflare.com/email-service/platform/pricing/
- [6]Cloudflare routing rules: developers.cloudflare.com/email-service/configuration/email-routing-addresses/
- [7]Postmark inbound guide: postmarkapp.com/developer/user-guide/inbound
- [8]Mailgun route actions: documentation.mailgun.com/docs/mailgun/user-manual/receive-forward-store/route-actions
- [9]Resend receiving introduction: resend.com/docs/dashboard/receiving/introduction
Prices change. If something here is out of date or wrong, email hello@runearc.com and we will fix it.

Arin Prajapati, founder of RunearcA software engineer in Mumbai who builds Runearc's mail servers, API and site. More about Arin and why he built Runearc.
Read next
- Send and receive email in Cloudflare WorkersA Cloudflare Worker sends email with Runearc in one fetch to its REST API, on any Workers plan and to any recipient. To receive, Runearc keeps the mail in an inbox and calls your Worker with a signed webhook; the Worker checks the signature with Web Crypto, reads the message and replies in the same thread.
- Best inbound email APIs in 2026: receive and parse emailEight ways to receive email in code, read from each provider's own docs on November 26, 2026: how mail reaches you, whether it is kept and queryable later, what the parsed payload holds, retries, signatures, IMAP and the free tier.
- The best transactional email services in 2026: 10 comparedTen transactional email services side by side: the free tier, the price at 10,000, 50,000 and 100,000 emails a month, and what each plan includes for domains, inbound mail, templates, webhooks, SMTP and dedicated IPs, read from each provider's own page on November 26, 2026.
Put Runearc to work
Get inboxes, sending, your own domains and MCP in one workspace. The free plan includes 3 inboxes, 3,000 emails a month and 3 custom domains, with no card.