AegisAI Perspectives · 208

Moving to Microsoft 365 or Google Workspace: what email security to keep

A security checklist for each phase of a move between mail platforms, in either direction, with where each setting lives and why it matters.

TL;DR
Answer
Decide after cutover, with the new tenant's real settings in front of you.
Who it's for
This page covers moving the mailbox platform itself, in either direction.
Watch out for
A layer that reads mail by API needs its own grant in the new tenant.
What AegisAI does
AegisAI reads mail through the Microsoft 365 or Google Workspace API after delivery, with no change to MX records.
Book a demo

AegisAI starts read-only in monitoring mode, and removal needs write access that admins can grant or revoke.

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

Moving to Microsoft 365 or Google Workspace: what email security to keep

Both platforms filter mail by default, so keep your current layer through the move and decide after cutover what it still adds.1,2 AegisAI reads mail through the Microsoft 365 or Google Workspace API after delivery, with no change to MX records.3

This page covers moving the mailbox platform itself, in either direction. The licence question is in do you still need a secure email gateway with Microsoft E5. What each edition blocks by default is in Microsoft 365 vs Google Workspace: what each blocks by default. AegisAI's API layer is described on inbound email security.

A tenant is your organization's account on the platform. The MX record is the DNS entry that says where your mail is delivered. TTL is how long other servers keep a DNS record. SPF and DKIM are DNS records that show which servers may send your mail and that a message was signed. DMARC is the policy that tells receivers what to do when neither check passes for your domain. A connector is a Microsoft 365 setting that routes mail to or from another system.

We are moving to Microsoft 365 or Google Workspace. Do we still need a separate email security layer?

Decide after cutover, with the new tenant's real settings in front of you. Microsoft 365's default threat policies cover every recipient and cannot be turned off.1 Gmail shows warnings and moves untrustworthy mail to the spam folder by default.2

While both systems run, mail reaches two places, DNS records change, and the new tenant starts with its own settings. A layer on the MX record has to move with it. A layer that reads mail by API needs its own grant in the new tenant. Keep your current email security layer until the checklist below is done.

Start from where your mail is today

If your mail sits on premises behind a gateway, the gateway holds the MX record. Keep it there through the move, point its outbound route at the new platform, and give the new platform the gateway's IP addresses. Microsoft calls this Enhanced Filtering for Connectors (also known as skip listing),5 and Gmail an inbound gateway.6

If a hosted gateway fronts your current cloud platform, the same two settings apply.

With nothing in front of the platform, the move is DNS records and tenant settings. Moving a gateway to an API layer is a separate project, covered in the gateway to API migration guide.

Where a separate email security layer attaches

Microsoft describes three integration options for a non-Microsoft service and says not all are equally supportable.4 Gmail documents one inbound gateway setting.6

