You can remove the last on-premises Exchange server once no mailbox, archive, public folder or system mailbox lives on it, and once you no longer need it to manage recipients or relay mail. The catch is directory synchronisation. If Entra Connect (formerly Azure AD Connect) still syncs your users, moving every mailbox to Exchange Online is not enough, because the Exchange attributes still need a place to be managed. This guide walks through the checks, the changes and the uninstall, in the order we would run them for an Australian small or medium business.

Techbug
techbug.com.au
Plan a Safer Exchange Decommission
TechBug provides managed IT and cybersecurity support for Australian businesses, including help assessing the risks of removing legacy servers.

Explore TechBug support

TL;DR

  • Having every mailbox in Exchange Online is not the finish line. If directory sync remains, you must also transfer the source of authority (SOA) for Exchange attributes to the cloud, or keep a server or the management tools.
  • Check the less obvious dependencies first: system mailboxes, Offline Address Books, public folders, SMTP relay from printers and apps, MX, Autodiscover and the Autodiscover SCP.
  • Do not uninstall if you plan to keep the Exchange Management Tools for recipient management. Uninstalling removes the Active Directory objects those tools rely on.
  • After the uninstall, clean up the leftover hybrid objects in Exchange Online and test mail flow in both directions.
  • Removing an internet-facing Exchange server also removes a high-value target from your network.

Table of Contents

Why the last server is still there

Most hybrid deployments start as a migration project. Mailboxes move to Microsoft 365, the project is declared finished, and one Exchange server stays online “just in case”. Years later it is still patched (or not), still holding the hybrid configuration, and still the only way to edit an email alias for a synced user.

That server often does three quiet jobs:

  1. Recipient management. In a synchronised environment, many user properties are managed in on-premises Active Directory, and Exchange attributes are part of that. Microsoft explains that having all mailboxes online is not sufficient if directory synchronisation remains, because most user properties must still be managed on-premises.
  2. SMTP relay. Scanners, multifunction printers, accounting software and line-of-business apps often send mail through the old server.
  3. Hybrid plumbing. Connectors, the organisation relationship and migration endpoints all point at it.

The security argument for removal is real. The Australian Cyber Security Centre says Exchange environments remain continuously targeted and that end-of-life versions carry heightened compromise risk. It also states that Exchange Server Subscription Edition (SE) is the only supported on-premises version since support for earlier versions ended on 14 October 2025, and recommends moving unsupported versions to Exchange SE or an alternative supported service.

Decide first: keep, upgrade or remove

Before you touch anything, pick the path. There are three realistic ones.

Path When it fits What it costs you
Move the server to Exchange SE and keep it You rely on on-premises Exchange for management, relay or an app that reads Exchange attributes A supported server you must patch, harden and monitor
Keep only the Exchange Management Tools You want recipient management without a running mail server Ongoing dependency on the AD objects the tools need; you cannot uninstall the server
Remove the last server completely All mailboxes are online and you can manage recipients from the cloud A one-off project, then no on-premises Exchange to patch

Microsoft’s recipient guidance states that the management-tools-only option can manage recipients without a running Exchange server, but that uninstalling the server removes the Active Directory information the tool package requires. So the choice is genuinely either/or: tools-only means the server must not be uninstalled through Setup.

For most small businesses with a few dozen to a couple of hundred users, full removal is the cleaner outcome. It means fewer moving parts and one less internet-facing system. If you are still earlier in the journey, see our guide to fast Exchange Online migration for Australian SMEs.

When you can actually uninstall

Microsoft’s current guidance for the last server sets out the conditions. In plain terms, you are ready when all of these are true:

  • Every on-premises mailbox, archive, public folder mailbox and system mailbox has been migrated or removed.
  • Every directory-synchronised mailbox has the Exchange attributes managed in the cloud, or the user has cloud SOA.
  • Groups and contacts that must be actively managed in the cloud have had their SOA transferred.
  • SMTP relay dependencies have been migrated, or you have decided to keep an Exchange server for them.
  • If sync remains, nobody needs the on-premises Exchange admin centre any more.

That list comes from Microsoft’s page on decommissioning the last Exchange server after transferring SOA. The older guidance describes a simpler case, where all users will be managed in Microsoft 365, directory synchronisation is no longer needed and all mailboxes are in Exchange Online. That is the easy path, but in our experience few SMEs have switched off sync.

Audit before you change anything

A decommission goes wrong when something nobody remembered stops working on Monday morning. Spend a day on discovery.

