Skip to main content
DNS Checker(beta)

SMTP Server Diagnostics

Test mail server connectivity per RFC 5321, TLS encryption, open relay status, MTA-STS, DANE, and PTR records. Get a graded security report for any domain in real time.

2 credits

SMTP is the protocol that actually delivers your email. If the handshake fails, nothing else matters.

Written by Ishan Karunaratne · Last reviewed:

What Is SMTP?

SMTP (Simple Mail Transfer Protocol), defined in RFC 5321, is the standard protocol for transferring email between mail servers. When someone sends an email to your domain, their mail server resolves your MX records (use the DNS Inspector to check your MX configuration), opens a TCP connection to your SMTP server on port 25, and delivers the message through a series of commands (EHLO, MAIL FROM, RCPT TO, DATA).

SMTP itself is a plaintext protocol dating to RFC 821 (1982). Modern email security relies on layered extensions: STARTTLS (RFC 3207) for opportunistic encryption, MTA-STS (RFC 8461) for enforced TLS, DANE (RFC 7671) for certificate pinning via DNSSEC, and SPF/DKIM/DMARC for sender authentication. After updating any of these DNS records, check DNS propagation to confirm changes have reached all resolvers.

How Does SMTP Delivery Work?

1
MX Lookup

The sending server queries DNS for MX records to discover which servers accept mail for the recipient's domain (RFC 5321 Section 5).

2
TCP Connect

Opens a TCP connection to port 25 on the highest-priority MX server. If unreachable, tries lower-priority servers.

3
STARTTLS

If the server advertises STARTTLS, the connection is upgraded to TLS before any message data is sent (RFC 3207).

4
Message Transfer

MAIL FROM, RCPT TO, and DATA commands transfer the message. The receiver responds with status codes (2xx success, 5xx permanent failure).

What Is STARTTLS and How Does Transport Encryption Work?

STARTTLS (RFC 3207) upgrades a plaintext SMTP connection to TLS without changing the port. However, standard STARTTLS is opportunistic — if TLS negotiation fails, most servers fall back to plaintext delivery. An active attacker can strip the STARTTLS capability advertisement, forcing email to be delivered unencrypted.

TLS 1.3

Preferred — forward secrecy by default, faster handshake

RFC 8446
TLS 1.2

Acceptable with strong cipher suites (AEAD ciphers)

RFC 5246
TLS 1.0 / 1.1

Deprecated per RFC 8996 — should be disabled

RFC 8996

What Are the Key RFCs for SMTP Security?

How Is the Security Grade Calculated?

A+

STARTTLS with TLS 1.3, valid certificate, no open relay, correct PTR, MTA-STS enforce or DANE with DNSSEC

A

STARTTLS with TLS 1.2+, valid certificate, no open relay, correct PTR

B

STARTTLS present, minor certificate or PTR issues, no open relay

C

STARTTLS present but weak TLS version (1.0/1.1) or self-signed certificate

D

STARTTLS absent or connection failures on some servers

F

Open relay detected, or no TLS on any reachable server

What Other Email Tools Help With SMTP Security?

SMTP connectivity is one layer of email security. For a complete picture, also check your sender authentication records:

  • MX Lookup Find mail servers, detect providers, verify reverse DNS per RFC 5321
  • SPF Checker Validate authorized sending servers per RFC 7208
  • DKIM Checker Verify email signing keys per RFC 6376 and key strength per RFC 8301
  • DMARC Checker Analyze email policy and reporting per RFC 7489
  • Blacklist Checker Check if your mail server IP is listed on any DNSBL

Built and maintained alongside this tool. Free, no signup required.

Frequently Asked Questions