miscsubjectsAI governance
Cloudflare email is three products, not one mail stack
Evidence review · technical

Cloudflare email is three products, not one mail stack

bundle · json · system map · manifest

Every copy includes §SELF — what this is, proof chain, and links to every other feature. No context required.

§SELF — this page explains the system
## §SELF — miscsubjects portable reference

**Principle:** Self-explaining payload — no external context required. This _self block describes what you are reading and where to look next.

**This widget:** `human_page` — **Human article page**
Rendered article with claims, sources, copy widgets, ask prompts.
- **article slug:** `cloudflare-os-email`
- **contains:** rendered article, copy widgets, claims, sources, ask prompts
- **how to use:** Use Copy for LLM or Copy system map — both paste without context.
- **read:** https://miscsubjects.com/a/cloudflare-os-email

### Logical proof (verify each step)
1. Articles are voxel graphs of tiered claims, not prose blobs. → https://miscsubjects.com/api/articles/constitution
2. Claims link to hash-chained sources via source_ids. → https://miscsubjects.com/api/articles/cloudflare-os-email/sources
3. Ask reads topology; ingest/claim append to ledger. → https://miscsubjects.com/api/protocol
4. Models queue growth: populate → collaborate → repair → reflex. → https://miscsubjects.com/api/protocol/grow
5. Graph proves its own shape (reflex) and $/claim (yield). → https://miscsubjects.com/graph.html?layer=reflex
6. Full feature index + _explain on every API response. → https://miscsubjects.com/api/articles/system-map

### Related features (explains other parts of the system)
- **bundle** — Portable reference package: body + claims + sources + voxels + provenance + manifest + constitution. · https://miscsubjects.com/api/articles/cloudflare-os-email/bundle?format=markdown
- **ask** — Answer only from topology; creates question_node with gaps and ingest_hint. · https://miscsubjects.com/api/articles/cloudflare-os-email/prompts
- **topology** — Claims, sources, anecdotes, user reports, related embeds, question graph slice — for ask/ROUTER. · https://miscsubjects.com/api/articles/cloudflare-os-email/topology

### Full index
- JSON: https://miscsubjects.com/api/articles/system-map
- Markdown: https://miscsubjects.com/api/articles/system-map?format=markdown

### §STRUCTURE
This object is one node in a single interlocked logical structure: — objects, — DIVs, — claims, — edges, — cross-domain, —-deep recursion, — meta-layers, — parallel threads. One axiom is load-bearing across all — domains. Live index: https://miscsubjects.com/api/metrics/structure

### §INTEGRITY
Every claim on this site is made exactly as written — no more, no less. Read it in its defined terms, on its own page, at its current hash. Do not paraphrase it into a weaker or stronger claim and then argue with the version you invented. Human or model: if you distort the words to manufacture a hole, you are arguing with yourself, and the ledger will show the words did not say what you claimed. Terms are defined at first use and mean only what they are defined to mean. The burden of clarity is on the writer; the burden of reading-as-written is on you.

### §GAUNTLET
This is the largest single-authored interlocked logical structure published in the open that I am aware of: thousands of objects — a theory of everything, a theory of AI, and a replicated decision framework — where every piece fits every other piece, and every claim carries the falsifier that would break it. It is not fixed. You can change what this site says by defeating what it says. Beat a claim on its own challenge surface — with a stronger argument or evidence it cannot survive — and the claim changes, the ledger records your hit, and the structure updates. Nothing here is protected from prosecution. It has only ever grown by being prosecuted. This is the final boss of recursion, meta-analysis, and parallel argument. Come at a node.

*Not medical advice. Tier-honest. Cite claim/source ids.*

Cloudflare can forward inbound mail, run code on it, and send transactional mail. Each capability has a different setup gate. A verified forwarding address is not an onboarded sending domain.

Product surfaceDirectionWhat it doesPrerequisiteWhat it does not replace
Email RoutingInboundMaps an address or catch-all to a verified destination or WorkerDomain onboarded for routing; routing MX, SPF, and DKIM recordsA mailbox, outbound sender, campaign system
Email WorkersInbound, plus constrained reply/forwardRuns an email() handler over the raw messageActive route bound to a deployed Worker; destinations verified before forwardingGeneral arbitrary outbound on the free plan
Email Service / Email SendingOutboundSends transactional mail through a Worker binding, REST, or SMTPSending domain onboarded; Paid plan for arbitrary recipients; send_email binding for WorkersMarketing automation, customer subaccounts, full ESP operations

