How to connect an ERP on Windows Server 2012 R2 to Microsoft 365 email

Where Windows Server 2012 R2 stands today

WhatStatus
Windows Server 2012 R2Extended support ended on 10 October 2023; paid Extended Security Updates (ESU) ended on 13 October 2026. No security updates since.
Basic auth for SMTP AUTH in Microsoft 365Off by default for existing tenants at the end of December 2026; admins can turn it back on for a while; final removal date due in the second half of 2027.
Microsoft Store apps (MSIX)Not supported: they need Windows 10 1809 / Server 2019 or newer.
Microsoft Edge WebView2Version 109 is the last one for 2012 R2, without further updates.
TLS 1.2Supported by Windows, but older .NET applications use it only after registry changes.
Our recommendation: upgrade. A server without security updates that sends company mail is a risk no mail relay can remove. Windows Server 2025 can be installed over 2012 R2 directly (in-place upgrade). Use the build below as a bridge for the weeks or months the move takes — not as a reason to stay on 2012 R2.

Why ERP mail breaks on old servers

  • Basic authentication. Most ERP and accounting systems sign in to smtp.office365.com with a user name and password. When the tenant turns basic SMTP AUTH off, sending fails with 550 5.7.30 Basic authentication is not supported for Client Submission; if SMTP AUTH itself is disabled, with 535 5.7.139.
  • No OAuth in the software. Microsoft’s answer is OAuth for SMTP — but an ERP version that still runs on 2012 R2 rarely has it, and updating it often means a new server anyway.
  • TLS. Microsoft 365 accepts only TLS 1.2. Applications on older .NET Framework versions on 2012 R2 fail with “The connection was closed” or “SSL negotiation failed” until SchUseStrongCrypto is set.

What still works on 2012 R2

Basic SMTP AUTHConnector relayLocal relay — PostMount
Changes in the ERPNoneServer = your MX host, port 25Server = localhost
After December 2026Only while an admin re-enables basic authYesYes — Microsoft Graph, not SMTP AUTH
NeedsSMTP AUTH on for the mailbox, no MFAStatic public IP, inbound connector, SPFPostMount on the server (this build)
TLS 1.2 in the ERPRequiredRecommendedNot needed — the ERP talks to localhost
Shared mailbox as senderNoYesYes, without a license

A connector relay is a good choice if the office has a static public IP and an admin who maintains Exchange connectors — see our scan-to-email guide, which compares all five methods. Without that, a local relay is the simplest way: the ERP keeps sending plain SMTP to the same server, and PostMount hands each message to Microsoft 365 over HTTPS.

PostMount for Windows Server 2012 R2

PostMount from the Microsoft Store needs Windows Server 2019 or newer. For servers that can’t be upgraded yet we made a separate build of the same version, packed as a regular program — no Store, no .NET to install. It was tested on Windows Server 2012 R2 on 3 December 2026. The archive has everything in one place:

PostMount 1.0.28 for Windows Server 2012 R2
ZIP · 86 MB · 64-bit · same license and 14-day free trial as the Store version
Download ZIP
  • PostMount\ — the app with .NET included;
  • MicrosoftEdgeWebview2Setup.exe — Microsoft’s WebView2 installer, unchanged and signed by Microsoft (the same file as on Microsoft’s WebView2 page, “Evergreen Bootstrapper”);
  • Install service.bat / Uninstall service.bat — install or remove the Windows service;
  • README.txt — the short version of this guide.

About WebView2. PostMount shows Microsoft’s sign-in page in WebView2. On 2012 R2 the last available version is 109, and it gets no more updates — here it only opens the Microsoft 365 sign-in page. Microsoft’s offline “Evergreen Standalone Installer” does not work on 2012 R2 (error 0x80040901: it carries a newer version). The bootstrapper in the archive downloads version 109 by itself and needs internet access; for an offline server, take “Microsoft Edge-WebView2 Runtime Version 109 … x64” from the Microsoft Update Catalog.

Install PostMount as a service on 2012 R2

An ERP sends mail at night and after reboots, so run PostMount as a Windows service — it works with nobody signed in.

1. Unblock and extract the archive

Copy the ZIP to the server, remove the “downloaded from the internet” mark, then extract it:

Unblock-File C:\Temp\postmount-windows-server-2012-r2.zip

Without this, a Group Policy with RemoteSigned blocks every file from the archive with “is not digitally signed”.

2. Run Install service.bat

It asks for administrator rights, installs WebView2 if it is missing (about 150 MB from Microsoft), copies PostMount to C:\Program Files\PostMount Service\1.0.28, creates the PostMount service with automatic start, adds a Start menu shortcut and starts the service.

Install service.bat on Windows Server 2012 R2: the service is created and responding
Install service.bat on Windows Server 2012 R2: the service is created and responding
WebView2 Runtime 109.0.1518.140 — the last version for 2012 R2 — installed by Microsoft’s bootstrapper
WebView2 Runtime 109.0.1518.140 — the last version for 2012 R2 — installed by Microsoft’s bootstrapper

To check WebView2 by hand:

Get-ItemProperty 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}' | Select-Object pv

3. Sign in to Microsoft 365

Start → PostMount opens the service’s control panel. Select Sign in to Microsoft 365 and sign in with the account the ERP should send as — or one that may send from a shared mailbox, which you add with Add a shared mailbox.

The PostMount control panel and Microsoft’s sign-in window (WebView2 109) on Windows Server 2012 R2
The PostMount control panel and Microsoft’s sign-in window (WebView2 109) on Windows Server 2012 R2

