AegisAI Perspectives · 128

Do I still need a secure email gateway with Microsoft E5?

Often not, since E5 already includes Defender for Office 365 Plan 2, but keep or add a layer when one of the seven checks on this page fails on your mail.

TL;DR
Answer
Often not for filtering alone, because E5 includes Defender for Office 365 Plan 2. Keep or add a layer only when a licence, inbox, mail flow or team check fails.
Who it's for
If you run IT for a company of about 20 to 500 people on Microsoft 365 or Google Workspace, with a lean IT or security team and no SOC.
Watch out for
A gateway in front moves your MX record and makes Plan 2 reports count messages twice in Threat Explorer, Advanced Hunting and AIR.
What AegisAI does
AegisAI investigates every email for what it is trying to do, and removes the ones that fail from every mailbox they reached.
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)

Not ready for a demo? Check your domain (free, about 10 seconds).

Do I still need a secure email gateway with Microsoft E5?

Often not for filtering alone: Microsoft 365 E5 includes Microsoft Defender for Office 365 Plan 27. Keep or add a layer only when one of the checks below fails.

AegisAI investigates every email for what it is trying to do, and removes the ones that fail from every mailbox they reached2. If you run IT for a company of about 20 to 500 people on Microsoft 365 or Google Workspace, with a lean IT or security team and no SOC, and a gateway renewal is coming up, these checks are for you. The after-delivery layer is described on the inbound email security page. How to add a layer on top of E3 or E5, step by step, is in how to add email security on top of Microsoft 365 E3 or E5. This page answers the question before that one: does the gateway stay?

What you can do by the end

  • Decide yes or no on a gateway with E5, using seven checks you can run this month.
  • Name what Defender for Office 365 Plan 2 already does at the gateway position, from Microsoft's own pages.
  • Choose between a gateway in front and an API layer after delivery, knowing what each changes.

What does E5 do, and where does Microsoft Defender for Office 365 fall short?

E5 puts Microsoft's own filter where a gateway used to sit. Defender for Office 365 Plan 1 protects email and collaboration features against zero-day malware and phishing, and against business email compromise (BEC)10. Plan 2 adds phishing simulations, post-breach investigation, hunting, response and automation.

After delivery, zero-hour auto purge (ZAP) retroactively detects and neutralizes malicious phishing, spam or malware messages that were delivered to cloud mailboxes12. Its search is limited to the last 48 hours of delivered email.

The line between E3 and E5 has also moved. Beginning July 1, 2026, Plan 1 is included with Office 365 E3 and Microsoft 365 E38. What E5 adds for email is now mostly Plan 2 and its investigation tools.

Where it falls short depends on your team. ZAP looks back only 48 hours, and Plan 2 investigation needs someone to run it. List which of these features are switched on in your tenant before you price a gateway renewal.

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

What does an email gateway still add with E5, and what does it change?

A gateway in front gives you a second decision before mail reaches Microsoft, from a different filter. That is the case for keeping one. The cost is in mail flow, and Microsoft spells it out.

Your domain's MX record must point to the third-party provider21. Microsoft strongly recommends that you enable Enhanced Filtering for Connectors or bypass filtering completely using a mail flow rule. Microsoft also says that of the three integration options non-Microsoft services typically suggest, not all are equally supportable by Microsoft15.

Reporting is the hidden cost. With a gateway in front, messages are counted twice in most reporting tools, Threat Explorer and Advanced Hunting among them, plus automated investigation and response (AIR)19. Those are the Plan 2 tools E5 pays for.

Write down the one reason you would keep the gateway, in a single line, before the renewal call.

What does an API layer after delivery add?

An API layer reads mail that has already arrived. Microsoft describes it plainly: some non-Microsoft services authenticate and use the Microsoft Graph API to scan messages after they are delivered to user mailboxes17. This integration typically requires granting the service full access to mailboxes18.

It adds a second judgment without moving the MX record, on mail that has already passed Microsoft's filter. It does not hold mail before delivery. Microsoft's own view is that no number of layers takes total protection to 100 percent20, so the question is which second layer catches what reaches your inboxes.

That gap is measurable. AegisAI research found that AI-generated phishing got past Gmail and Microsoft tier-1 filters 50.3 percent of the time, against 28.5 percent for human-written phishing26. That is a tier-1 filter figure, not a Plan 2 measurement, so test it on your own mail.

Ask any API layer for its permission scope in writing before you connect it.

Run these seven checks to see when you can retire your secure email gateway

  1. Confirm every mailbox is licensed for E5 or Defender for Office 365 Plan 2. A gap in licences is a gap in protection.

  2. Confirm the Plan 1 protections and ZAP are switched on, not only licensed.

  3. Count what reached the inbox. Export 30 days of user-reported phishing and post-delivery removals. BEC alone cost $2,770,151,146 in reported losses in 202425, so one missed payment request matters.

  4. Check who uses Plan 2. Plan 2 investigation and response need someone to run them. With no SOC, write down who opens Threat Explorer each week, if anyone.

  5. List every mail flow rule, archive or compliance step that depends on the MX record pointing to the gateway.

  6. If the gateway stays, enable Enhanced Filtering for Connectors and expect Plan 2 reporting tools to count each message twice.

  7. Decide. If checks 1 to 4 pass and nothing in check 5 needs the gateway, plan to retire it at renewal. If check 3 finds phishing in inboxes, test a second layer after delivery in monitoring mode first.

Run checks 1 to 3 this week; they need only the admin portal and an export.