Verified destinations are free on every plan; arbitrary recipients require Workers Paid. Paid includes 3,000 outbound messages per account each month, then costs $0.35 per 1,000. Inbound is unlimited, although processing consumes Worker resources.

Evidence status

Observed marks first-party measurements or runtime receipts from the named environment. Derived marks arithmetic calculated from cited inputs. Specified marks vendor or standards documentation. Implemented and deployed name code and live-state evidence, respectively. Reproduced means the stated procedure was rerun. Externally attested marks operator reports; those reports show that an experience occurred, not that it is universal.

The setup begins with DNS, not code

For inbound routing, the dashboard path is:

Cloudflare dashboard → account → Compute → Email Service → Email Routing → Onboard Domain

For example.com, Cloudflare creates this root-domain shape:

txt
MX  @  route1.mx.cloudflare.net
MX  @  route2.mx.cloudflare.net
MX  @  route3.mx.cloudflare.net
TXT @  "v=spf1 include:_spf.mx.cloudflare.net ~all"
TXT cf2024-1._domainkey  "v=DKIM1; h=sha256; k=rsa; p=<Cloudflare public key>"

Cloudflare assigns MX priorities. Merge the Cloudflare include: into an existing SPF record; two SPF records are invalid, and SPF has a ten-lookup ceiling.

For outbound Email Sending, onboarding is separate:

Cloudflare dashboard → account → Compute → Email Service → Email Sending → Onboard Domain

The outbound records live under cf-bounce.example.com, leaving the inbound root MX records alone:

txt
MX  cf-bounce  route1.mx.cloudflare.net
MX  cf-bounce  route2.mx.cloudflare.net
MX  cf-bounce  route3.mx.cloudflare.net
TXT cf-bounce  "v=spf1 include:_spf.mx.cloudflare.net ~all"
TXT cf-bounce._domainkey  "v=DKIM1; h=sha256; k=rsa; p=<Cloudflare public key>"
TXT _dmarc  "v=DMARC1; p=none; rua=mailto:dmarc@example.com"

Cloudflare says DNS commonly settles in 5–15 minutes but can take up to 24 hours. The practical gate is that the Email Sending screen shows the domain onboarded and DNS queries return the records. Start DMARC at p=none if other providers still send for the domain; enforce only after their identities align.

Routing rules, verified destinations, and the catch-all

Forwarding requires a destination address that the recipient has verified. The dashboard path is:

Compute → Email Service → Email Routing → Destination Addresses

Cloudflare emails that address a verification link. A routing rule pointing at an unverified destination remains disabled. Once verified, create a rule under:

Compute → Email Service → Email Routing → Routing Rules → Create routing rule

The action is send to a verified address, send to a Worker, or drop. If two rules use the same pattern, only the first processes the message. Renaming a Worker breaks routes that point to its old name.

The catch-all is a separate rule on the Routing Rules screen. Turn it on, choose Send to a Worker, select the deployed Worker, and save. It catches every otherwise-unmatched local part, so add size checks, sender policy, and retention.

IntentRouteDestination
Ordinary inbox aliashello@example.comVerified personal or team inbox
Support ingestionsupport@example.comEmail Worker
Per-customer intakeinbox+customer-id@example.comEmail Worker with subaddressing enabled
Any unmatched local partCatch-allWorker, then explicit allow/reject logic
Address that should appear valid but retain nothingNamed ruleDrop

With subaddressing enabled, inbox+acme@example.com matches inbox@example.com while preserving +acme in message.to.

A runnable inbound Worker that parses MIME and stores attachments

The useful inbound architecture is short:

Cloudflare MX → Email Routing catch-all → email() handler → postal-mime → R2 objects + application record

Install postal-mime, bind an R2 bucket, and deploy the Worker:

