AegisAI Perspectives · 099

What are the deployment options for cloud-native email security?

Cloud-native email security deploys by API, inline gateway, journaling or a hybrid, and the right one depends on whether anything may touch mail delivery.

TL;DR
Answer
Four models: an API connection after delivery, an inline gateway that takes the MX record, journaling copies, or a hybrid. Pick by whether anything may touch delivery.
Who it's for
Email admins and security leads on Microsoft 365 or Google Workspace whose first rule is that nothing may break inbound mail delivery.
Watch out for
A gateway needs the MX record pointed at it and Exchange Online locked to accept only its mail, so an outage leaves mail no other path.
What AegisAI does
AegisAI reads mail through the Microsoft 365 or Google Workspace API after delivery. There is no change to mail routing (MX records).
Book a demo

See it on your own Google Workspace or Microsoft 365 tenant. No MX change.

Or get the Q3 2026 State of the AI Attack report (free, instant download)

What are the deployment options for cloud-native email security?

Cloud-native email security comes in four deployment models: an API connection, an inline gateway that needs your MX record pointed at it21, journaling, or a hybrid of gateway and API. Choose by one question: may anything sit in the path of mail delivery? AegisAI takes the API route, reading mail through the Microsoft 365 or Google Workspace API after delivery with no change to mail routing15.

What you can do by the end

  • Compare API, gateway, journaling and hybrid on the same rows, from DNS change to what happens in an outage.
  • Predict what happens to mail delivery in each model when the security service goes down.
  • List the API permissions an admin must grant and which of them can move or delete mail.

What are the four deployment models?

Microsoft names three ways to connect a non-Microsoft service: DNS mail routing, the Microsoft Graph API, and in-and-out mail routing4. Journaling is the fourth path, and a hybrid joins a gateway to an API tool.

  • API. The service connects through the Graph API, which typically means granting it full access to mailboxes6. It works on mail in the mailboxes.
  • Inline gateway. The domain's MX record points to the service, so it filters mail before Exchange Online sees it.
  • Journaling. A journal rule sends copies of internal messages, external messages or both to a mailbox outside Exchange Online24.
  • Hybrid. A gateway holds the MX record, and an API tool reads the mailboxes behind it.

This page widens the gateway or AI-native choice from two options to four. List which of the four models your vendors offer before the first call.

Short on time? Watch the explainer, or book a demo.

Does the deployment model touch mail delivery?

The gateway and hybrid models do, because a gateway needs your MX record pointed at the service provider. Microsoft then tells you to lock Exchange Online down with a Partner inbound connector, so mail routed directly to Exchange Online is rejected22. With the MX record elsewhere, you enable Enhanced Filtering for Connectors instead of turning off anti-spoofing14.

Zero-hour auto purge (ZAP) does not act on high confidence phishing when the MX record points to another service and a mail flow rule bypasses spam filtering10.

Watch for in-and-out routing, where mail leaves Microsoft 365 and comes back. Microsoft says messages are then counted twice in most reporting tools, and returned messages are likely to fail email authentication checks5. For the API side in detail, read how API-based email security works without an MX record change.

Mark each model as touching delivery or not, and strike out every model that breaks your red line.

What happens to mail when the security service is down?

It depends on where the service sits. A gateway locked in as the only accepted route leaves inbound mail no other path while it is down. With journaling, an unavailable journaling mailbox gets journal reports retried for up to 24 hours, then a non-delivery report goes to the alternate journaling mailbox25.

On AegisAI's API design, which reads mail after delivery, mail keeps flowing while detection pauses until the service returns19.

Ask every vendor for its outage behaviour in writing, and test it in the trial window.

What must an admin grant for the API model?

An admin grants mailbox permissions, and those decide what the tool can move or delete. Graph API integration typically requires full access to mailboxes. From 12/31/2026, Microsoft will block Graph API changes to sensitive fields on non-draft messages unless the app holds Mail-Advanced.ReadWrite permissions with tenant administrator consent, with an exception for specialised security uses7.

Volume has a ceiling too. The Outlook service allows 10,000 API requests in a 10-minute period and four concurrent requests for each app and mailbox pair20.

Get the permission list in writing, and mark each permission that can move or delete mail.

Pick a deployment model in seven steps

Work through the steps in order; each one removes options.

  1. Write down the red line: may anything sit in the path of mail delivery?

  2. If nothing may, rule out the gateway and the hybrid, since both need the MX record pointed at the service.

  3. If you keep a gateway, plan the Partner inbound connector that rejects direct mail and Enhanced Filtering for Connectors.

  4. For an API tool, list the Graph permissions it requests, starting from full mailbox access.

  5. Check the tool against the 12/31/2026 Graph change and its Mail-Advanced.ReadWrite consent.

  6. For journaling, pick a destination outside Exchange Online and a scope of internal, external or both.

  7. Record each vendor's written answer on outage behaviour next to its model.

Finish the seven steps before any trial, so the trial tests one model, not four.

Compare the four models on one table

The table puts the four models on the same rows; the last row is where an API tool has no edge.

