r/exchangeserver • u/Paranoid_girly28 • Aug 04 '26
Insecure Protocol- SMTP: On-Prem Exchange
Hello,
I work for an MSP and do vulnerability scans. One thing I've found, everyone who has an On-Prem Exchange server has this vulnerability, "Insecure Protocol-SMTP". While looking into this, (and plz correct me if I'm wrong) I've found that port 25 & port 587 need to be used for exchange servers. I have not found a workaround for this and I hate that it shows up on these reports everytime. I'm not super familiar with networking and don't want to break anything. Currently my only suggestion to these clients is to migrate to 365.
Does anyone know a fix for this or are exchange servers really this vulnerable?
5
u/ddadopt Aug 04 '26
That's not a solution that works for everyone for obvious reasons. Ports 25 and 587 being open is not a security risk in and of itself. Thinking it is is the equivalent of going "OMG, your web server has port 443 open!" and represents a shocking lack of understanding of what it is you are ostensibly attempting to secure.
I would never suggest anyone expose an exchange box directly to the internet (you should put a hardened mail gateway in front of it, in a DMZ, etc, to proxy your connections) but counseling people to abandon their mail platform because their mail platform (checks notes) exchanges mail is a ridiculous and ignorant position to hold.
23
u/DiligentPhotographer Aug 04 '26
Without more information we can't help you.
But I suspect your scanner is just flagging any open ports as vulnerable.... Kind of a useless metric to go on. Exchange online has ports 25 and 587 open...
Not really, if you are using an email gateway service (like barracuda) you can lock down the SMTP ports to that.
16
u/joeykins82 SystemDefaultTlsVersions is your friend Aug 04 '26
SMTP is unencrypted by default but assuming you’ve done your job correctly it’ll negotiate opportunistic TLS (or mandatory/enforced TLS for partner orgs where you’ve configured it).
This is an alert which can and should be safely ignored.
8
u/DrGraffix FYDIBOHF26SPDLT Aug 04 '26
The best fix is to put a 3rd party cloud email filter in front of exchange and only limit those IPs to talk back to exchange.
1
u/Heavy_Dirt_3453 Aug 04 '26
We don't know what it's doing, and why you still have it and if these scans are internal or external.
If you're just using it for management of hybrid AD objects then just close off all the inbound SMTP ports.
If you're using it to relay mail from legacy apps then just restrict the ports to known specific IPs, and likely shut it off at the premiter entirely.
If you're actually hosting mail on prem in the year 2026 god help you but yes you need 25 open inbound.
1
u/elpollodiablox Aug 04 '26
The ports themselves aren't the issue. They are insecure only if the correct steps haven't been taken to make the service secure on the server.
1
u/JasGot Aug 04 '26
Don't get stuck in the box when you hear "gateway".
Your mail just has to go somewhere before it comes to you, and then you set your inbound rules to only allow mail from that one source (or more if you choose).
Example 1: get a mail relay service, set your mx record to the service, and only let mail from that service come in to your server.
Example 2: get a spam filter service, change your mx record to that service, then only accept mail from them at your exchange server.
Example 3: use a cpanel ( or similar) server and just configure the cpanel with your exchange server as a remote mail host, and set your exchange server to only accept mail from that cpanel server.
We use options 2 and 3 for all of our clients with in-house mail servers. There is no way to get to these servers if you are not the relay host.
For option 2, you dont even need to turn on spam filtering.
Dm me if you want specifics.
1
u/TedMittelstaedt Aug 05 '26
"I've found that port 25 & port 587 need to be used for exchange servers."
587 is the submission port and it's used for authenticated SMTP from email client programs.
The reason that the report flags port 587 and port 25 as insecure is because these are dual-use ports. Connections to them can either be encrypted using STARTTLS or not encrypted. This is NOT like http which only uses port 80 and https which only uses 443. (normally) And it is NOT possible to determine if the mailserver is configured to allow or reject ONLY encrypted connections to port 587 unless you have credentials on the mailserver when you scan it. Basically, it's lazy programming by the writer of the scanning software.