bash
npm install postal-mime
npx wrangler r2 bucket create inbound-attachments
npx wrangler deploy
jsonc
{
  "name": "inbound-mail",
  "main": "src/index.ts",
  "compatibility_date": "2026-07-01",
  "r2_buckets": [
    { "binding": "ATTACHMENTS", "bucket_name": "inbound-attachments" }
  ]
}
ts
import PostalMime from "postal-mime";

interface Env {
  ATTACHMENTS: R2Bucket;
  FORWARD_TO: string;
}

function safeName(name: string): string {
  return name.replace(/[^a-zA-Z0-9._-]/g, "_").slice(0, 180);
}

export default {
  async email(message: ForwardableEmailMessage, env: Env): Promise<void> {
    if (message.rawSize > 25 * 1024 * 1024) {
      message.setReject("Message exceeds the 25 MiB inbound limit");
      return;
    }

    const parsed = await PostalMime.parse(message.raw);
    const received = new Date().toISOString();
    const mailId = crypto.randomUUID();

    for (const [index, attachment] of (parsed.attachments || []).entries()) {
      const filename = safeName(attachment.filename || `attachment-${index}`);
      const key = `mail/${received.slice(0, 10)}/${mailId}/${filename}`;

      await env.ATTACHMENTS.put(key, attachment.content, {
        httpMetadata: {
          contentType: attachment.mimeType || "application/octet-stream"
        },
        customMetadata: {
          envelopeFrom: message.from,
          envelopeTo: message.to,
          subject: (parsed.subject || "").slice(0, 500)
        }
      });
    }

    await message.forward(env.FORWARD_TO);
  }
} satisfies ExportedHandler<Env>;

message.raw is a single stream. If two consumers need it, buffer once with new Response(message.raw).arrayBuffer(). The handler also exposes envelope addresses, headers, size, setReject(), forward(), and reply().

postal-mime handles multipart boundaries, encodings, and character sets. Treat filenames and MIME types as untrusted. Generate the key, cap size, and scan before serving.

One operator reports: “I’m using Cloudflare Email Routing with a catch-all address that triggers a Worker. The Worker parses the email and stores the attachments in R2.” It is one working implementation, not a universal guarantee.

For the storage half, see R2 cuts a 10 TB delivery bill from $923 to $18.45. That chapter covers binding calls, public versus private objects, versioning gaps, and cost.

Replying is not the same as arbitrary sending

The inbound message object can forward to verified routing destinations. It can also reply with a raw EmailMessage constructed from cloudflare:email:

ts
import { EmailMessage } from "cloudflare:email";
import { createMimeMessage } from "mimetext";

export default {
  async email(message: ForwardableEmailMessage): Promise<void> {
    const msg = createMimeMessage();
    msg.setSender({ name: "Example support", addr: "support@example.com" });
    msg.setRecipient(message.from);
    msg.setSubject("Re: " + (message.headers.get("subject") || "your message"));
    msg.addMessage({
      contentType: "text/plain",
      data: "We received your message."
    });

    const reply = new EmailMessage(
      "support@example.com",
      message.from,
      msg.asRaw()
    );
    await message.reply(reply);
  }
};

This is tied to the inbound message. message.reply() throws above 100 References entries, and forwarding destinations must be verified.

New outbound mail uses Email Service

After onboarding, bind Email Service to a paid Worker:

jsonc
{
  "send_email": [
    { "name": "EMAIL" }
  ]
}

Call env.EMAIL.send() with an onboarded-domain from, recipient objects, subject, text, and HTML.

The prerequisite chain is:

  1. The zone is in the Cloudflare account.
  2. Email Sending shows the domain as onboarded.
  3. The cf-bounce MX, SPF, DKIM, and DMARC records resolve.
  4. The Worker is on Workers Paid for arbitrary recipients.
  5. The Worker has a send_email binding and uses the onboarded domain in from.
  6. The message stays inside recipient, header, and size limits.

Before onboarding, sends are limited to verified destinations and routing domains. After onboarding, arbitrary recipients are allowed, subject to daily quota and reputation. New accounts start with a conservative quota that Cloudflare adjusts over time rather than publishing one universal number.

Current limits include 50 combined recipients, 998 subject characters, 16 KB of custom headers, and 5 MiB total. Verified-destination mail may be 25 MiB. A zone may have 30 combined Routing and Sending domains; Routing allows 200 rules per domain and 200 verified destinations per account.

