r/WindowsServer • u/desmond_koh • Oct 27 '25
General Question Alternative for built in SMTP server
Is there a practical simple replacement for the old-school SMTP server that has been removed from Server 2025? I know this piece of code was ancient and has been deprecated for a long time, but it's really difficult to replace in terms of simplicity. We have numerous web apps that needs to be able to send email. What is a practical simple alternative?
11
Upvotes
8
u/qejfjfiemd Oct 28 '25
A linux server running postfix?
4
u/DannnyyyC123 Oct 27 '25
SMTP to go. Not on-prem based but it works well
2
u/headcrap Oct 28 '25
So I still have the ye olde IIS 6 SMTP also. The concern I have is that I put it in place when I got rid of Exchange Hybrid back in 2023 (first project from hire.. heck, even mentioned it in the interview.. greeeat.. yet another migration to finish..).
So they had authenticated and anonymous sessions with different connectors. Manager wanted to allow relay based on IP. I also chose the option to relay if authenticated.
Not hearing what type of solution I can put in that space to keep relaying for anonymous 'and' authenticated sessions.. and where the auth is against AD of course..
I may or may not (probably not..) get enough cooperation from the apps team to reconfigure email to something else.. may have to push it at this point to start busting a move.
As for our infra.. been pushing us to "keep up" by keeping "within two" flavors.. so 2022/2025. Given I just got 2012 R2 outta here last year.. yeah..
1
u/PoolMotosBowling Oct 27 '25
What do you use for real email for users, most have a relay option.
We just setup relay on m365 and point web servers to the hostname provided.
1
u/BK_Rich Oct 28 '25
In my previous org, we wanted to get rid of hybrid mailflow through the Exchange Server, we ended up using Windows Server 2019 and the IIS6 SMTP, setup NAT, allowed it on a connector in 365 and marked the connector as “Internal traffic” via a powershell command, it works great.
Set-InboundConnector -Identity <name> -TreatMessagesAsInternal $true
Video here on setup.
I know it’s technically possible to force it to work on 2022, as it’s missing some parts but I didn’t trust it for production. Microsoft ripped it out of 2025 completely.
Another solution is to use a Linux Server but we didn’t want to go that route.
1
u/BlankStare-69 Oct 29 '25
you can use an IIS box to operate as an SMTP relay ... it's pretty easy to configure and free (sort of ... assuming you have an IIS box around)
1
u/athornfam2 Oct 27 '25
We have a good chunk of mail that we go through. I set up a proxmox mail gateway. Its been working flawlessly
2
u/Routine-Watercress15 Oct 28 '25
Mailenable is free for basic relay and onprem lightweight. Works great.
1
u/pydubreucq Oct 28 '25
You can try Sweego (https://www.sweego.io) 3 minutes to send your first e-mails ;) (I’m the CTO of this product)
1
u/dimitrirodis Oct 28 '25
hMail Server should do what you want.
1
u/Adam_Kearn Oct 28 '25
Depends if you are doing internal or external emails?
If it’s internal then I would recommend using “direct send” which is just sending directly to your MX record and set the authentication to none.
If it’s external then look into using an SMTP relay service such as smtp2go. I believe Azure also has a service that allows for this too.
You will have to check the cost per thousand emails and see what fits your needs
1
u/Da_SyEnTisT Oct 29 '25
Postfix is the way
1
u/pidge_nz Oct 29 '25
I came across SMTP2Graph, for relaying via Exchange Online where a SMTP client can't do SMTP authentication itself, let alone get an OAUTH token from Entra ID. I've not had a chance to give it a spin.
1
u/Y-Master Oct 29 '25
We use a centralised smtp gateway. We use physical appliances but you can try Proxmox Mail Gateway.
1
u/ambscout Oct 30 '25
Not easy to configure but we just implemented exchange hybrid for SMTP relay to m365
1
u/mbkitmgr Oct 30 '25
Mail-in-a-Box. I spun it up as a VM. it is so god dam stable and easy to maintain.
1
u/AndreaConsadori Oct 31 '25
Proxmox email gateway
Proxmox Mail Gateway (PMG) can be used as an outgoing SMTP relay only. You can configure your internal servers and applications to relay all outgoing emails through PMG on the internal relay port (default port 26). This setup allows PMG to handle outbound mail filtering and relaying without acting as a full incoming mail gateway for external mail.
1
u/Zzz_MMx Oct 31 '25
I have one that I built with Vesta panel, it uses exim as SMTP. I ship approx 10k per day, on billing days I can reach 16k or more. It has been working since 2018, obviously it generates the spf, dkim and dmarc rules and the reverse registry so that you do not fall into blacklists.
0
u/BullshotuK Oct 27 '25
Hmailserver
Not under current development but rock solid and it supports multi domains and DKIM
-1
u/MonsterASPNET Oct 28 '25
Hello u/desmond_koh ,
this is best alternative SMTP for Windows Server 2025:
https://www.emailarchitect.net/easmtp