Method (platform's own name)Where it sitsWhat the platform documentsSource
Integration via DNS mail routingIn front, on the MX recordMicrosoft fully supports this with Enhanced Filtering for Connectors turned on; disable mail flow rules that bypass spam filtering4, 5
Integration via the Microsoft Graph API (Microsoft's mailbox data API)After delivery, in the mailboxScans after delivery, can remove messages, and typically needs full access to mailboxes4
Integration via in-and-out mail routingMail leaves Microsoft 365 and returnsReturning messages count as new; Microsoft strongly recommends avoiding it4
Inbound mail gateway (Gmail)In front, on the MX recordList every gateway public IP; Gmail does not enforce the sender's DMARC policy for this mail6

An API layer is granted per tenant, through Microsoft admin consent for the whole organization7 or Google domain-wide delegation (an app's access to all users' data) set by a super administrator.8 This page reads both as meaning the new tenant needs its own consent. The deployment models side by side are in cloud-native email security deployment options.

Email security checklist by migration phase

For a move from Google Workspace to Microsoft 365, this page does not restate Microsoft's routing method. Follow Microsoft's current migration guide for that step.

Before cutover

StepWhyWhereSource
Lower the TTL on the MX record before cutover day (this page's advice)Other servers keep the old record until its TTL runs out. Google says to use the registrar default or enter "1", with no unit, so check your DNS host's unit. New MX records can take up to 72 hours to be recognizedDNS host9
Merge both platforms into one SPF recordOne SPF record per domain. Two records return permerror (a permanent SPF error), and so do more than 10 DNS lookups. Microsoft uses include:spf.protection.outlook.com and Google uses include:_spf.google.comDNS host10, 11, 12
Publish the new platform's DKIM keys before it sends mailMicrosoft uses two CNAME (alias) records that point to the tenant's initial (onmicrosoft.com) domain. Google DKIM can take up to 48 hours to start working. Each platform signs with its own selector (key name), so the old and new keys can sit in DNS togetherDefender portal > Email authentication settings > DKIM; Admin console > Apps > Google Workspace > Gmail > Authenticate email13, 14, 15
Keep DMARC reports on and the policy unchangedDMARC passes only when SPF or DKIM aligns with the From domain, and services that modify mail in transit break those checksDNS host16, 17
Write down the old platform's security settingsGoogle's migration tool for Exchange lists email, calendar and contact data, and names no security settingsOld admin console18

While both systems receive mail

StepWhyWhereSource
Route mail between the two systemsDual delivery sends each message to Gmail and the legacy system, with either one as the primary server. Split delivery sends incoming mail to one system by recipient and needs the MX record on Google. Gmail routing changes can take up to 24 hoursAdmin console > Apps > Google Workspace > Gmail > Routing; Exchange Online connectors and accepted domains1, 19, 20, 21
Give the new platform every gateway IPOtherwise SPF checks the gateway, not the real senderDefender portal > Email & Collaboration > Policies & Rules > Threat policies > Enhanced filtering; Admin console > Apps > Google Workspace > Gmail > Spam, Phishing and Malware5, 6
Assign the Standard or Strict preset policy (Microsoft's ready-made protection settings)In a new Microsoft tenant, these presets are assigned to no one until turned onsecurity.microsoft.com/presetSecurityPolicies22
Grant consent to any API layer in the new tenantConsent and delegation are made per tenant by an adminEntra admin center > Enterprise apps > Permissions; Admin console > Security > Access and data control > API controls > Manage Domain Wide Delegation7, 8

Cutover day

StepWhyWhereSource
Point MX at the new platform or the gateway if it has not moved yet, and delete old MX recordsGoogle says mail might not work correctly with old MX records keptDNS host; Admin console > Account > Domains > Manage domains9
Set where user reports goMicrosoft sends reports to a reporting mailbox you name; Gmail raises a "User-reported phishing" alertsecurity.microsoft.com/securitysettings/userSubmission; Admin console > Security > Alert center23, 24

After cutover

StepWhyWhereSource
Check the new tenant against the CISA SCuBA (Secure Cloud Business Applications) baselinesThe US Cybersecurity and Infrastructure Security Agency (CISA) publishes secure configuration baselines for Exchange Online and GmailScubaGear (Microsoft 365), ScubaGoggles (Google Workspace)25
Move DMARC to p=reject (reject mail that fails) once all senders passBoth baselines require p=reject and SPF that fails non-approved senders, and recommend DKIM on every domainDNS host26, 27
Disable automatic forwarding to external domainsThe Exchange Online baseline requires it; the Gmail baseline recommends itPolicy MS.EXO.1.1 in the Exchange Online baseline; policy GWS.GMAIL.11.1 in the Gmail baseline (each names the setting)26, 27
Remove the old platform from SPFIt spends DNS lookups against the limit of 10DNS host11, 12

Where AegisAI fits during a move

AegisAI needs no change to mail routing (MX records) and works with your gateway or Defender for Office 365.28 AegisAI connects through each platform's API with an OAuth grant (an app permission) your admin controls and can revoke.30 AegisAI is not in the critical path of mail flow, so if its service or the API connection is unavailable, delivery to mailboxes is unaffected.29 AegisAI starts read-only in monitoring mode, and removal needs write access that admins can grant or revoke.31 On Google Workspace, admins can deploy the AegisAI Report Phishing add-on domain-wide.28 To see AegisAI, book a demo. The connection is explained in API-based email security without an MX change.

Questions people ask

How does AegisAI connect to the new platform after a move?

AegisAI connects through the Microsoft 365 or Google Workspace API with an OAuth grant your admin controls and can revoke. It needs no MX change and starts read-only in monitoring mode.

We are moving to Microsoft 365 or Google Workspace. Do we still need a separate email security layer?

Keep your current layer through the move. After cutover, compare what it does with the new licence's defaults. Microsoft states that no number of layers reaches 100 percent protection, and that false positives rise as products are added.

does microsoft defender replace secure email gateways?

Microsoft documents a gateway in front of Microsoft 365 as one of three integration options, with Enhanced Filtering for Connectors turned on. Whether you keep one depends on what it does that your licence does not. See secure email gateway with Microsoft E5.

is security gateway suitable for organizations migrating to microsoft 365 or google workspace that need a dedicated email security layer beyond built-in protections?

A gateway can stay on the MX record during the move if the new platform lists its IPs. Gmail does not enforce the sender's DMARC policy for mail from the gateway. An API layer attaches after delivery instead.

do i still need a secure email gateway if i use microsoft defender for office 365?

It depends on what the gateway does that your licence does not. The built-in protection preset applies to all users in organizations with any Defender for Office 365 licences. List what your gateway does beyond that before you remove it.

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

That is a licence question. The seven checks are in do you still need a secure email gateway with Microsoft E5.

What breaks if the MX record changes twice?

Each change can take up to 72 hours to be recognized. If a gateway goes in front later, the new platform must list its IPs or SPF is checked against the gateway.

Can I add a separate layer to Google Workspace after the move?

Yes. Google documents an inbound mail gateway, and API tools connect through domain-wide delegation. See add a third-party email security layer to Google Workspace.

Sources

  1. Microsoft Learn: Built-in security features for all cloud mailboxes, page dated 10 December 2025, read 3 December 2026
  2. Google Workspace Admin Help: Advanced phishing and malware protection, last updated 2 December 2026, read 3 December 2026
  3. AegisAI: Inbound email security, read 3 December 2026
  4. Microsoft Learn: Integrate non-Microsoft security services with Microsoft 365, page dated 3 July 2026, read 3 December 2026
  5. Microsoft Learn: Enhanced filtering for connectors in Exchange Online, page dated 15 October 2026, read 3 December 2026
  6. Google Workspace Admin Help: Set up an inbound mail gateway, read 3 December 2026
  7. Microsoft Learn: Grant tenant-wide admin consent to an application, page dated 25 March 2025, read 3 December 2026
  8. Google Workspace Admin Help: Control API access with domain-wide delegation, read 3 December 2026
  9. Google Workspace Admin Help: Set up MX records for Google Workspace, read 3 December 2026
  10. Microsoft Learn: Set up SPF for your Microsoft 365 domain, page dated 3 July 2026, read 3 December 2026
  11. Google Workspace Admin Help: Troubleshoot SPF issues, read 3 December 2026
  12. IETF RFC 7208: Sender Policy Framework, April 2014, standard
  13. Microsoft Learn: How to use DKIM for email in your custom domain, page dated 3 July 2026, read 3 December 2026
  14. Google Workspace Admin Help: Set up DKIM, read 3 December 2026
  15. IETF RFC 6376: DomainKeys Identified Mail Signatures, September 2011, standard
  16. IETF RFC 9989: DMARC, May 2026, standard; obsoletes RFC 7489
  17. Microsoft Learn: How email authentication works in Microsoft 365, page dated 3 July 2026, read 3 December 2026
  18. Google Workspace Admin Help: About Google Workspace Migration for Microsoft Exchange, read 3 December 2026
  19. Google Workspace Admin Help: Dual delivery, read 3 December 2026
  20. Google Workspace Admin Help: Split delivery, read 3 December 2026
  21. Google Workspace Admin Help: Email routing and delivery options, read 3 December 2026
  22. Microsoft Learn: Preset security policies, page dated 3 July 2026, read 3 December 2026
  23. Microsoft Learn: User reported message settings, page dated 28 September 2026, read 3 December 2026
  24. Google Workspace Admin Help: View alert details, last updated 2 December 2026, read 3 December 2026
  25. CISA: Secure Cloud Business Applications (SCuBA), read 3 December 2026
  26. CISA: Microsoft 365 Secure Configuration Baseline for Exchange Online, baseline as read on 3 December 2026
  27. CISA: Google Workspace Secure Configuration Baseline for Gmail, baseline as read on 3 December 2026
  28. AegisAI: How AegisAI triages reported phishing, read 3 December 2026
  29. AegisAI: email security and mail flow outages, read 3 December 2026
  30. AegisAI: home page, read 3 December 2026
  31. AegisAI: Platform, read 3 December 2026

Recent posts

Every email, investigated.