CriterionAPIInline gatewayJournalingHybridWhere AegisAI sits
MX record changeNone: a separate route from DNS mail routingMX points to the serviceNone: a journal ruleMX points to the gatewayNo change to mail routing
When it actsOn mail in the mailboxes, through GraphBefore Exchange Online sees the mailOn copies in journal reportsBothAfter delivery
What the admin grantsGraph permissions, typically full mailbox accessDNS change and a Partner inbound connectorA journal rule and an outside mailboxBoth setsWrite access for removal, which the admin grants and can revoke18
If the service is downAsk the vendorLocked-in route leaves no other pathReports retried for up to 24 hoursAsk the vendorMail keeps flowing while detection pauses
Volume limit10,000 requests per 10 minutes per app and mailboxAsk the vendorAsk the vendorGraph limit for the API halfNot stated on its pages
Holds mail before any user can see itNoYesNoYes, for the gateway halfNo edge: it works after delivery

60-second self-check

Is your deployment choice safe for mail delivery?

Six questions. Nothing is sent anywhere; the result shows on this page.

  1. Have you confirmed whether your chosen model changes the MX record?
  2. Will the first trial run read-only, with no action on mail?
  3. Do you know which Graph permissions the tool requests, and which of them can move or delete mail?
  4. Do you know what happens to inbound mail if the security service goes down?
  5. Is Exchange Online locked to accept only your gateway's mail, with Enhanced Filtering for Connectors on (answer Yes if you use no gateway)?
  6. Have you avoided in-and-out routing, where mail leaves Microsoft 365 and comes back?

If holding mail before delivery is a hard rule, choose the gateway row and accept the MX change.

Run the decision on a 2,500-mailbox company

Illustrative example, figures are fictional. Ridgeway Builders (fictional) runs 2,500 mailboxes on Microsoft 365, and its red line is that nothing may touch mail delivery. A gateway would need the MX record pointed at the service, so it is struck out with the hybrid. Legal already journals external messages to an outside archive, which an Exchange Online mailbox cannot be; that stays as it is. The team picks an API tool. Its busiest mailbox receives 1,800 messages a day, and the vendor confirms its requests stay under 10,000 per 10 minutes for that mailbox. The admin approves 3 Graph permissions and marks the 1 that can delete mail. The tool runs read-only for 30 days before removal is switched on.

Run the same four checks on your own tenant: red line, archive, mailbox volume, permissions.

How AegisAI handles this

AegisAI reads mail through the Microsoft 365 or Google Workspace API after delivery. There is no change to mail routing (MX records). The platform runs in monitoring mode first17. Removal needs write access your admin grants and can revoke. If the service has an outage, mail keeps flowing while detection pauses until the service returns.

How to measure it in 30 days

Track three numbers from the day the chosen model goes live.

  • Inbound messages rejected or delayed by the new route. Ask your admin where they are logged.
  • Throttled requests the API tool logs against the 10,000 requests per 10 minutes limit. Ask the vendor for the count.
  • Journal report non-delivery reports in the alternate journaling mailbox, if you journal.

To see the API model on your own mail before you commit, ask for an evaluation.

Questions people ask

What are the deployment options for cloud-native email security?

There are four: an API connection, an inline gateway, journaling and a hybrid. Microsoft lists DNS mail routing, the Graph API and in-and-out routing as the ways to connect a service. Pick the model that respects your red line on mail delivery.

Does API-based email security need an MX record change?

No. The Graph API is a separate integration route from DNS mail routing. A gateway, and so a hybrid, needs the domain's MX record pointed at the service provider.

What is the difference between inline and API-based email security?

An inline gateway filters mail before Exchange Online sees it, through the MX record. An API tool connects through Graph, typically with full mailbox access, and works on mail in the mailboxes.

Can journaling be used for email security?

Journaling sends copies of internal messages, external messages or both to a mailbox outside Exchange Online. A tool reading those copies sees mail but does not sit on the delivery path.

What goes wrong with in-and-out mail routing?

Microsoft says messages are counted twice in most reporting tools, and returned messages are likely to fail email authentication checks.

What changes for Graph API email tools on 12/31/2026?

Microsoft will block Graph API changes to sensitive fields on non-draft messages unless the app holds Mail-Advanced.ReadWrite with tenant administrator consent, with an exception for specialised security uses. Ask each API vendor which permission it will hold.

Sources

  1. Microsoft Learn, Manage mail flow using a third-party cloud service with Exchange Online
  2. Microsoft Learn, Integrate a non-Microsoft security service with Defender for Office 365
  3. Microsoft Learn, Journaling in Exchange Online
  4. Microsoft Learn, Anti-phishing policies in Microsoft 365
  5. Microsoft Learn, Zero-hour auto purge in Exchange Online
  6. Microsoft Exchange Team blog, Upcoming breaking changes to modifying sensitive email
  7. Microsoft Learn, Microsoft Graph service-specific throttling limits
  8. AegisAI, Inbound email security
  9. AegisAI, How agentic AI is applied to email security

Recent posts

Every email, investigated.