Microsoft 365 Best Practices Library · Set up and run
Exchange Server decommissioning: retire the last on-premises server the right way
Every mailbox is in Microsoft 365. The old Exchange server is still in the rack, using power, needing patches and offering attackers a target. The obvious move is to switch it off. In many companies that is the wrong move, because the server still does a job nobody remembers: it is where user email settings are managed when accounts are synchronized from Active Directory. This checklist helps you find out which situation you are in, and then remove Exchange in the order Microsoft describes.
Prefer to have it done for you? IT Perfection provides Microsoft 365 managed services for companies in Irvine, Orange County and Los Angeles County.
Written by Ali Hassani, CISSP and C|CISO · 25+ years designing, securing and supporting business networks · Updated November 2026



Microsoft 365 Best Practices Library › Set up and run › Exchange decommissioning
Why it matters
Why you cannot just switch it off
An old Exchange server that nobody uses for mail is a liability. It still has to be patched, and unpatched Exchange servers have been a frequent target. So the wish to remove it is right.
The complication is directory synchronization. Microsoft explains that when a user is synchronized from the on-premises environment to the cloud, most of that user’s properties cannot be managed from Exchange Online; they must be managed on-premises. Remove the server without a plan and simple tasks, such as adding an email alias, become difficult.
Which scenario
Three situations, three answers
Microsoft’s decommissioning guidance describes three common situations once all mailboxes are in Exchange Online. Find yours before touching the server.
| Your situation | Microsoft’s recommendation |
|---|---|
| All mailboxes are in the cloud, users will be managed in Microsoft 365, and you do not need directory synchronization. | You can disable directory synchronization and remove Exchange from the on-premises environment. |
| All mailboxes are in the cloud, but you are keeping directory synchronization. | The source of authority for recipients is still on-premises. Either keep one or two Exchange servers for management, or use the Exchange management tools option that allows the last server to be shut down. |
| All mailboxes are in the cloud, but Exchange still provides SMTP relay or public folders. | Microsoft recommends against removing Exchange and the hybrid configuration until those services are moved. |
Microsoft has published two more targeted articles for the second situation: one on managing recipients with the Exchange management tools so the last server can be shut down, and one on decommissioning the last server after transferring the source of authority for Exchange attributes to the cloud. Read the one that matches your setup before deciding; the options have changed over the last few years.
Find the dependencies
What the old server may still be doing
| Dependency | How to find it | What to do |
|---|---|---|
| Mail routing (MX) | Check the MX record for each domain. | Point it to Exchange Online. |
| Autodiscover | Check internal and external DNS, and the service connection point. | Point DNS to Exchange Online and clear the service connection point. |
| SMTP relay | Look at the receive connector logs for devices and applications that send mail through the server. | Move each to Microsoft 365 or another relay. |
| Public folders | Check whether public folders are still on-premises. | Migrate them to Exchange Online first. |
| Hybrid connectors and sharing | Look for the connectors and organization relationship the Hybrid Configuration wizard created. | Remove them as part of the procedure. |
| Recipient management | Is directory synchronization on? | Decide how recipients will be managed afterwards. |
| Certificates, firewall rules, backups, monitoring | Your documentation. | Remove after the server is gone. |
The receive connector logs are the most useful evidence you have. Leave logging on for at least two weeks and list every device and application that connects. Anything on that list stops working the moment the server goes.
Before you start
What to have ready
- Confirmation that no mailboxes remain on-premises. Including shared, room and archive mailboxes.
- Two weeks of connector logs. To find relay devices.
- A full backup of the Exchange server and of Active Directory. Tested.
- Access to internal and external DNS.
- The roles. Exchange organization administrator on-premises and Exchange Administrator in Microsoft 365.
- A decision on directory synchronization. Keeping it or turning it off changes the whole plan.
- A change window. And a note to staff that scanning to email may be interrupted.
Step by step
The removal, in the order Microsoft describes
These steps follow Microsoft’s first scenario: all mailboxes in the cloud and no directory synchronization afterwards. If you are keeping synchronization, steps 1 to 6 still apply, but do not uninstall the last server until recipient management is settled.
Check public folders
In the Exchange Management Shell, check the organization’s public folder setting. If it shows that public folders are remote and you still need them, migrate them to Exchange Online before going further.
Point MX and Autodiscover to Exchange Online
Update the DNS records. Microsoft stresses updating both internal and external DNS; otherwise client connectivity can be inconsistent.
Clear the service connection point
Remove the Autodiscover service connection point values from the Exchange servers so that Outlook uses DNS to find the mailbox.
Move the relay devices
Reconfigure each scanner, copier and application from your log list to send through Microsoft 365 or another relay. Test each one.
Remove the hybrid connectors
Exchange admin center › Mail flow › Connectors
Disable or delete the inbound and outbound connectors that the Hybrid Configuration wizard created.
Remove the organization relationship and OAuth configuration
Exchange admin center › Organization › Sharing
Remove the relationship created by the wizard, and disable the OAuth configuration on both sides as Microsoft’s article describes.
Illustration of a pre-uninstall checklist. This is not a screenshot of a Microsoft product.Decommissioning planIllustrationScenarioDependenciesDNSRelayHybridUninstallExchange decommissioning › ChecklistBefore the uninstallDoneNo mailboxes on-premisesPublic folders migrated or not in useMX and Autodiscover point to Exchange OnlineService connection point clearedRelay devices moved and testedStill to doHybrid connectors removedRecipient management decidedBackup of server and Active Directory verifiedTurn off directory synchronization, if that is your decision
After this, all user management is done in Microsoft 365. This is a significant change beyond email: make it deliberately.
Uninstall Exchange
Uninstall Exchange from the server through its setup program. Do not simply delete the virtual machine: a proper uninstall removes the server from the Exchange organization in Active Directory.
Clean up
Remove the firewall rules that published the server, its certificates, backup jobs and monitoring. Update your documentation.
Recommended values
The plan at a glance
| Item | Recommended |
|---|---|
| First question | Is directory synchronization staying? |
| Evidence | Two weeks of receive connector logs |
| DNS | Internal and external, both updated |
| Relay devices | Moved and tested before removal |
| Public folders | Migrated first, if still needed |
| Removal | Uninstall Exchange; never just delete the server |
| Backups | Server and Active Directory, tested, before the uninstall |
| Afterwards | Firewall rules, certificates and monitoring removed |
The scenarios and the order of steps are from Microsoft Learn, How and when to decommission your on-premises Exchange servers in a hybrid deployment and Manage recipients in Exchange Hybrid environments using Management tools, checked November 22, 2026. Read the current articles before acting: this area has changed several times.
Check that it works
How to confirm the result
- Mail flows. In and out, for every domain.
- Outlook connects. A new Outlook profile finds the mailbox, inside and outside the office.
- Devices send email. Each scanner and application from the list.
- Recipients can be managed. Add an alias to a test user by your chosen method.
- No Exchange server is listed. In the Exchange organization, if you removed the last one.
- Nothing is published. The old server’s addresses no longer answer from the internet.
Mistakes and rollback
Common mistakes, and how to step back
- Powering the server off and leaving it. Exchange is still registered in Active Directory.
- Deleting the virtual machine. The same problem, without a way back.
- Forgetting directory synchronization. Mailbox settings can no longer be managed normally.
- Forgetting the relay. The copier stops scanning to email.
- Updating only external DNS. Outlook inside the office still looks for the old server.
- Leaving the server running “for now”, unpatched. The worst of both: a target with no purpose.
- Using unsupported editing tools on Exchange attributes. Microsoft does not support them; use them at your own risk.
Rollback. Until Exchange is uninstalled, each step can be reversed: DNS records and connectors can be restored. After the uninstall, going back means restoring from backup, which is why the backup of the server and of Active Directory comes first.
Licenses
Which plan gives you what
| Item | Note |
|---|---|
| Removing Exchange | No license needed. |
| Keeping a server only for recipient management | Licensing terms apply and have changed between Exchange versions. Check Microsoft’s current guidance for your version. |
| Relay through Microsoft 365 | Included with Exchange Online; the method you choose has its own requirements. |
Have us do it
Prefer to hand this off?
IT Perfection decommissions on-premises Exchange for companies in Irvine, Orange County and Los Angeles County: finding what still depends on the server, moving relay devices, updating DNS, deciding how recipients will be managed, and uninstalling Exchange in the documented order. You receive a written scope and a written quote before any work starts.
Next in the library
Related guides
For a formal written audit of your Microsoft 365 tenant, OC Security Audit, our related cybersecurity brand also led by Ali Hassani, does that work.

