Two Deployment Models — Architecture at a Glance
Identical detection engine, two integration topologies: out-of-band API vs. inline MX gateway.
Model A · API-First — Microsoft 365 & Google Workspace
Out-of-band · post-delivery
Mail is delivered normally; Cloudflare inspects in parallel via API and remediates inside the mailbox.
Model B · Inbound MX Gateway — Gateway & Hybrid mode
Inline · pre-delivery
MX record points to Cloudflare; every message is inspected at the global edge before delivery.
MAILBOX
Microsoft 365 / Google
INSPECTION
Cloudflare Email Security Why teams choose API-first
No MX change — no bypass surface
Parallel inspection — zero mail delay
Retroactive 14-day mailbox scan
Native folder clawback of live threats
API / OAuth · parallel
quarantine / clawback
EDGE · MX
Cloudflare Email Security MAILBOX
Microsoft 365 / Google
block / allow before delivery