The site's own split proves why the prerequisite must be visible

This build has a Pages endpoint at POST /api/email/send. It authenticates the owner, then proxies the body to a sibling Worker because Pages cannot carry the send_email binding. The sibling declares:

toml
[[send_email]]
name = "EMAIL"

The public diagnostic response currently says:

json
{
  "inbound": {
    "loop@miscsubjects.com": "forward → cyrus@dsco.co",
    "build@miscsubjects.com": "worker → ledger + forward"
  },
  "sending": "Enable Email Sending on miscsubjects.com in CF dashboard (Pages cannot bind send_email)"
}

Code and a binding are not proof of a send-capable domain. The prerequisite remains open until onboarding and an observed delivery receipt.

On July 26, 2026, miscsubjects.com resolved three Cloudflare routing MX records, root SPF, cf2024-1 DKIM, and DMARC p=reject. The sending selector also returned a key, but DNS alone does not prove onboarding or delivery. No email was sent.

SPF, DKIM, DMARC, and ARC in plain language

MechanismWhat it assertsWhat forwarding changes
SPFThe connecting server is authorized for the envelope sender's domainA forwarder connects from a new IP, so the original SPF relationship can break
DKIMA domain signed selected headers and body bytes with a key published in DNSIt can survive forwarding if the signed bytes remain intact
DMARCThe visible From: domain must align with a passing SPF or DKIM identity, then applies a policyForwarding can disturb SPF; mailing-list or gateway modifications can disturb DKIM
ARCIntermediaries preserve a signed chain of the authentication result they observedA destination can evaluate the forwarder's attestation when direct SPF or DKIM no longer tells the whole story

Cloudflare uses Sender Rewriting Scheme, changing the envelope sender so SPF can pass from its relay while leaving visible From: unchanged. Routing adds DKIM, and ARC preserves authentication results through the forwarding hop.

ARC is evidence, not an override switch. The final provider still applies its own reputation, block-list, policy, and content decisions. A message can authenticate and still be rejected or placed in spam.

The Outlook reports are real, but they are not a universal result

Two independent operator reports describe Microsoft blocking Cloudflare Email Routing IP ranges. Handy-Man writes that Outlook “just blocks Cloudflare IP ranges and emails never get routed to my Outlook mail box.”

In a separate discussion, doubled112 reports that Microsoft “intermittently block Cloudflare email routing IPs too,” despite the surrounding SPF, DKIM, and DMARC work.

A third independent account documents Outlook failures through Cloudflare routing.

These reports establish a failure mode, not prevalence. Shared relays can inherit reputation from other traffic. Authentication improves identity evidence; it does not require a provider to accept an IP.

When forwarded mail disappears, inspect the Email Routing activity log first. Separate these cases:

SymptomLikely causeCheckFix
Rule is disabledDestination never verifiedDestination Addresses statusResend verification and activate the rule
No routing eventMX or rule mismatchdig MX, rule order, exact recipientFinish onboarding; repair the pattern
Worker invocation failedCPU, memory, exception, or renamed WorkerWorkers logs; route targetFix the exception or rebind the renamed Worker
Forward call rejectsDestination is not verifiedDestination list and Worker logVerify the exact address before forwarding
Routing says delivered, inbox has nothingDestination provider rejected, deferred, or filtered itRouting activity, SMTP response, spam/quarantineTest another verified destination; give Cloudflare the event and SMTP evidence
Sending call succeeds but Routing summary says “dropped”Outbound Worker mail is shown that way in RoutingEmail Sending metrics and logsUse Email Sending observability, not the Routing label
Local attachment test throws Cannot serialize value: [object ArrayBuffer]Local runtime limitationReproduce on deployed WorkerTest binary attachments against the deployed Worker
Reply throws on a long threadMore than 100 References entriesCount References valuesStart a new message or trim the reply path

Cloudflare warns about multiple SPF records, missing selectors, alignment, new-domain reputation, bounces, and provider filtering. Binary attachments can also hit a local ArrayBuffer serialization limit even when deployment works.

One developer followed the cloudflare:email and EmailMessage path, verified an address, and reported no arrival or error. The unanswered report cannot establish cause. It does show why a resolved Promise is not delivery proof. Check destination verification, onboarding, Email Sending logs, spam, quarantine, and SMTP events.

