When evaluating email security platforms, one of the first technical decisions is deployment model: MX gateway or API-native. Both approaches protect your email from phishing, malware and BEC attacks — but they work differently, have different trade-offs, and suit different types of organisations.
This guide explains both models, compares them on every relevant dimension, and helps you decide which is right for your Microsoft 365 or Google Workspace environment.
What is an MX Gateway?
An MX (Mail Exchanger) gateway is a cloud-based email security service that sits in front of your email platform. It works by redirecting your domain's MX records to point to the gateway instead of Google or Microsoft.
How it works:
- A sender sends an email to
yourname@yourcompany.com - The sender's mail server looks up the MX records for
yourcompany.com - Instead of pointing to Google or Microsoft, the MX records point to your security gateway (e.g.,
sophos-mx1.sophos.comormimecast.com) - The gateway receives the email, scans it for threats, and delivers clean email to your Google Workspace or Microsoft 365 inbox
- Malicious emails are quarantined or rejected
What changes in your DNS: Your MX records change from:
yourcompany.com MX 10 aspmx.l.google.com
To something like:
yourcompany.com MX 10 eu-smtp-inbound-1.mimecast.com
Nothing changes for end users — they continue using Gmail or Outlook as normal. The MX change is invisible to everyone except mail servers delivering to your domain.
Gateway vendors: Sophos Email, Mimecast, Proofpoint, Barracuda (gateway mode), Cisco Email Threat Defense.
What is API-Native Email Security?
An API-native email security solution connects to your email platform via its API — the Microsoft Graph API for Microsoft 365, or the Google Workspace Admin SDK API for Google Workspace. It does not change your MX records.
How it works:
- Email is delivered normally to your Microsoft 365 or Google Workspace inbox via the standard MX records
- The API-native security platform connects to your email platform via API and scans email after delivery
- If a threat is detected, the platform can automatically remove (retract) the malicious email from inboxes
- The scan happens post-delivery, typically within seconds of the email arriving
What changes in your DNS: Nothing. MX records remain pointing to Microsoft or Google.
API-native vendors: Barracuda Email Protection (API-native mode for M365), Microsoft Defender for Office 365 (native to M365), some newer platforms.
Gateway vs API-Native: Direct Comparison
| Dimension | MX Gateway | API-Native |
|---|---|---|
| Deployment complexity | Medium (MX change + policy config) | Low (API connection only) |
| Time to deploy | 2–4 hours + DNS propagation (up to 48h) | Under 2 hours, often under 30 minutes |
| MX record change required | Yes | No |
| Email downtime risk | Low (during DNS propagation) | Zero |
| Scan timing | Pre-delivery (email scanned before it reaches inbox) | Post-delivery (email scanned after arriving in inbox) |
| Can block before delivery | Yes | No — can only remove after delivery |
| Handles email from all sources | Yes — catches all inbound email | Only email delivered to the connected platform |
| Protects against forwarding attacks | Better — gateway sees all mail | Dependent on API access |
| Works for hybrid/on-premise Exchange | Yes | Limited |
| Lateral phishing (internal to internal) | Partial | Better — has API access to see internal mail flow |
| Email continuity | Available (Sophos, Mimecast include it) | Not applicable (relies on platform uptime) |
| Outbound scanning | Yes (all outbound routed through gateway) | Depends on integration |
| SPF/DKIM alignment | Requires SPF update for gateway | No SPF change needed |
| Vendor dependency for MX | Moderate (if gateway is down, email flow depends on fallback MX) | None |
The Core Trade-Off: Pre-Delivery vs Post-Delivery
This is the most important distinction.
Gateway (pre-delivery): The email never reaches your inbox until it has been scanned and cleared. If the gateway identifies it as malicious, it is quarantined — the email is blocked before the user ever sees it. Zero exposure window.
API-native (post-delivery): The email arrives in the user's inbox first, then the platform scans it and — if malicious — removes it automatically. This process typically takes 5–30 seconds. During that window, the user may have already opened, clicked, or acted on the email.
For most threats — phishing links, malware attachments — the 5–30 second window is acceptable because the damage (a user clicking a link) is unlikely in that timeframe. But the window is a genuine trade-off.
Counterpoint for API-native: Because API-native platforms have access to your mailbox data and user behaviour patterns, some (particularly Barracuda) use this access to build baseline behaviour models. They detect lateral phishing (compromised accounts attacking colleagues) more effectively than gateway-only approaches, because they can see internal mail flow that never touches the gateway.
When to Choose a Gateway
Choose an MX gateway if:
-
You need email continuity — Mimecast and Sophos Email include continuity at the gateway level. If your Microsoft 365 goes down, email still flows through the gateway. API-native platforms cannot provide this.
-
You need compliance archiving — Mimecast's 99-year archiving is a gateway-level feature. It captures all inbound email at the gateway, independent of your email platform's uptime.
-
You use Google Workspace — API-native options for GWS are more limited than for M365. Sophos Email and Mimecast's MX gateway approaches are more mature for Google Workspace environments.
-
You have on-premise Exchange or hybrid environments — API-native tools primarily target Microsoft 365 cloud tenants. Gateway approaches work with any mail server that has an MX record.
-
You want outbound DLP — Gateway platforms can inspect and quarantine outbound emails before they leave your organisation. API-native tools have limited outbound visibility.
-
You need to enforce pre-delivery blocking — For high-security environments (financial services, healthcare, legal) where even a brief exposure window is unacceptable, pre-delivery scanning is preferred.
Gateway platforms available in India: Sophos Email Security, Mimecast, Proofpoint, Barracuda (gateway mode)
When to Choose API-Native
Choose API-native if:
-
You want zero DNS disruption — No MX record changes, no SPF updates, no risk of email delivery issues during DNS propagation. Live in under 2 hours.
-
You're on Microsoft 365 and want speed — Barracuda's API-native connection to Microsoft Graph API is the fastest email security deployment available. For Microsoft 365 organisations that need protection quickly, this is the clearest path.
-
You need lateral phishing protection — API-native platforms can monitor internal mail flow — emails from
colleague@yourcompany.comtoothercollague@yourcompany.com. A gateway only sees inbound email from outside your organisation. -
You already have Microsoft Defender configured — Microsoft Defender for Office 365 is effectively API-native, built into the Microsoft 365 platform. If you have Defender Plan 1 or 2 configured, adding a gateway creates double-scanning overhead that may not be necessary.
-
You have a distributed IT team with limited DNS access — Changing MX records requires coordination with whoever manages your DNS (often a different team or a domain registrar). API-native deployments need only an M365 admin consent to connect.
API-native platforms available in India: Barracuda Email Protection (API mode), Microsoft Defender for Office 365
Can You Use Both?
Yes — and some enterprise organisations do. A common architecture:
Gateway (Mimecast) → Exchange Online → Microsoft Defender Plan 1
In this model:
- Mimecast acts as the MX gateway and catches the majority of threats (including continuity and archiving)
- Exchange Online Protection handles additional filtering
- Defender Plan 1 provides Safe Links and Safe Attachments within the Microsoft 365 layer
This "defence in depth" approach ensures that if one scanning layer misses something, another layer catches it. The overhead of double-scanning is acceptable for enterprises with high-value targets or strict compliance requirements.
For most SMBs, a single gateway platform well-configured is sufficient.
Deployment Summary by Organisation Type
Startup on Google Workspace (under 20 users): → MX Gateway: Sophos Email Standard. Quick to set up, immediate BEC and sandboxing protection. Cloudfy handles both GWS and Sophos from one engagement.
SMB on Microsoft 365 Business Standard (20–100 users): → API-Native: Barracuda Email Protection. Zero disruption, no MX change, live in under 2 hours. Adds BEC, sandboxing and lateral phishing protection that EOP alone doesn't provide.
SMB on Microsoft 365 Business Premium (already has Defender Plan 1): → Configure Defender Plan 1 properly first. If still needed: Barracuda API-native for lateral phishing, or Mimecast gateway for continuity and archiving.
Mid-size enterprise on M365 with compliance requirement: → MX Gateway: Mimecast Email Security + Continuity or Advanced + Archiving. Continuity and 99-year archiving are only available as gateway features.
Large enterprise on M365 with sophisticated threats: → MX Gateway: Proofpoint Email Security. TAP + VAP analysis + enterprise archiving. Gateway approach for pre-delivery enforcement.
Cisco infrastructure organisation: → Cisco Email Threat Defense (gateway). Integration with Cisco SecureX, Duo and XDR.
FAQs
Does changing MX records cause email downtime?
No — if done correctly. DNS changes propagate gradually (up to 48 hours), and during propagation, mail servers that have cached your old MX records continue delivering to Google or Microsoft while servers with the new record deliver to your gateway. There is no delivery gap. Cloudfy configures a fallback MX pointing back to Google/Microsoft during the propagation period as an additional safety net.
Can API-native email security protect outbound email?
In most implementations, no. API-native tools connected via Microsoft Graph API have limited access to outbound mail flow. For outbound DLP and scanning, a gateway is required.
Does Barracuda work for both MX gateway and API-native?
Yes. Barracuda Email Protection supports both deployment modes. For Microsoft 365 customers, Barracuda recommends the API-native mode for the fastest deployment. Gateway mode is available for organisations that need pre-delivery blocking or compatibility with non-M365 environments.
Does Sophos Email support API-native deployment?
Sophos Email Security is an MX gateway product — it requires an MX record change. It does not currently offer an API-native deployment mode equivalent to Barracuda's Graph API integration.
As an authorised email security partner in India, Cloudfy has deployed both gateway and API-native email security platforms for businesses across India. Contact us for a recommendation tailored to your email environment, user count and compliance needs — and a same-day INR quote for any platform.
