Skip to content
Hivex tools · EmailFree · No account

SMTP test, ports 587 and 465.

Check that a mail server answers on its sending ports, encrypts the connection, and offers sign-in only once it is encrypted.

What the test does.

  • On port 587 it connects, waits for the 220 greeting, sends EHLO, asks for STARTTLS, completes the TLS handshake (which checks the certificate against the host name) and sends EHLO again.
  • On port 465 TLS starts with the first byte, then the same greeting and EHLO.
  • It ends with QUIT. It never sends AUTH, a password or a message.

Reading the conversation.

Lines marked C: are what Hivex sent, S: what the server answered. Codes starting with 2 mean success (220 ready, 250 fine), 4 a temporary refusal and 5 a permanent one. After EHLO, each line names a feature: SIZE the largest message, AUTH the sign-in methods, PIPELINING, 8BITMIME and SMTPUTF8 how the server handles traffic and text.

What good looks like.

  • Port 587 offers STARTTLS, and AUTH appears only in the answer after TLS.
  • Port 465 completes TLS with a certificate for the exact name you use in your mail app.
  • The greeting arrives within a second or two, and no step answers with a code starting with 4 or 5.

Questions people ask.

How do I test my SMTP server?

Type its host name, such as smtp.example.com. The test connects on ports 587 and 465, reads the greeting, switches to TLS and lists what the server offers, without ever signing in.

What are SMTP ports 25, 465 and 587 for?

Port 25 carries mail between mail servers. Port 587 is where mail apps send through their provider, upgrading to TLS with STARTTLS. Port 465 does the same with TLS from the first byte. RFC 8314 asks servers to offer both 587 and 465.

Why does my SMTP connection time out?

The port is closed or filtered, by the server's firewall or by your own network or internet provider. Many providers block outgoing port 25 for home connections, which is why mail apps use 587 or 465.

What is STARTTLS?

A command that turns a plain connection into an encrypted one before anything private is sent. On port 587 a server should offer it, and offer sign-in only after it.

Can this test port 25?

No. Hivex runs on Cloudflare Workers, which cannot open connections on port 25. To see how other servers reach a domain's mail, check its MX records, reverse DNS and MTA-STS policy.

Hivex index

Short names, still free to register.

Starting something new? Hivex keeps a live index of short, brandable .si names nobody has claimed yet, each checked with the registry.

Browse free names

From code, or an AI assistant.

Hivex's free JSON API and MCP server check domains, DNS and registration records from your own code or from AI assistants that speak MCP. No key needed.

The API guideThe MCP serverOpenAPI schema