Mailbox objects, including the hidden ones

Run the five mailbox queries Microsoft specifies and confirm each returns nothing: regular mailboxes, archives, public folder mailboxes, arbitration mailboxes and audit-log mailboxes. System mailboxes are the ones people miss. Microsoft specifically requires checking arbitration, audit-log and similar system mailboxes, plus any Offline Address Book whose generating mailbox points at them. Move or remove those, or the uninstall will block or leave dangling references.

Five mailbox categories to check before removal

Public folders

Legacy public folders are the classic reason a server lingers. Confirm they have been migrated to Exchange Online (or retired) and that nothing in the business still points at them. Ask the team directly: shared contacts folders and old shared calendars are frequently still in use.

DNS and Autodiscover

Check three things:

  • MX records point to Exchange Online Protection, not your server or a gateway that forwards to it.
  • Autodiscover resolves to Exchange Online.
  • The Autodiscover SCP (service connection point in Active Directory) is cleared. Domain-joined Outlook clients query it first, so a stale value can send them to a server that no longer exists. Microsoft’s procedure clears it by setting the AutoDiscoverServiceInternalUri to null using Set-ClientAccessService (or Set-ClientAccessServer on older versions).

SMTP relay and application dependencies

This is where most small-business surprises happen. Walk the office and the line-of-business systems:

  • Multifunction printers and scanners that email PDFs
  • Accounting, CRM, practice management and job-scheduling software
  • Monitoring alerts and backup job notifications
  • Websites that send form or order emails
  • Anything that reads Exchange attributes from Active Directory

For each one, decide: reconfigure it to send through Microsoft 365 (SMTP AUTH client submission, a connector-based relay, or a different mail delivery service), or accept that you need to keep a relay server. Microsoft’s guidance is to migrate relay dependencies or keep Exchange. Do not assume the answer is automatic. Some older devices cannot do modern authentication, and that needs planning rather than a Friday-afternoon surprise.

Hybrid features

List your hybrid connectors, organisation relationship, IntraOrganizationConnector, migration endpoints and whether Centralized Mail Transport is turned on. You will disable or remove each of these in sequence. Also note any scripts, automation or third-party tools that connect to the server by name.

Moving management to the cloud: SOA transfer

This is the part that has changed how this job is done. Previously, a synced user’s Exchange attributes could only be edited on-premises, which is why a server was needed forever. Microsoft now documents transferring the source of authority for Exchange attributes to the cloud.

  • Mailboxes: for directory-synchronised mailboxes, set the IsExchangeCloudManaged attribute to true (or use the User SOA transfer). After that, administrators manage those recipients with Exchange Online tools.
  • Groups and contacts: if they need active cloud administration, use the Group SOA and Contact SOA transfer.
  • Management tools: if you would rather keep the Exchange Management Tools, stop. Do not uninstall the server.

Two practical tips. First, pilot with a few test accounts and confirm you can change an alias or hide an address from the address list in Exchange Online before you convert the rest. Second, record the pre-change state of key attributes (proxy addresses, mail nicknames, forwarding) so you can compare afterwards.

If your tenant is also part of a wider consolidation, our Microsoft 365 tenant migration guide for IT admins covers the identity side in more depth.

The decommission sequence

Here is the order we would work through. Take a full backup or checkpoint of the server and a current export of your AD configuration first.

  1. Recheck the five mailbox queries. All must return empty immediately before you proceed, in case someone created a mailbox or a system mailbox reappeared.
  2. Complete the SOA transfers for mailboxes, groups and contacts, and confirm management works from Exchange Online.
  3. Move the relay. Reconfigure printers and apps, and test each one sending to an internal and an external address.
  4. Point MX and Autodiscover to Exchange Online if they are not already, and allow for DNS TTL before moving on.
  5. Clear the Autodiscover SCP on the on-premises server.
  6. Disable Centralized Mail Transport if it was enabled.
  7. Remove hybrid connectors and relationships according to Microsoft’s steps.
  8. Uninstall Exchange. Either run Setup as administrator with Setup.exe /m:Uninstall /IAcceptExchangeServerLicenseTerms, or remove Microsoft Exchange Server 2019 through Programs and Features in Control Panel. Microsoft warns that this removes the Active Directory configuration containers and security groups the Management Tools depend on.
  9. Clean up Exchange Online. Inspect for orphaned hybrid objects using Exchange Online PowerShell, including the on-premises organisation and the migration endpoint, and remove what is left.
  10. Retire the server. Power it off, keep it for a short, agreed retention window, then decommission the VM or hardware and remove it from backups, monitoring and your asset register.

