SMTP Test

Use this SMTP test to see how a mail server behaves on port 25, 465, 587 or 2525. You will find out whether it answers, whether it can encrypt the connection and whether its certificate is in order. You don't need to log in, and nothing gets sent.

Port

We connect to the server, ask what it supports, switch on encryption and hang up. We never log in or send a message, which is why there is no password box.

What the SMTP test does

The test opens a real connection from our server to the mail server you enter and follows the first steps of an ordinary SMTP session, then says goodbye before any message could be sent:

  1. Find the server. If you enter a domain and choose port 25, the test looks up the domain's MX records and connects to the mail server with the highest priority (the lowest number), because that is where mail for the domain is delivered. A host name or IP address is tested as entered.
  2. Connect and read the greeting. A healthy server answers with code 220 and usually its own name.
  3. Send EHLO with our server's name, server.checkmydns.org, and read the list of extensions the server supports.
  4. Start TLS. On ports 25, 587 and 2525 the test sends STARTTLS if the server offers it and completes the TLS handshake. On port 465 the connection is encrypted from the first byte.
  5. Read the certificate: the names it covers, who issued it, when it expires and whether it chains to a trusted authority.
  6. Say EHLO again and QUIT. Some servers offer login methods only after encryption starts, so the second EHLO shows what a mail app would see.

The test also looks up the reverse DNS (PTR) name of the server's address and checks that the name points back to the same address. The full conversation is shown at the end, line by line.

SMTP ports: which one should you test?

PortUsed forEncryption
25Delivery between mail servers. Servers listed in a domain's MX records accept incoming mail here.STARTTLS, if offered
587Submission: mail apps, websites and printers sending through a provider with a username and password.STARTTLS, required in practice
465Submission with TLS from the first byte. RFC 8314 recommends this for mail apps and asks providers to keep offering 587 as well.TLS from the start
2525An unofficial alternative that several sending services offer when other ports are blocked.Usually STARTTLS

A common mix-up: port 25 answers for a domain's incoming mail, while ports 587 and 465 are for sending out through your provider. A successful test on port 25 says nothing about whether your app can send mail. Many home internet providers and cloud platforms block outgoing connections to port 25 for their customers, which is why apps should use 587 or 465.

Reading the results

The greeting. Code 220 means the server is ready. A 421 means it is not accepting a session right now, often because of a rate limit or because it distrusts the connecting address. A 554 greeting is a flat refusal. Either way, the test from our server and a delivery from yours can get different answers, because servers judge each connecting address separately.

The extensions. These are the features listed after EHLO. The most useful to know:

  • STARTTLS: the server can encrypt the session. Without it, mail to this server travels in plain text.
  • AUTH: the login methods on offer, such as PLAIN or LOGIN. On port 25 a server normally offers none, and on 587 it often shows them only after STARTTLS.
  • SIZE: the largest message the server says it will take, converted to megabytes in the results. Your mail app or mailbox may allow less.
  • PIPELINING, 8BITMIME, SMTPUTF8, CHUNKING: speed and character-set features that mail software uses automatically.

What a real server answers

Here is how Google's servers answered our test on 3 December 2026. The difference before and after encryption on port 587 is easy to see:

smtp.gmail.com, port 587, before STARTTLSSame server, after STARTTLSGmail's incoming server, port 25
STARTTLSOfferedAlready onOffered
AUTHNot offeredLOGIN, PLAIN, XOAUTH2 and othersNot offered, before or after
SIZE35,882,577 bytes35,882,577 bytes157,286,400 bytes

Because no login is offered until the connection is encrypted, a mail app only sends its password after TLS is in place. Your own server should behave the same way on port 587.

The certificate. On ports 587 and 465 the certificate must be valid for the host name your mail app connects to, unexpired and issued by a trusted authority, or users see security warnings. Between mail servers on port 25 most senders accept any certificate. The main exception is a domain protected by MTA-STS, where senders require a certificate that names the MX host. DANE, in its most common form, checks the server's key against a record in DNS instead of the name.

Reverse DNS. Large mailbox providers expect a sending server's IP address to have a PTR name that points back to the same address. Gmail's sender guidelines require valid forward and reverse DNS for every sending address, and a TLS connection for the mail. The greeting name should ideally match the PTR name too.

How to test an SMTP server from the command line

Testing from your own computer is useful when you suspect your network blocks a port. In Windows PowerShell, this shows whether a port is open:

Test-NetConnection smtp.gmail.com -Port 587

On macOS or Linux, OpenSSL starts TLS on port 587 and prints the certificate:

openssl s_client -starttls smtp -connect smtp.gmail.com:587 -crlf

Port 465 uses TLS from the start, so leave out the STARTTLS option:

openssl s_client -connect smtp.gmail.com:465 -crlf

Type QUIT and press Enter to close the session. If these commands time out on your computer while the test above succeeds, the block is on your network, not on the mail server.

Why there is no password field

Some SMTP testers ask for your username and password so they can try a login. We decided against that. Your mail password should only be typed into your own mail app or your provider's website, never into a third-party page. This test checks everything up to the point where a login would happen, which covers most connection and encryption problems. To test the login itself, use your mail app's account settings.

Common problems and their causes

  • The connection times out. A firewall is silently dropping the connection, the server is down, or nothing listens on that port. On port 25, check that the MX record points to the right server with our MX record lookup.
  • Connection refused. The server is reachable but no mail service listens on that port. Check the port number and your mail server's settings.
  • No STARTTLS on port 587. Mail apps would have to send the password unencrypted, and most refuse to. Enable TLS in the mail server's settings.
  • The certificate has expired or names a different host. Renew it, or connect with the host name the certificate is issued for.
  • No reverse DNS. Ask whoever controls the IP address, usually your hosting provider, to set a PTR record that matches your mail server's name. Our guide to reverse DNS lookups explains how it works.
  • The server's address is on a blacklist. That does not show up in this test, so run an email blacklist check on the same address.

SMTP test questions

Does the SMTP test send an email?

No. The test ends with QUIT before any sender or recipient is named, so no message can be created. The mail server sees a short session that closes before anything could be delivered.

Why was a different server tested than the one I typed?

When you enter a domain and choose port 25, the test follows the domain's MX records to the mail server that actually receives its mail. Enter a host name instead to test one specific server.

Can I test a server on a private IP address?

No. The test connects from the internet, so it only reaches servers with public addresses. Private, local and reserved address ranges are refused.

Why is the number of tests limited?

To protect the servers being tested. Each visitor can run a handful of tests every few minutes, and each mail server can be tested a limited number of times per hour.

Port 25 works, so why can't my website send mail?

Your website or app is a client, not a mail server. It should send through your provider on port 587 or 465 with a login. Many hosting and cloud providers block outgoing port 25 from customer servers.