Facebook tracking pixel

MailGenius

SMTP Port 25 Blocked: How to Test, Diagnose and Fix It

Your order receipts stopped leaving the CRM this morning. The queue is full, the log says the connection timed out, and nobody touched the mail server. That is what an SMTP port 25 blocked policy feels like. The network drops the TCP session before any mail server can answer, so a new subject line or another retry will not move a single message.

I would start on the machine that sends, not on a laptop sitting on a different network. Home broadband, an office firewall, a VPN, and a cloud VM can each filter port 25 while leaving ports 587 and 465 alone. Run the test below first. It tells you which of those you are looking at, and only then does a port change, an exception request, or a relay make sense.

Table of Contents

Test Whether Port 25 Is Really Blocked

Work from the host that sends the mail. A laptop test only counts when that laptop is the sender.

  1. Resolve the relay. Run nslookup relay.example.com or dig relay.example.com and write down the address it returns. A lookup failure is a DNS problem, not a port block.
  2. Test three ports from that same host. Run nc -vz relay.example.com 25, then the same command against 465 and 587. On Windows, where nc is often missing, use Test-NetConnection -ComputerName relay.example.com -Port 25 in PowerShell. TcpTestSucceeded True means the socket connected. False means the port is filtered or unreachable.
  3. Read the result, not the app error. A timeout or an unreachable response points to filtering or a routing failure. A refused connection points to a local firewall or a provider rule. A completed handshake followed by an SMTP banner means port 25 is open.
  4. Match the pair of results in the table and take the next step it names.
  5. Retest after every change. Cloud policy updates and firewall rules can lag, so a single check right after you save a rule can lie.

An infographic showing a four-step guide on how to test if SMTP port 25 is blocked.

The Microsoft Azure outbound SMTP guide draws the same line: a timeout is evidence of filtering or a routing failure, while a completed handshake and an SMTP banner means port 25 is reachable and the remaining work is TLS, authentication, DNS, or recipient acceptance. That split matters on cloud hosts. Azure blocks outbound TCP 25 for virtual machines in most subscription types, while authenticated relay connections on TCP 587 are typically not blocked. AWS EC2 throttles port 25 by default, and ports 465 and 587 are not restricted for Amazon SES.

Port test results and what they mean

Port 25 result Port 587 result What it means Next step
Timeout or no response Connects Outbound port 25 is filtered at the network or cloud edge Switch to 587 with STARTTLS or 465 with implicit TLS
Connection refused Connects A local firewall or provider rule rejects port 25 Check egress rules, then send through 587
SMTP banner appears Connects Port 25 is open; the problem is TLS, login, DNS or recipient acceptance Check TLS settings, credentials, DNS records and rejection codes
Connects Timeout Submission is blocked too, often by a VPN, proxy or firewall Review firewall and VPN rules, then retest from another network

Practical rule: An open port only proves the socket connects. It does not prove the message will be accepted or land in the inbox.

Azure warns that external domains may still reject or filter mail that comes from cloud IP ranges. If you want the SMTP dialogue itself, the MailGenius Telnet SMTP testing guide walks through a manual session so you can see the banner and the rejection code instead of guessing from an app timeout.

Why Providers Block Port 25 and Where

Providers filter port 25 because a compromised computer can open a direct session to someone else's mail server and push spam with no login. The filter sits at the network edge. Your message never arrives anywhere to be rewritten.

A diagram illustrating a provider firewall blocking malicious spam traffic from a compromised computer to a mail server.

This is an old policy, not a new one. A 2007 ENISA provider security study documents how providers were already blocking or managing access to SMTP port 25 from hosts on their networks, cutting off direct unauthenticated delivery from ordinary customer connections. The practice was widespread even then, though adoption varied between providers. Blacklists did the heavy lifting in that anti-abuse picture, while greylisting handled only a small share of blocked traffic. The split that came out of it still holds today: port 25 stayed the server-to-server channel, and customer mail moved to authenticated submission on port 587.

What the current policies actually say

Quantum Fiber's internet service disclosure states that it filters port 25 to reduce email viruses and unsolicited email, because malware can take over a PC and aim spam through that port. Xfinity's port 25 notice says residential customers cannot use port 25 for email transmission and recommends port 587 with TLS or SSL enabled. It also warns that mail sent straight from a subscriber connection to another provider, without passing through Comcast's mail servers, is extremely likely to be blocked by the receiving side.

That last point matters for diagnosis. Even if your own ISP let port 25 through, the receiving network may refuse the connection on arrival because the source is a residential or dynamic IP range. Two filters can produce the same timeout.

Say a marketing team's CRM sits on an office circuit where the ISP filters port 25 for every customer. A config that worked last year now times out. The mail software, the template, and the recipient list are unchanged. Changing the recipient or hammering Send is wasted time. You change the route.

Port 25 policies by cloud host and ISP

Provider or ISP Port 25 policy Exception path Use instead
Google Cloud Blocked to external destinations No standard exception path Authenticated relay on 587 or 465
AWS EC2 Throttled by default Account-level request, approved case by case Amazon SES on 587 or 465
Azure VMs Blocked for most subscription types Exception request Authenticated submission on 587
Comcast residential Not usable for direct email delivery No residential path published; send via Comcast mail servers Port 587 with TLS or SSL
Quantum Fiber Filtered to reduce malware spam No exception described in the disclosure Authenticated submission on 587 or 465

