"All our mailboxes are in Exchange Online. Can we turn off the Exchange server now?" We hear this in almost every hybrid tenant we take on, and the honest answer is usually "not yet."
In a synchronized hybrid environment, the last on-premises Exchange server often still manages Exchange attributes, relays SMTP for printers and applications, carries hybrid mail flow, publishes Autodiscover to domain-joined clients, and supports mail-enabled groups and contacts. Removing it safely is not a server shutdown. It is a dependency-removal and source-of-authority project.
This article walks through a real Exchange Server 2019 hybrid decommissioning project we are running for an organization with more than 3,000 Exchange Online mailboxes. Client details have been removed. Discovery, mailbox cleanup, and the mailbox-level transfer of Exchange attribute management are done. Group strategy, hybrid cleanup, final validation, and the uninstall itself are still ahead, and we will be clear about which is which.
Microsoft now supports managing Exchange attributes in Exchange Online for directory-synchronized users. That removes the classic reason for keeping an Exchange server around. But it only solves one dependency. Before uninstall, each of these needs an answer:
Before changing anything, we documented the environment end to end:
The good news came quickly. Synchronization was healthy: delta sync was scheduled, the service was not suspended, and the server was not in staging mode. Public MX and Autodiscover already pointed to Microsoft 365, SPF did not reference the Exchange server, and there were no public folders, which removed a common uninstall blocker.
Public DNS was not the full picture, though. Domain-joined Outlook clients can query the Autodiscover Service Connection Point (SCP) in Active Directory before they ever look at DNS, so internal DNS and the SCP went on the list too.
SMTP relay is the most common hidden dependency on a last Exchange server. Printers, scanners, monitoring tools, scheduled jobs, line-of-business apps, and older appliances keep sending through on-premises receive connectors long after users have moved.
In this project, a custom receive connector traced back to a retired application. We disabled it and verified nothing broke. A wider review of connectors and anonymous relay permissions did not reveal another active relay path.
That is progress, not a sign-off. Exchange Setup removes receive connectors during uninstall, so any relay we missed will simply stop working. Right before uninstall, we will check connector configuration, protocol logs, application owners, and known device IP ranges again. A disabled connector is evidence. A successful test from every known device and application is stronger evidence.
A simple mailbox count hides a lot. Our on-premises sweep found:
After remediation, no active on-premises user mailboxes remained, only known system objects that Setup handles during uninstall.
These cases matter because duplicate recipients, mismatched Exchange GUIDs, disconnected mailboxes, and overlooked archives can break mail routing or block Exchange Setup. Before moving authority, confirm that primary SMTP addresses, Exchange GUIDs, recipient types, remote-mailbox state, aliases, and archive state agree on both sides. If a remote mailbox was just created or repaired, let synchronization and backend processing finish first.
Setting IsExchangeCloudManaged to true on a mailbox moves the source of authority for supported Exchange attributes to Exchange Online. Identity attributes stay with on-premises Active Directory. That distinction is easy to miss:
Per mailbox, the change itself is simple in Exchange Online PowerShell:
Set-Mailbox -Identity user@contoso.com -IsExchangeCloudManaged $true
Get-Mailbox -Identity user@contoso.com | Format-List IsExchangeCloudManaged
The work is in the sequence around it. We ran it in four stages:
Most mailboxes transferred on the first pass. A small set failed because our script addressed recipients by alias, and the same alias existed in more than one accepted domain. These were genuine identity ambiguities, not corrupt data. Retrying with full SMTP addresses fixed every one of them. We also held back one recently repaired remote mailbox so synchronization could settle before its transfer.
Two lessons came out of this stage:
IsExchangeCloudManaged covers mailboxes only. It does not transfer authority for distribution groups, mail-enabled security groups, or mail contacts. Microsoft handles those through separate Group and Contact source-of-authority transfers.
This environment has more than 200 distribution groups, so groups are their own workstream. Before changing group authority, inventory and classify:
Test group conversion carefully. Current Microsoft guidance lists real limitations, including no reconciliation of local AD changes after cloud authority is set, special handling for nested groups, and no support for extension attributes 1 through 15 on converted cloud security groups. Mailbox success is not the same as finishing recipient-management migration.
Removing the last Exchange server does not mean replacing Entra Connect Sync with Entra Cloud Sync. Here, on-premises AD stays the source of authority for identity, so Entra Connect keeps doing its job.
Cloud Sync matters for a narrower reason: Exchange attribute writeback. Microsoft supports using Cloud Sync to write selected Exchange attributes changed in Exchange Online back to AD. You only need it if something on premises reads those values, such as proxyAddresses, mail, or extension attributes.
We treat this as a business decision, not a default:
We are still waiting on application owners for the final answer, so writeback is a pending decision.
Transferring existing mailboxes does not decide what happens to the next new hire. Microsoft's last-server guidance calls for a tenant-wide Exchange attribute setting when on-premises AD keeps provisioning users, so new Exchange Online mailboxes are cloud-managed by default instead of needing a per-mailbox transfer later. We are documenting that setting and the matching procedure now.
The operational runbook should cover how administrators will:
Decommissioning is not finished when the server disappears. It is finished when routine administration works predictably without it.
These are the highest-risk steps, and none should be rushed.
After every mail flow change, test internal and external mail, shared and resource mailbox access, distribution group expansion and moderation, device and application relay, Autodiscover from inside and outside the network, free/busy while hybrid features remain, and message tracing.
Done:
Still ahead:
The server has not been uninstalled, and we will not call this project complete until every gate above is closed.
Moving thousands of mailboxes to cloud-managed Exchange attributes, while keeping on-premises AD and Entra Connect for identity, works. The hard part is everything around it: legacy relay connectors, stale mailbox types, duplicate cloud objects, ambiguous aliases, groups with their own authority model, and applications that quietly read from AD.
Success is not "the server is off." Success is when every dependency has an approved destination, every admin task has a supported owner, mail flow has been proven without the server, and Exchange Setup has removed it cleanly.
If you are still running a last Exchange server "just for management," or you are not sure what still depends on it, talk to NIFTIT. We help small and mid-sized organizations assess hybrid dependencies, plan the source-of-authority transition, and retire Exchange on premises without surprises. You can also read our Intune and Exchange Hybrid success story for how we approach hybrid environments from the start.
Sources: Microsoft Learn, "Decommission the last Exchange Server after transferring SOA to cloud," "Cloud-based management of Exchange attributes for Remote Mailboxes in hybrid environments," and "Configure Group Source of Authority (SOA) in Microsoft Entra ID." Microsoft hybrid guidance changes often, so recheck current procedures and syntax before making production changes.