SMTP test

Connect to a mail server and check its banner, EHLO, STARTTLS and certificate.

A mail server's hostname or IP, or a domain with the box below ticked. Enter a domain or address to check.

Free, no account needed.

What happens when you press Test

Our test server opens a real IPv4 connection to the mail server, waits for its greeting, records its EHLO features and any TLS details, then says QUIT without ever sending a message.

Read moreShow less: What happens when you press Test

Our test server, probe.dnsmailcheck.com, opens a real connection to the mail server, the same way another mail server would before delivering a message. It then runs through the opening of an SMTP conversation and stops there:

  1. It connects to the server's address on the port you chose and times the connection.
  2. It waits for the server's greeting, a line starting with 220.
  3. It introduces itself with EHLO probe.dnsmailcheck.com and records the list of features the server answers with.
  4. If the server offers STARTTLS, it asks for an encrypted connection and records the TLS version, the cipher and the certificate. On port 465 the connection is encrypted from the first byte instead.
  5. It says QUIT and hangs up.

It never sends a message. The service can't: the only commands it is able to write are EHLO, STARTTLS and QUIT, so there is no sender, no recipient and no message body at any point. Each step has up to 10 seconds, except the greeting, which gets 15 because some servers pause on purpose before sending it, and the reply to QUIT, which gets 5. The whole test is limited to 30 seconds.

The test connects over IPv4 only, to the server's first IPv4 address. If the server also has an IPv6 address, the result lists it as not tested. Our test server's IPv6 address has no matching DNS name, so a mail server that checks for one could turn the test away for reasons that say nothing about your server.

If you type a domain and leave the MX box ticked, we look up the domain's MX records first and test the server with the lowest priority number, which is where other servers deliver first.

Ports 25, 587 and 465

Servers deliver to each other on port 25 and email programs submit mail on 587 or 465, so silence on a port a server doesn't use is normal.

Read moreShow less: Ports 25, 587 and 465
  • Port 25 is where mail servers deliver to each other. Your domain's MX servers must accept connections here from anywhere.
  • Port 587 is the submission port: email programs and apps send outgoing mail through it after logging in, and it's expected to offer STARTTLS before the password is sent.
  • Port 465 is submission with TLS from the start ("implicit TLS"). The current advice for email programs, RFC 8314, prefers it over 587 with STARTTLS.

Many receiving servers listen only on 25, and many sending services only on 587 and 465, so "no answer" on a port the server doesn't use is normal.

Reading an SMTP test result

A banner sums up the conversation, the findings explain the connection, TLS and certificate in plain words, and Technical details has a row for each step.

Read moreShow less: Reading an SMTP test result

The banner sums up the IPv4 conversation, for example "gmail-smtp-in.l.google.com answered on port 25 in 868 ms, TLSv1.3 via STARTTLS." The findings below it say what's right or wrong in plain words: whether the connection worked, the TLS version and cipher, whether the certificate is valid, trusted and covers the hostname, and whether the server also has an IPv6 address.

Technical details has a table for the IPv4 conversation with a row for each step: Connect with its time, Greeting with the server's 220 line, EHLO with every extension it lists, STARTTLS, TLS (version and cipher), Certificate (name, issuer, expiry and days left), Names on certificate, Hostname match, Chain trusted and QUIT. When MX was looked up, the MX records sit above the table, and an IPv6 address, if the server has one, is listed below it.

On the domain health check, when the MX check passes, the same test runs on port 25 of the domain's main mail server as an extra below the results, so a slow or unreachable server shows up without changing the score.

Probes run on 21 October 2026

Real results for Gmail's and outlook.com's mail servers, and for OpenBSD's, whose slow greeting made us raise the wait to 15 seconds.

Read moreShow less: Probes run on 21 October 2026

All of these came from probe.dnsmailcheck.com.

gmail-smtp-in.l.google.com, port 25. The IPv4 address 142.251.127.26 connected in 102 ms and greeted with 220 mx.google.com ESMTP … gsmtp. The EHLO answer listed SIZE 157286400, 8BITMIME, STARTTLS, ENHANCEDSTATUSCODES, PIPELINING, CHUNKING and SMTPUTF8. STARTTLS gave TLS 1.3 with TLS_AES_256_GCM_SHA384, and the certificate, issued to mx.google.com by Google Trust Services and valid until 21 December 2026, matched the hostname and verified. The whole conversation took 868 ms. A later run the same day, after the test moved to IPv4 only, connected to 74.125.71.26 in 85 ms, finished in 550 ms and listed the host's IPv6 address, 2a00:1450:400c:c02::1a, as "IPv6 not tested".

