The IIS SMTP Server is deprecated – what now?

Scanners, business applications and servers often still send their mail through the old IIS 6 SMTP Server. Windows Server 2025 no longer includes it. Here are your options and how to make the switch.

Illustration of migration and rollout

On many Windows servers, a service has been running quietly for years that hardly anyone thinks about: the IIS 6 SMTP Server (Windows feature “SMTP Server”, service SMTPSVC). It accepts mail from devices and applications on the network and forwards it – to Exchange Online, to the provider's mail server or directly to the internet. It is still managed with the old IIS 6 Manager, and its settings live in the IIS 6 metabase.

What the IIS SMTP Server is still used for

  • Scanners and multifunction printers that send scanned documents by e-mail and support neither modern authentication nor current TLS.
  • Business applications and scripts that send via SMTP to localhost or an internal server – invoices, notifications or monitoring alerts, for example.
  • Applications using the pickup folder: they drop finished messages as files into the Pickup folder, and the service picks them up and delivers them.
  • Central relay: one server that all internal systems send through – with the relay restricted to specific IP addresses and a smart host for forwarding.

What Microsoft says

The deprecation came in stages. For Windows Server 2019, Microsoft already lists IIS 6 Management Compatibility (metabase compatibility, IIS 6 Management Console, scripting tools and WMI compatibility) as no longer developed – exactly the components the SMTP Server relies on. For Windows Server 2025, Microsoft lists the IIS 6 Management Console and the SMTP Server as removed. According to Microsoft, there is no replacement within the operating system; it points to Exchange Server or a non-Microsoft SMTP server instead. The Exchange Online documentation adds that Windows Server 2022 is the last version with the SMTP Server feature and that it is not supported for relaying mail to Microsoft 365.

So on Windows Server 2019 and 2022 the service keeps running and receives updates within the product lifecycle. But it is no longer being developed, and it disappears with the next server upgrade.

The risks of leaving everything as it is

  • Dead end at the next upgrade: moving to Windows Server 2025 means replacing the relay anyway – often under time pressure, once scans suddenly stop arriving.
  • No support for the most important path: relaying to Microsoft 365, which is what the service usually does today, is not supported by Microsoft.
  • No modern authentication: towards the destination, the IIS SMTP Server only knows Basic and Integrated Windows authentication, not OAuth 2.0.
  • Little transparency: answering “did the mail go out?” means digging through log files and queue folders.

The alternatives

  • Send directly to Exchange Online: devices and applications deliver to Microsoft 365 themselves – via SMTP AUTH with a mailbox, via direct send (only to recipients in your own tenant) or through a connector that identifies the sender by certificate or a static IP address. This usually requires TLS 1.2 or later, and Microsoft is retiring Basic authentication for SMTP AUTH. For older devices, that is often the obstacle.
  • Cloud services: Microsoft mentions Azure Communication Services Email or High Volume Email for Microsoft 365 (internal recipients only). Applications usually have to be reconfigured, and there is no pickup folder.
  • Exchange Server: Microsoft's own recommendation – but a full Exchange server just as a relay is oversized for many environments and costs licenses and maintenance.
  • An own relay on Windows: an SMTP service that takes over the role of the IIS SMTP Server. The advantage: devices and applications don't have to be touched.

How to approach the switch

  1. Identify relay clients: which IP addresses are in the relay list? Which systems appear in the SMTP logs of the virtual server? If logging is off, turn it on for a few days first.
  2. Check the pickup folder: which applications drop files into it? Applications that read the path from the IIS metabase (in .NET, PickupDirectoryFromIis) need the SMTP Server feature installed for that, or must be switched to an explicitly specified folder.
  3. Document the configuration: bindings and ports, authentication, domains, smart host, certificate and credentials for forwarding.
  4. Choose the target and test it – ideally in parallel on a new server.
  5. Switch over: drain the queue, stop and disable the old service, send a test message and watch the logs.

PriCoSoft MailRelay as a drop-in replacement

For the “own relay” path we developed PriCoSoft MailRelay – an SMTP relay service for Windows Server 2019, 2022 and 2025. It behaves like the IIS SMTP Server: same ports, same pickup, drop and badmail folders, SMTP log in W3C format with the IIS field names. The built-in import reads the configuration of all SMTP virtual servers from MetaBase.xml – from a copied file too, if needed – and shows notes before you apply it. Stored passwords for forwarding cannot be read and have to be entered again; MailRelay does not take over messages from the old queue, so drain it before switching.

The Lite edition is free, without a time limit, and does everything the IIS SMTP Server did – plus TLS with a client certificate and a policy per destination domain, and message tracking for every message. The Professional edition (per installation, on request) adds OAuth 2.0 for Exchange Online, Let's Encrypt certificates and DKIM signing, among other things.

If you still run an on-premises Exchange server only as a relay, our guide to retiring the last Exchange server shows the way. We are happy to help you with the inventory and the switch.

More articles

Running a program as a Windows service: the options compared

A business application should run on the server without anyone logged on and survive every reboot. sc.exe, the old srvany, Task Scheduler or a service wrapper – what works, where the limits are and why windows suddenly become invisible.

View all articles