On 2012 R2 the window shows empty squares instead of icons: the system has no Windows 10/11 icon fonts. It is cosmetic — the buttons work.

4. Check the mailbox

Edit next to the mailbox shows the connection settings and the local password for mail apps. In Monitor → Mailbox check, Check sends and receives a test message exactly as a mail app does. On our server: SMTP in 0.4 s, IMAP in 4.5 s, POP3 in 0.1 s.

Mailbox settings: server localhost, SMTP 25 and 587, IMAP 143, POP3 110 and a local password
Mailbox settings: server localhost, SMTP 25 and 587, IMAP 143, POP3 110 and a local password
Monitor: the service is running, SMTP, IMAP and POP3 checked, token renewed automatically
Monitor: the service is running, SMTP, IMAP and POP3 checked, token renewed automatically

Point the ERP at PostMount

Two ways, depending on what the ERP’s mail form allows:

FieldWith a password (mailbox)Without a password (mail gateway)
SMTP serverlocalhostlocalhost
Port587 (or 25)25
User namethe mailbox address— authentication off
Passwordthe local password from PostMount (not the Microsoft 365 password)—
Encryption (SSL/TLS)off — the connection never leaves the serveroff
Senderthe mailbox address or a shared mailbox you addedthe gateway’s main sender

For the gateway, open Mail gateway in PostMount, switch it on and choose the main sender; with the ERP on the same server, leave the device list empty. Then send a test message from the ERP. We tested PostMount on 2012 R2 with its built-in mailbox check, not with a particular ERP; the ERP side is ordinary SMTP — the same setup as in our Endpoint Central guide, where it was tested end to end.

Keep PostMount closed to the network

When only the ERP on the same server uses PostMount, nothing from outside should reach it. In the default mode (access from this computer only) PostMount listens on the loopback addresses alone:

$svc = (Get-WmiObject Win32_Service -Filter "Name='PostMount'").ProcessId
Get-NetTCPConnection -State Listen -OwningProcess $svc | Select-Object LocalAddress, LocalPort
The PostMount service listens on 127.0.0.1 and ::1 only — ports 25, 110, 143 and 587
The PostMount service listens on 127.0.0.1 and ::1 only — ports 25, 110, 143 and 587

Only 127.0.0.1 and ::1 should be listed. For extra safety, add a blocking firewall rule — it doesn’t affect localhost:

New-NetFirewallRule -DisplayName 'PostMount - block from network' -Direction Inbound -Protocol TCP -LocalPort 25,110,143,587 -Action Block -Profile Any

What this build doesn’t do

  • No automatic updates. The Store version updates itself; this one doesn’t. To update, download a newer archive and run Install service.bat again — settings and sign-in stay.
  • No Windows sign-in (WAM) and no Store features — sign in in the PostMount window.
  • WebView2 109 is frozen and the operating system gets no patches. That is the main reason to upgrade.

Remove everything with Uninstall service.bat; the settings go back to the regular app.

The way out: upgrade the server

  1. Check that the ERP vendor supports Windows Server 2022 or 2025, and back up the server.
  2. Upgrade in place to Windows Server 2025 — directly from 2012 R2 — or move the ERP to a new server.
  3. Install PostMount from the Microsoft Store (on Windows Server with winget) and run it as a Windows service. The ERP settings stay the same: localhost, the same ports.

Common problems

What you seeWhyWhat to do
The ERP: 550 5.7.30 or 535 5.7.139 from smtp.office365.comBasic auth or SMTP AUTH is off in the tenantSend through PostMount on localhost instead
WebView2 installer: error 0x80040901The offline installer carries a version newer than 2012 R2 supportsUse the bootstrapper from the archive (online) or version 109 from the Microsoft Update Catalog
“is not digitally signed” when running anything from the archiveExecution policy and the downloaded-from-internet markUnblock-File the ZIP before extracting
The sign-in window doesn’t openWebView2 isn’t installedRun MicrosoftEdgeWebview2Setup.exe as administrator, check pv as shown above
The ERP can’t connect to localhostService stopped, or another program holds the portCheck Monitor in PostMount and Get-Service PostMount

Questions

Can PostMount run on Windows Server 2012 R2?

Not from the Microsoft Store — it needs Server 2019 or newer. A separate build for 2012 R2 is available on this page; we tested it as a Windows service on 3 December 2026.

Will ERP mail through smtp.office365.com stop working?

If it signs in with a user name and password, yes: Microsoft turns basic authentication for SMTP AUTH off by default at the end of December 2026. Admins can re-enable it temporarily; the final removal date is due in 2027.

Does the ERP need OAuth or TLS 1.2 with PostMount?

No. The ERP sends plain SMTP to localhost; PostMount signs in to Microsoft 365 with OAuth and delivers over HTTPS with TLS 1.2.

Why does the archive include a Microsoft installer?

PostMount shows Microsoft’s sign-in page in WebView2, which 2012 R2 doesn’t have. The included bootstrapper is Microsoft’s own, unchanged and signed; it installs version 109, the last for 2012 R2.

Is it safe to keep using Windows Server 2012 R2?

No. Since 13 October 2026 it gets no security updates at all. Use this build to keep mail working while you upgrade — Windows Server 2025 can be installed over 2012 R2 directly.

Is the license different?

No. It is the same PostMount with the same license and 14-day free trial; the server counts as one computer.


Sources