The exception paths are the main difference in this table. Google Cloud publishes no standard exception route, so filing a ticket there is the slow way to hear no. AWS and Azure will consider a request, but approval is discretionary and takes time you could spend switching ports. On a VM where port 25 times out and 587 connects, I would move the app to an authenticated relay rather than wait on an exception. Check each provider's current policy page before you file anything. These rules get tightened, and an old forum post is a poor map.

Port 25, 465 and 587 Explained Side by Side

RFC 6409 defines port 25 as the traditional relay channel between mail transfer servers, and it reserves port 587 for message submission by clients and applications. Splitting those jobs lets a provider demand a login on submission while servers still hand mail to each other on 25. The RFC also notes that many sites prohibit outbound port 25 because compromised computers, worms, and viruses can generate large volumes of spam. A failed port 25 connection can be that policy, with normal submission still available on 587.

SMTP ports compared

Port Intended use Encryption and login Typical use today
25 Server-to-server relay between mail transfer servers Often plain text between servers Mail transfer between servers, rarely used by applications
465 Submission with implicit TLS TLS from the first byte, login required Clients and apps that only support SSL from connect
587 Message submission by clients and applications Upgrades to TLS with STARTTLS, login required Default for CRMs, shops, contact forms and email service relays

A business sending through an email service is submitting a message, not relaying between independent servers. Point the app at that provider's authenticated endpoint.

A WordPress contact form or a billing app should use the provider hostname, port 587, STARTTLS, and a username with an app password. Pick 465 only when the client speaks TLS from the first byte and has no STARTTLS option. Most current apps already default to 587, so a port 25 setting is often an old config nobody cleaned up.

Copy this into the app before you save:

  • Hostname: the provider's submission server, not a random recipient MX.
  • Port: 587, or 465 if the client is implicit TLS only.
  • Encryption: STARTTLS on 587, implicit TLS on 465.
  • Username: the mailbox or API user the provider issued.
  • Secret: the password or app-specific key, stored in the app vault.
  • From address: an address on the domain that login is allowed to send for.

A socket that opens on 587 still fails later if the From address does not match the authenticated domain.

The same submission path is what you want when a list is valuable and a block would stall outreach. Teams pulling US investor email contacts from Gritt.io still need a submission port their network allows, or those messages never leave the building.

Choose Between an Exception and a Relay

Lifting a block does not guarantee delivery. The Nylas cloud SMTP ports guide puts it plainly: direct port 25 delivery still exposes a sender to IP reputation problems, recipient throttling, bounce handling, and blacklist risk. Direct SMTP can be allowed and still be the worse plan.

A comparison chart outlining why lifting a port 25 block does not guarantee reliable email delivery.

Score the case before anyone files a ticket:

  • Volume: How many messages leave this host on a normal day?
  • Ownership: Does a named person watch bounces and complaints every day?
  • Identity: Do you control reverse DNS and know the IP's reputation?
  • Abuse controls: Can you stop a runaway script the same hour it starts?
  • Criticality: What breaks in the business if this stream is throttled tomorrow?

A shop sending 500 order confirmations a day from one cloud VM should use a managed relay on 587. The relay already absorbs throttling and reputation work that a single VM will not. A legacy system that must speak directly to a partner's mail server can justify an exception, and only after the team can watch reputation and bounces on a schedule.

Use an authenticated relay unless direct server-to-server delivery is an explicit requirement and you can answer yes to every criterion above, on an ongoing basis.

The SMTP relay setup guide is the shorter path when the score says relay. If you still want to see how a submission session is supposed to look before you change production, this walkthrough covers the handshake without touching the live queue.

Run a Spam Test Before You Send Again

A passed port test only answers connectivity. Inbox placement still depends on authentication and reputation, and those checks belong on the port you just chose.

  1. Open the free spam test on the MailGenius homepage and copy the address shown on screen.
  2. Send one real message from the same app and network that failed before.
  3. Read the score and the findings for SPF, DKIM, and DMARC.
  4. Check the blacklist results for the sending IP and the domain.
  5. Fix what is flagged, then send the test again.

Screenshot from https://mailgenius.com

Say the CRM team leaves port 25, sets 587 with STARTTLS, and the socket test succeeds. The spam test then flags a missing DKIM signature. They publish the record and rerun the test before the next campaign, instead of discovering the gap in a pile of spam-folder complaints. The test mail goes to a unique inbox in a closed environment, so it does not touch your real sending domain or IP reputation.

Run that email spam test from the network that timed out, then run it again after any port or firewall change. A green socket and a weak authentication result are different problems, and only the second one still decides the inbox.


MailGenius gives you a free email spam test: send one message to the address on the homepage and you get a spam score plus authentication and blacklist findings before the next campaign. That is the check that still matters after an SMTP port 25 block pushes you onto 587 or a relay. Run it from the same host that sends, then visit MailGenius and test the message you are about to ship.

Free Email Spam Test:

Will your Email Land in the Spam Folder?

Send an email to the address below to see your Spam Score:
loading...
MailGenius users test over 1M emails per year! By using our Email Tester, you will agree to our Privacy Policy and Terms of Service. The sending email address will receive emails from MailGenius. All tests are hosted on public links.

Try MailGenius Today

Run a Free Email Deliverability Test - Send an Email to the Address Below, then Click “See Your Score”:

Free Email Spam Test:

Will your Email Land in the Spam Folder?

Send an email to the address below to see your Spam Score:
loading...
MailGenius users test over 1M emails per year! By using our Email Tester, you will agree to our Privacy Policy and Terms of Service. The sending email address will receive emails from MailGenius. All tests are hosted on public links.

Try MailGenius Today