Compare Microsoft E5, a third-party SEG and an API layer side-by-side

CriterionE5 aloneE5 with a third-party SEG in frontAPI layer after delivery
MX recordPoints to Microsoft 365Must point to the third-party providerNo MX change, no gateway
Second judgmentNone, Plan 2 onlyA second filter before MicrosoftInvestigates every email for what it is trying to do
Removal after deliveryZAP, last 48 hours of delivered mailZAP still runs inside Microsoft 365A verdict in 1.9 seconds at the median, removal within seconds3
Plan 2 reportingNo second hop to countCounted twice in Threat Explorer and other Plan 2 reportsNo published figure on reporting effects
Mailbox access neededNone beyond Microsoft 365Connector settings in Exchange OnlineReads mail through the Microsoft 365 or Google Workspace API
Holds mail before deliveryYes, inside Microsoft 365Yes, at the edgeNo edge. It reads mail through the API after delivery

The last row gives the API layer no edge: it acts after delivery, not before. API layers in general typically need full mailbox access, so weigh that too. Fill one copy of this table with your own tenant's answers before the renewal date.

How AegisAI handles this

AegisAI investigates every email for what it is trying to do, and removes the ones that fail from every mailbox they reached. It reads mail through the Microsoft 365 or Google Workspace API after delivery: no MX change, no gateway. It works with your gateway or Defender, and archiving and your identity provider stay where they are5. It reaches a verdict in 1.9 seconds at the median, and removes a convicted message within seconds.

Book a demoSee inbound email security

See your own records: Check your domain.

Which compliance and audit requirements, such as HIPAA, keep a gateway in place?

Check whether a written control names the gateway itself or the outcome it delivers. In your HIPAA or SOC 2 audit evidence, look for controls that point to a mail flow rule, an archive journal or a filtering log. If the gateway is the only place one of those lives, it ties the MX record to the provider, and moving it is a project, not a switch.

If the control names an outcome, such as filtering or retention, the outcome can move with the evidence. Ask your auditor in writing which artifacts must survive the change, and keep the gateway logs for the full retention period.

List each audit artifact the gateway produces, and its new home, before you set an end date.

What does one renewal decision look like?

Illustrative example, figures are fictional: Ridgeway Dental Group (fictional) has 140 people on Microsoft 365 E5 and one IT admin, and its gateway renewal is due in 60 days. Check 1 finds 6 shared mailboxes without a Plan 2 licence. Check 2 finds ZAP on but impersonation settings left at default. Check 3 finds 23 user-reported phishing emails in 30 days, 4 of them invoice requests from a real supplier's hijacked mailbox. Check 4 finds no one has opened Threat Explorer since setup. Check 5 finds one archive rule tied to the gateway, which the archive vendor can move. The admin fixes the licences and settings, starts an after-delivery layer in monitoring mode, and books the gateway to end at renewal if the monitoring numbers hold.

Run checks 1 to 5 on your own tenant before the renewal call.

How to measure it in 30 days

Track three numbers, each from a log you can export.

  • Phishing that reached inboxes each week, counted from user reports plus post-delivery removals in Microsoft 365.
  • Messages the gateway caught that Defender for Office 365 would also have caught, from the gateway log matched against Threat Explorer.
  • Hours your team spends in Plan 2 investigation each week, from your own time log.

To see it on your own mail, start a monitoring-mode trial: connect a tenant, run it in monitoring mode, and compare it with what your current stack delivered4. Put the three figures next to the renewal price on day 30 and decide.

Questions people ask

Do I still need a secure email gateway with Microsoft E5?

Often not for filtering alone, because E5 includes Defender for Office 365 Plan 2. Keep one only if a mail flow rule or compliance step needs it. If phishing still reaches inboxes, add a second layer after delivery: AegisAI reads mail through the API after delivery, with no MX change and no gateway.

Does Microsoft E5 include Defender for Office 365?

Yes. Defender for Office 365 Plan 2 is included in enterprise Microsoft 365 subscriptions, E5 among them.

What does E5 add over E3 for email security now?

Since July 1, 2026, E3 includes Plan 1. E5 adds Plan 2: phishing simulations, post-breach investigation, hunting, response and automation.

Can I run a gateway in front of Defender for Office 365?

Yes, with the MX record pointed at the gateway and Enhanced Filtering for Connectors on. Expect messages to be counted twice in Threat Explorer and Advanced Hunting.

What access does an after-delivery API layer need?

It uses the Microsoft Graph API to scan delivered messages, and this typically requires full access to mailboxes. Ask for the permission scope in writing.

Sources

  1. (Microsoft Learn, Microsoft Defender for Office 365 service description, 24 October 2025)
  2. (Microsoft Learn, Microsoft Defender for Office 365 overview, 21 May 2026)
  3. (Microsoft Learn, Zero-hour auto purge in Microsoft Defender for Office 365, 1 June 2026)
  4. (Microsoft Learn, Integrate non-Microsoft security services with Defender for Office 365, 3 July 2026)
  5. (Microsoft Learn, Manage mail flow using a third-party cloud service with Exchange Online, 3 August 2026)
  6. (FBI IC3, 2024 Internet Crime Report)
  7. (AegisAI Blog, Half of AI Phishing Reaches the Inbox, updated 30 October 2026)
  8. (AegisAI, Inbound email security)
  9. (AegisAI, Email phishing prevention)
  10. (AegisAI, How to add email security on top of Microsoft 365 E3 or E5)

Recent posts

Every email, investigated.