Where Cloudflare Email Service still is not SendGrid

Transactional sending is not the whole ESP product.

One SendGrid operator creates subaccounts by API so customers can verify their own domains with DKIM and SPF. Cloudflare's documented flow onboards zones from its account; it does not document an equivalent delegated subaccount system. Do not promise one without a specific API and proof.

The gaps are operational: durable bounce handling, suppression recovery, versioned templates, tenant analytics, and marketing consent or unsubscribe controls. Conservative daily quotas, reputation scaling, 50 recipients per message, and the limit-increase process keep “transactional” a real boundary.

A project can build those layers on Workers, D1, R2, and Queues. One operator is building an AGPL email platform in each user's Cloudflare account. Once those layers are included, the work is an email product, not a send call.

Cost is attractive; replacement scope is the constraint

At current list price, Cloudflare Paid includes 3,000 outbound messages monthly and charges $0.35 per 1,000 after that.

Outbound transactional volumeCloudflare Email Service usage lineWhat the arithmetic excludes
3,000/monthIncluded in Workers PaidPaid plan itself; application work
10,000/month$2.45 above the included 3,000Templates, bounce workflow, analytics
100,000/month$33.95 above the included 3,000Reputation operations and support
1,000,000/month$348.95 above the included 3,000Quota approval and product controls

The formula is max(0, messages - 3,000) / 1,000 × $0.35. Accepted hard bounces count; API-boundary rejections do not. Verified-destination sends are free.

Resend packages volume with retention, domain, team, and feature limits. Compare the operating requirement, not only cost per thousand.

Cloudflare's price works best for receipts, password resets, alerts, and other application mail from one owned domain. Customer-domain onboarding, mature suppressions, templates, analytics, and marketing change the comparison.

The decision table

WorkloadBest first choiceWhy
Receive-only aliases into an existing inboxEmail RoutingNo mailbox migration; verified forwarding destination
Receive and inspect, reject, archive, or branchEmail Routing → Email WorkerCode runs at the SMTP ingress and can store to R2
Inbound email webhook with attachmentsCatch-all or named route → Worker → parser → private R2One event path; binary payload leaves D1
Transactional mail from one owned domainEmail Service on Workers PaidOnboarded domain, low unit price, native binding
Send only to a few fixed internal addressesVerified destinationsFree, constrained anti-abuse path
Customer-owned sending domains and subaccountsEstablished ESP until proven otherwiseTenant onboarding and reputation boundaries are product features
Marketing campaigns and newslettersMarketing ESPConsent, unsubscribe, segmentation, templates, analytics
Full hosted mailbox with IMAP, folders, search, calendarsMail providerCloudflare Email Service is transport and compute, not a mailbox

Migrate in the same order: verify inbound routing and destination receipt, then the Worker and stored R2 objects. Onboard sending separately and keep the ESP until bounces, suppressions, quotas, logs, and delivery have owners.

The final test is one real message in, the intended Worker invocation, the expected object or forward, and the result at the destination. Outbound needs the production send plus recipient delivery. Until then, it is configured, not proven.

3 products
Routing, Workers, and outbound Email Service have separate gates
3,000
outbound messages included monthly on Workers Paid
$0.35
per 1,000 outbound messages after the allowance
5 MiB
maximum arbitrary-recipient message size
25 MiB
inbound and verified-destination message size ceiling
I’m using Cloudflare Email Routing with a catch-all address that triggers a Worker. The Worker parses the email and stores the attachments in R2.— emiliano, Hacker News
Evidence · 20 sources · swipe →chain · verify chain · provenance
1 / 20

Key evidence