outlook.com's MX, outlook-com.olc.protection.outlook.com, port 25. 52.101.103.168 connected in 96 ms with a Microsoft ESMTP MAIL Service greeting and offered DSN, BINARYMIME and CHUNKING among its extensions. TLS 1.3 again; the certificate is issued to mail.protection.outlook.com by Microsoft Corporation, valid until 27 January 2027, and covers this host through its *.olc.protection.outlook.com name. The conversation took 680 ms. The host has no IPv6 address, so that part of the result reads "No IPv6 address".

mx1.openbsd.org. This name doesn't exist, so the result is "has no address". OpenBSD's real mail server is mail.openbsd.org, the only MX for openbsd.org, which is what the MX option finds. It teaches a different lesson. Our first test, when the greeting limit was still 10 seconds, connected in 80 ms but got no greeting in time. A separate connection that waited longer saw the greeting after 11.4 seconds, so we raised the limit to 15. Run again at 16:55 UTC, the test connected to 199.185.178.25 in 84 ms and received 220 mail.openbsd.org ESMTP after 11.9 seconds. It then upgraded to TLS 1.3 with a Let's Encrypt certificate valid until 16 December 2026, for "mail.openbsd.org answered on port 25 in 12.4 s, TLSv1.3 via STARTTLS." A delay like that is usually deliberate: spam software that starts talking before the greeting gets caught by it.

Common problems and fixes

Causes and fixes for no answer, a refused connection, a slow or 554 greeting, missing STARTTLS, a bad certificate and a failed TLS handshake.

Read moreShow less: Common problems and fixes
  • No answer. A firewall drops the connection, the mail service isn't running, or the server doesn't use that port. For an MX server, open port 25 to the whole internet; senders come from everywhere.
  • Connection refused. The machine is up but nothing listens on the port. Start the mail service, or check which ports your provider documents.
  • No greeting within 15 seconds. A long greeting delay or an overloaded server. Postfix's postscreen, when it's switched on, waits 6 seconds by default (2 under load) before the full greeting, to catch clients that talk too early. Delays much longer than that slow down real senders too.
  • A 554 greeting. The server turned the connection away, often because it blocks the connecting address. If it's your server, check its blocklist settings.
  • STARTTLS not offered. Mail to the server travels unencrypted. In Postfix, point smtpd_tls_cert_file and smtpd_tls_key_file at a certificate and key and set smtpd_tls_security_level = may; other servers have equivalent settings.
  • Certificate expired, untrusted or for another name. On port 25 most senders still deliver, because TLS between servers is usually opportunistic. Senders that enforce MTA-STS (RFC 8461) won't. Senders using DANE (RFC 7672) check the certificate against the domain's TLSA record instead, so they won't deliver if it doesn't match that record. Renew the certificate, include the intermediate certificates in the file the server sends, and make sure the MX hostname is one of the names on it.
  • TLS handshake failed. The test accepts TLS 1.2 and 1.3. A server that offers only older versions fails here, and so do most modern senders; enable TLS 1.2 or later.

SMTP test questions

Answers on checking port 25, whether anything is sent, the three ports, slow servers and IPv6.

How do I check whether port 25 is open on my mail server?

Type the server's hostname (or your domain, with the MX box ticked), choose port 25 and run the test. If the result shows a 220 greeting, port 25 is open to the internet; "No answer" or "refused" means it isn't reachable from outside.

Does this test send an email?

No. It stops after EHLO, STARTTLS and QUIT, and the service has no way to send anything else. Nothing reaches any mailbox, and the server's logs show only a connection from our test server (40.160.102.17) that said hello as probe.dnsmailcheck.com and left.

What's the difference between ports 25, 587 and 465?

Port 25 is for servers delivering to each other. Ports 587 and 465 are for your own email program sending outgoing mail after logging in: 587 starts unencrypted and upgrades with STARTTLS, 465 is encrypted from the start.

Why does my mail server take so long to respond?

Some servers wait several seconds before greeting, on purpose, to catch spam software that doesn't wait its turn. Others are slow because they're busy, or because a reverse DNS lookup of the connecting address times out. This test waits up to 15 seconds for the greeting.

Does the test check my server over IPv6?

No, it connects over IPv4 only and lists any IPv6 address without testing it. Senders that have IPv6 often try it first and fall back to IPv4 if it fails, which delays mail rather than losing it. If your MX host has an IPv6 address, check from a machine with IPv6 that port 25 answers there too, or remove the AAAA record if it shouldn't receive mail.

Related checks

When the mail server answers but mail still goes missing, the records around it are the next place to look.

Guides: SMTP ports and Mail-server certificates.