Who does the work
Written by Ali Hassani, CISSP, C|CISO
Ali Hassani has 25+ years of hands-on experience in IT operations, cybersecurity, Microsoft infrastructure, network security and Azure, and works with businesses in Irvine, Orange County and Los Angeles County. Design, implementation and troubleshooting work is planned and reviewed by Ali personally.
This guide is for education and planning. It does not replace a professional audit, compliance assessment or vendor engineering review. Updated November 2026.








FAQ
Exchange decommissioning: common questions
Can I remove the last Exchange server after moving to Microsoft 365?
It depends on directory synchronization. If you do not need it, Microsoft says you can disable it and remove Exchange. If you keep it, recipient properties are still managed on-premises, so you either keep a minimal server or use Microsoft’s management-tools approach that allows the last server to be shut down.
Why can I not just switch the Exchange server off?
Exchange would still be registered in Active Directory, devices that relay mail through it would stop working, and with directory synchronization on you would lose the normal way to manage mailbox properties.
What is the first thing to check?
Whether user accounts are still synchronized from Active Directory to Microsoft 365, and whether the server still provides SMTP relay or public folders.
Do I need to update DNS?
Yes. Point the MX and Autodiscover records to Exchange Online. Microsoft stresses updating both internal and external DNS, otherwise client connectivity can be inconsistent.
What about scanners and applications that send email through Exchange?
Find them in the receive connector logs and move each one to Microsoft 365 or another relay before the server is removed.
Should I uninstall Exchange or delete the server?
Uninstall Exchange through its setup program so the server is removed from the Exchange organization properly. Deleting the virtual machine leaves it registered in Active Directory.
What if Exchange still hosts public folders?
Microsoft recommends against removing Exchange and the hybrid configuration until services such as public folders and SMTP relay are migrated.
Would you rather hand this off?
Exchange Server decommissioning
We retire your old on-premises Exchange server safely after the move to Exchange Online.
- Mailboxes, mail flow, connectors and DNS checked before anything is removed
- A decision on whether a management server or tools must stay for hybrid management
- Clean removal with notes on what changed
Each project has a written scope and a written quote before any work starts.
Need this done for your business?
IT Perfection plans, installs and supports this for companies in Irvine and Orange County
The guides explain the steps. If you would rather have it done, planned and documented by an experienced engineer, these are the services that cover it. Design, implementation and troubleshooting work is planned and reviewed by Ali Hassani personally.
Microsoft 365 managed services
Exchange, Teams, SharePoint and OneDrive run and secured for you.
View serviceMicrosoft 365 migration and setup
Mail, calendars and files moved with a tested plan, secured from day one.
View service