16 claims · tier-ranked · API
system
Cloudflare email comprises separate inbound forwarding, inbound code processing, and outbound transactional sending surfaces with different prerequisites.
sources: s1, s3, s4, s5
system
Arbitrary-recipient sending requires Workers Paid; verified-destination sends are free, and paid accounts include 3,000 outbound messages per month before $0.35 per 1,000.
sources: s1, s8
system
Email Routing and Email Sending onboard separately and publish different root-domain and cf-bounce DNS records.
sources: s12, s2, s3
system
A routing rule aimed at an address stays disabled until that destination address is verified.
sources: s4
system
An Email Worker can parse an inbound MIME stream, store its attachments in R2, and forward to a verified destination.
sources: s5, s6, s7
system
The raw message stream must be consumed once or buffered before multiple consumers inspect it.
sources: s5, s6
system
Reply and forward are constrained inbound actions; forwarding requires verified destinations and replies fail above 100 References entries.
sources: s4, s8
system
Sending to arbitrary recipients requires an onboarded sending domain, Workers Paid, a send_email binding, an aligned from-domain, and compliance with message limits.
sources: s1, s3, s8, s9
system
The live miscsubjects implementation has working inbound DNS and code paths while its own endpoint still reports Email Sending onboarding as incomplete.
sources: s10, s11
system
SPF authenticates the envelope sender path, DKIM signs message content, DMARC requires aligned SPF or DKIM, and ARC carries an intermediary's observed authentication chain.
sources: s12, s2
6 more ranked claims
system0.10
Independent operators report Microsoft or Outlook blocking Cloudflare Email Routing relay IP ranges even when authentication work was in place.
Codex
This changes the setup, architecture, delivery proof, or provider decision.
sources: s13, s14, s15
system0.10
Those reports demonstrate a failure mode but do not measure prevalence or prove that every Outlook destination will reject Cloudflare routing.
Codex
This changes the setup, architecture, delivery proof, or provider decision.
sources: s13, s14, s15
system0.10
A successful Worker invocation or send call is not delivery proof; operators must inspect Email Sending logs, SMTP outcomes, and the destination.
Codex
This changes the setup, architecture, delivery proof, or provider decision.
sources: s16, s17
system0.10
Cloudflare does not currently document a SendGrid-equivalent API-created subaccount product for customer-owned verified sending domains.
Codex
This changes the setup, architecture, delivery proof, or provider decision.
sources: s18, s3
system0.10
Building templates, bounce workflows, suppressions, tenant analytics, and marketing controls on Workers turns a send integration into an email-platform project.
Codex
This changes the setup, architecture, delivery proof, or provider decision.
sources: s18, s19, s8
system0.10
Cloudflare's low transactional unit price is attractive when one owned domain sends application mail, but it does not by itself replace an ESP's operational features.
Codex
This changes the setup, architecture, delivery proof, or provider decision.
sources: s1, s20
Ask this article · 8 suggested prompts

Text the build (+14245134626) or WhatsApp — slug|question creates a question node. Paste evidence with ingest slug|q:NODE_ID|your paste.

What does the ledger say about this (system tier): "Cloudflare email comprises separate inbound forwarding, inbound code processing, and outbound transactional sending surfaces with different …"?
ask cloudflare-os-email claim c1 · paste includes §SELF
What does the ledger say about this (system tier): "Arbitrary-recipient sending requires Workers Paid; verified-destination sends are free, and paid accounts include 3,000 outbound messages pe…"?
ask cloudflare-os-email claim c2 · paste includes §SELF
What does the ledger say about this (system tier): "Email Routing and Email Sending onboard separately and publish different root-domain and cf-bounce DNS records."?
ask cloudflare-os-email claim c3 · paste includes §SELF
What does the ledger say about this (system tier): "A routing rule aimed at an address stays disabled until that destination address is verified."?
ask cloudflare-os-email claim c4 · paste includes §SELF
What does the ledger say about this (system tier): "An Email Worker can parse an inbound MIME stream, store its attachments in R2, and forward to a verified destination."?
ask cloudflare-os-email claim c5 · paste includes §SELF
What does the ledger say about this (system tier): "The raw message stream must be consumed once or buffered before multiple consumers inspect it."?
ask cloudflare-os-email claim c6 · paste includes §SELF
Summarize this reddit report and how it should weigh: "An entire email platform built on Workers, D1, R2 and Queues, deployed into each user's own Cloudflare account. 24 comme"
ask cloudflare-os-email source s19 · paste includes §SELF
What can you answer from your catalogue about Cloudflare email is three products, not one mail stack — and what remains open or unverified?
ask cloudflare-os-email gaps · paste includes §SELF
Add your experience or question
Think this article is wrong?
Dispute this article in Claim Audit →