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.

Ali Hassani, CISSP and Certified CISO, IT PerfectionWritten by Ali Hassani, CISSP and C|CISO · 25+ years designing, securing and supporting business networks · Updated November 2026

Network engineer with a laptop beside a server rack
1 · AssessWe find out what the old server still does.

Microsoft 365 Best Practices Library › Set up and run › Exchange decommissioning

What it isThe planned removal of on-premises Exchange servers after all mailboxes have moved to Exchange Online: deciding whether the last server can go, moving what still depends on it, and uninstalling Exchange cleanly.
Where it livesOn-premises Exchange Management Shell, Exchange admin center (admin.exchange.microsoft.com), your DNS, and Microsoft Entra Connect
License neededNo license is needed to remove Exchange. Keeping a server for management has its own licensing terms; check Microsoft’s current guidance.
Time to set upOne to two weeks of preparation and checks; a few hours for the removal itself.
Risk if missingHigh Removing the server the wrong way can leave you unable to manage mailbox settings, break mail from devices, and leave broken records in Active Directory.

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.

Recipient managementWith directory synchronization on, mailbox properties are managed on-premises.
SMTP relayScanners, copiers and business applications often send mail through the old server.
Public foldersIf they still live on-premises, they need migrating first.

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 situationMicrosoft’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

DependencyHow to find itWhat to do
Mail routing (MX)Check the MX record for each domain.Point it to Exchange Online.
AutodiscoverCheck internal and external DNS, and the service connection point.Point DNS to Exchange Online and clear the service connection point.
SMTP relayLook at the receive connector logs for devices and applications that send mail through the server.Move each to Microsoft 365 or another relay.
Public foldersCheck whether public folders are still on-premises.Migrate them to Exchange Online first.
Hybrid connectors and sharingLook for the connectors and organization relationship the Hybrid Configuration wizard created.Remove them as part of the procedure.
Recipient managementIs directory synchronization on?Decide how recipients will be managed afterwards.
Certificates, firewall rules, backups, monitoringYour 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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. Remove the hybrid connectors

    Exchange admin center › Mail flow › Connectors

    Disable or delete the inbound and outbound connectors that the Hybrid Configuration wizard created.

  6. 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.

  7. Turn 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.

  8. 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.

  9. 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

ItemRecommended
First questionIs directory synchronization staying?
EvidenceTwo weeks of receive connector logs
DNSInternal and external, both updated
Relay devicesMoved and tested before removal
Public foldersMigrated first, if still needed
RemovalUninstall Exchange; never just delete the server
BackupsServer and Active Directory, tested, before the uninstall
AfterwardsFirewall 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

ItemNote
Removing ExchangeNo license needed.
Keeping a server only for recipient managementLicensing terms apply and have changed between Exchange versions. Check Microsoft’s current guidance for your version.
Relay through Microsoft 365Included 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.

Ali Hassani, CISSP and Certified CISO, IT Perfection

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.

ISC2 CISSP badgeEC-Council Certified CISO (C|CISO) badgeCisco CCNP Routing and Switching badgeMCSE: Server Infrastructure badgeMicrosoft MCSE badgeMCSA: Security badgeCisco CCNA Cybersecurity badgeMCITP badge

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 service

Microsoft 365 migration and setup

Mail, calendars and files moved with a tested plan, secured from day one.

View service

SPF, DKIM and DMARC setup

Email authentication set up so your domain cannot be spoofed.

View service