If you are also facing the Windows Server platform going out of support, it pays to plan both jobs together. Our Windows Server end-of-life playbook covers that side.

Verifying everything still works

Don’t call it finished at the uninstall. Check, in order:

  • MX and Autodiscover resolve to Exchange Online, the on-premises SCP is cleared and Centralized Mail Transport is off.
  • In Exchange Online, the hybrid connectors, organisation relationship, IntraOrganizationConnector, migration endpoint and accepted domain are reviewed. Microsoft notes you may need to change the accepted domain type from InternalRelay to Authoritative, otherwise mail for addresses that no longer exist anywhere may not bounce correctly.
  • Outlook on a domain-joined PC, Outlook on mobile and Outlook on the web all connect cleanly without prompts.
  • A printer scan-to-email, an accounting invoice email and a website form email all arrive.
  • You can create, edit and hide a recipient from Exchange Online or the Microsoft 365 admin centre.

Watch the mail logs and your helpdesk for the first week. Anything that was quietly depending on the old server tends to show up within a few days, often at month end when invoicing runs.

What we have learned doing this work

We see the same pattern with Australian SMEs: the migration finished years ago, the server stayed, and nobody owns it. It is not on the patch schedule, nobody remembers the admin password, and it is the first thing an attacker would probe. Our view is that a forgotten internet-facing mail server is a bigger risk than the decommission project that removes it.

What we have learned doing this work — overview diagram

We also think the order matters more than the commands. The uninstall itself takes minutes. The value is in the discovery: the scanner in the warehouse, the legacy app that reads an address attribute, the public folder the finance team still opens. Because we are vendor-agnostic, we will tell you honestly when keeping a supported Exchange SE server, or a different relay approach, is the better answer for your business than forcing a full removal.

Where you do remove it, finish the job by tightening the tenant. Once Exchange is gone, your Microsoft 365 configuration is your mail security. Our list of priority Microsoft 365 security controls is where we would start, followed by a tested Microsoft 365 backup so that the data you now depend on entirely in the cloud is recoverable.

— Ru

Common mistakes to avoid

  • Uninstalling while still using the Management Tools. This breaks the tools, because Setup removes the AD objects they need.
  • Forgetting system mailboxes and Offline Address Books. They block the uninstall or leave broken references.
  • Leaving the SCP in place. Outlook clients keep looking for a server that is gone, causing slow starts and prompts.
  • Skipping the relay audit. Scan-to-email and invoice emails are the first things users notice are missing.
  • Deleting the VM straight away. Keep a retained copy for a short, agreed period in case a dependency surfaces.
  • Forgetting the Exchange Online cleanup. Orphaned hybrid objects are harmless to users but confuse later administrators.

Getting help with the project

A hybrid decommission is a small project with a long tail of dependencies, and it is hard to undo once Setup has removed the AD configuration. If you would like a second set of eyes on your audit, or you want someone to run the cutover and the cleanup, our team in Brisbane works with businesses across Australia on managed IT services, cloud and Microsoft 365 work and cyber security. You can also reach us through our main site to talk through your setup and get an upfront quote.

FAQ

Can I remove the last Exchange server if I still use Entra Connect?

Yes, but only if the Exchange attributes for synced users, groups and contacts are managed in the cloud first. Microsoft’s current approach is the SOA transfer, using IsExchangeCloudManaged for mailboxes and the Group and Contact SOA transfers where needed. Without that, you still need Exchange on-premises or the Management Tools to edit recipients.

Do I need to keep a server just for SMTP relay?

Not necessarily. You can reconfigure devices and applications to send through Microsoft 365, or use another mail delivery approach. Some old devices cannot meet modern authentication requirements, so test each one before you remove the server. If a device cannot be changed, you may need to keep a supported Exchange SE server.

Is the Exchange Management Tools option safe to use instead?

It lets you manage recipients without a running Exchange server, but it depends on the Exchange objects in Active Directory. That means you must not run the Exchange uninstall. It is a valid choice if you cannot move to cloud management, though you then keep that dependency.

What happens if I just switch the server off?

Mail flow may keep working, but you leave stale AD objects, a live SCP and orphaned hybrid configuration behind. Outlook can slow down or prompt, and the tenant retains configuration pointing at a dead server. Uninstalling properly and cleaning up Exchange Online is the supported way.

Sources