SMTP Port Checker

Enter a mail server to test ports 25, 465, 587 and 2525 at the same time. You’ll see which ones answer, what encryption each uses and which port to put in your app.

Which SMTP port should I use?

  • 587 is the standard port for sending mail from an app or mail client. It starts in plain text and upgrades with STARTTLS. Try it first.
  • 465 is encrypted from the first byte (implicit TLS). Most providers support it, and it works well when 587 is blocked.
  • 25 is for server-to-server delivery. Most home ISPs and cloud providers (AWS, Azure, Google Cloud, DigitalOcean) block it for outgoing traffic.
  • 2525 isn’t an official port, but relay services such as SendGrid, Mailgun and SMTP2GO offer it as a fallback.

What this checker does

It opens a connection to each port at the same time, waits for the server’s greeting and asks which features it supports. For each port you get one of three results:

  • Open: the server answered with an SMTP greeting. We also show whether it uses SSL/TLS or STARTTLS, or no encryption at all.
  • Timed out: nothing answered. A firewall is dropping the traffic, either at the server or on the network in between.
  • Refused: the server is reachable but nothing listens on that port.

A port is open here but blocked for me

This tool tests from our server. If a port shows as open here but your app can’t connect, the block is on your side: your hosting provider, office firewall or ISP. Switch to 587 or 465, or ask your host to open outbound SMTP. You can confirm the full login with our SMTP test.

Frequently asked questions

Enter your mail server’s hostname above. The checker connects to 587 (and 25, 465 and 2525) and reports whether the server answered, how long it took and whether STARTTLS is offered. From your own machine you can also run telnet smtp.example.com 587 or nc -vz smtp.example.com 587.

Spam from infected computers and rented servers used to go straight out on port 25, so most ISPs and cloud providers block it by default. Apps should send on 587 or 465 instead. Port 25 is only needed between mail servers.

Both are for sending mail with a login. Port 465 encrypts the connection immediately. Port 587 starts unencrypted and switches to TLS with the STARTTLS command before the password is sent. Both are secure when configured correctly; use whichever your provider recommends.

Yes. Add a port number in the optional field and it is tested along with the four standard SMTP ports.