SMTP Email Verification: The Full Mailbox Check
SMTP verification is a short handshake: TCP, EHLO, STARTTLS, MAIL FROM, RCPT TO. How each step works, what the codes mean, and where verifiers fail.
SMTP email verification asks the recipient's mail server whether a specific mailbox exists, without sending a message. The verifier connects to the domain's MX host, runs EHLO, MAIL FROM, and RCPT TO, reads the reply code, and disconnects. Syntax checks only catch malformed addresses and MX lookups only prove the domain receives mail; the RCPT TO reply is the signal about the individual mailbox.
This guide walks through the full SMTP verification lifecycle (TCP connect, EHLO, TLS negotiation, MAIL FROM, RCPT TO, RSET/QUIT), the response codes that matter at each step, and the failure modes (greylisting, tarpitting, catch-all) that wreck naive verifiers. It is a mechanics explainer, not a build guide. The intent is to make you a smarter buyer and operator of verification tooling, not to teach you how to build a competing verifier.
If you want the integration side of this (curl, Python, Node.js, batch processing, error handling) that lives in the Email Verification API Guide. This post is the protocol underneath.
See the protocol applied in Email Validation, explore the surrounding hygiene and reputation guidance in the deliverability resource hub, or compare these mechanics with the practical methods in how to verify an email address.
What SMTP Verification Actually Does
An email address is a pointer. The local-part (alex.rivera) points at a mailbox; the domain (bigcorp.com) points at a mail exchange server. To know whether the mailbox exists, you have to ask the mail exchange server, and the language it speaks is SMTP.
SMTP verification is a short, controlled conversation with the recipient's mail server. You open a TCP connection to the server that the domain's MX records point at, announce yourself, state a sender, state a recipient, and read the response code the server returns for that recipient. You never send a message. You close the connection before any mail is transmitted. The response code at the RCPT TO step is the core deliverability signal; it is the closest you can get to "will this address accept my email" without actually sending one.
The handshake is standardized in RFC 5321, but every receiving server implements it slightly differently. Some enforce strict TLS. Some greylist first-time senders. Some run catch-all and return 250 OK for every address. Some tarpit aggressive senders with artificial delays. The protocol is simple; the behavior of real-world mail servers is not. That gap (between the RFC and the behavior) is where verification becomes an engineering problem instead of a script.
The SMTP Verification Lifecycle
Here is the full handshake, modeled on the sequence table in the email deliverability checklist. Every step has a request from the verifier and a response from the recipient's mail server. The response codes are the ones you will see on a real verification against a well-behaved server.
| Step | Verifier sends | Recipient server responds | Meaning |
|---|---|---|---|
| 1 | TCP connect (port 25 to primary MX) | 220 mail.recipient.com ESMTP Postfix | Service ready. Connection accepted. |
| 2 | EHLO verifier.example.com | 250-mail.recipient.com Hello... then 250-STARTTLS, 250-PIPELINING, 250-SIZE... | Server greets the verifier and advertises supported extensions. |
| 3 | STARTTLS (if advertised) | 220 Ready to start TLS | TLS negotiation begins. After handshake, the conversation continues encrypted. |
| 4 | EHLO verifier.example.com (re-issued over TLS) | 250-mail.recipient.com Hello... | Server re-greets the verifier over the now-encrypted channel. |
| 5 | MAIL FROM:<probe@verifier.example.com> | 250 2.1.0 OK | Sender accepted. The server is willing to receive a transaction. |
| 6 | RCPT TO:<alex.rivera@recipient.com> | 250 2.1.5 Recipient OK: the core check | Mailbox exists and will accept mail. Valid. |
| 6' | RCPT TO:<no.such.user@recipient.com> | 550 5.1.1 User unknown: alternate 550 5.7.1 | Mailbox does not exist. Invalid. |
| 7 | RSET / QUIT | 221 2.0.0 Bye | Transaction reset; connection closed cleanly. No mail is sent. |
The critical step is 6. The 250 response to RCPT TO is the verifier's "valid" signal; a 5xx response is the "invalid" signal; a 4xx response is "try again later." Everything before step 6 is protocol housekeeping: connection, greeting, encryption, sender declaration. Everything after step 6 is teardown.
Notice the table covers both a positive and a negative RCPT TO outcome. On a real mailbox that exists, step 6 returns 250. On a mailbox that does not exist, the same step returns 550 (or, on some gateways, a 551 or a 552). The rest of the handshake is identical. This is why RCPT TO is the load-bearing step: it is the only point at which the server tells you something specific about the recipient address.
The Response Code Vocabulary
SMTP response codes are three digits (RFC 5321; the dotted "enhanced" codes like 5.1.1 come from RFC 3463). The first digit encodes the class, the second encodes the category, and the third encodes the specific detail. For verification, the first digit is the one that drives the verdict.
| Class | Meaning | Verification action |
|---|---|---|
2xx | Positive completion | Step succeeded. A 250 on RCPT TO means valid. |
3xx | Positive intermediate | Server expects more input (rare in verification, typically only during AUTH). |
4xx | Transient negative failure | Temporary. Retry later. Treat RCPT TO 4xx as unknown, not invalid. |
5xx | Permanent negative failure | Hard reject. A 550 on RCPT TO means invalid. |
The specific codes you will encounter most often:
220: Service ready. Returned on TCP connect. The server is up and willing to talk.250: Requested mail action OK. The catch-all positive code: EHLO, MAIL FROM, and a positive RCPT TO all return 250.421: Service not available, closing connection. Often returned by greylisting servers on a first-time sender, or when the server is shedding load.450: Mailbox unavailable. Frequently "mailbox temporarily unavailable": the mailbox exists but the server is refusing delivery right now (greylisting, rate limiting, busy).451, Local error. Server-side processing failure. Transient.452, Insufficient storage. Transient.550: Mailbox unavailable. The hard-invalid code on RCPT TO. "User unknown" is the canonical case.551: User not local. The server knows the address but will not accept it; it may provide a forwarding address.552: Exceeded storage. Permanent for this address right now.553: Mailbox name not allowed. Syntax rejection of the local-part.554, Transaction failed. Generic permanent reject.
The verification verdict maps cleanly: 250 → valid, 5xx → invalid, 4xx → unknown (retry later). A naive verifier that treats 4xx as invalid will report live mailboxes as dead, a classic greylisting failure covered below.
MX Record Resolution
Before you can open a TCP connection to the recipient's mail server, you have to find it. That is what MX records do. An MX (mail exchange) record is a DNS record that says, for a given domain, "here is the hostname that accepts mail for this domain, and here is its priority."
The resolution sequence:
- The verifier queries DNS for the MX records of the recipient domain (e.g.
recipient.com). - DNS returns zero or more MX records, each with a priority (preference) and a mail exchanger hostname.
- The verifier sorts the MX records by priority, lower number = higher priority.
- The verifier opens a TCP connection to the highest-priority MX host. If that connection fails (refused, timeout), it falls back to the next priority, and so on.
- If the connection succeeds, the SMTP handshake begins. If every MX host is unreachable, the result should be unknown and retried later, since the outage may be temporary. A domain that publishes a null MX (RFC 7505) explicitly accepts no mail, which is a definitive invalid.
A sample MX record set for a domain on Google Workspace:
recipient.com. IN MX 10 aspmx.l.google.com.
recipient.com. IN MX 20 alt1.aspmx.l.google.com.
recipient.com. IN MX 20 alt2.aspmx.l.google.com.
recipient.com. IN MX 30 aspmx2.googlemail.com.
recipient.com. IN MX 30 aspmx3.googlemail.com.The verifier connects to aspmx.l.google.com first (priority 10). If that host is unreachable, it tries alt1 or alt2 (priority 20, either is acceptable). If both fail, it falls through to aspmx2 and aspmx3 (priority 30). The priority ordering is a fallback chain, not a load-balancing directive, though servers with equal priority are typically selected at random to spread load.
When a Domain Has No MX Record
A domain can accept mail without an MX record. RFC 5321 specifies that when a domain has no MX records, a sender should fall back to the domain's A record (or AAAA for IPv6) and attempt delivery to the host that the A record points at. A verifier that skips this fallback will mark valid domains as invalid: false negatives on a small but real slice of corporate and legacy infrastructure.
This is why a complete verification pipeline checks MX first, then falls back to A/AAAA if MX is absent, and only marks the domain "no mail server" when both checks come up empty. A syntax-only verifier never does this. An MX-only verifier does the lookup but skips the A-record fallback. Both produce incorrect verdicts on the edge cases that matter.
SMTP Ports: 25, 587, 465
Mail servers listen on multiple ports, and each port has a historical and operational role. The port you use depends on what you are doing: transferring mail between servers, submitting mail as an authenticated user, or delivering over an implicitly encrypted channel. The comparison matters for verification because it determines how you reach the recipient's server and what encryption you can negotiate.
| Port | Standard | Use | When used | Pros | Cons |
|---|---|---|---|---|---|
| 25 | RFC 5321 | SMTP mail transfer (MTA-to-MTA) | Server-to-server mail delivery; SMTP verification probes target this port | The canonical mail-transfer port; every MX host listens on 25; unencrypted or STARTTLS | Frequently blocked by consumer ISPs and cloud hosts to prevent spam from compromised home machines; not for authenticated submission |
| 587 | RFC 6409 (message submission) | Mail submission (MUA-to-MSA) | Authenticated senders submitting outbound mail (a person sending from their mail client, a sequence tool sending a campaign) | Requires authentication; STARTTLS to upgrade to TLS; the modern submission port | Not where verification probes go: 587 is for sending mail, not for asking the server whether a mailbox exists |
| 465 | RFC 8314 (implicit TLS submission) | Mail submission over implicit TLS | Authenticated clients that want encryption from the first byte | Encrypted from byte one; RFC 8314 recommends implicit TLS for submission | Like 587, a submission port, so not where verification probes go |
For verification, the operative port is 25. That is the port the recipient's MX hosts listen on for inbound mail, and it is the port a verifier connects to in order to ask "does this mailbox exist." Ports 587 and 465 belong to the sending side of the equation; they are how you submit a message you intend to deliver, not how you probe a mailbox.
The reason 25 matters operationally is that it is the port most aggressively blocked by network operators. Consumer ISPs (Comcast, AT&T, many mobile carriers) block outbound port 25 by default to prevent compromised home machines from sending spam. Cloud providers (AWS, GCP, Azure) restrict or require unblocking for outbound 25. This is why verification infrastructure cannot run from a residential connection or a default cloud instance: the port is blocked before the probe ever reaches the recipient.
A verifier that targets 587 or 465 against a recipient MX is probing the wrong service. Those ports are for submission, not for the inbound mail-transfer service that answers RCPT TO with a mailbox-existence verdict. Get the port right or get the verdict wrong.
TLS in the Handshake
Modern mail servers advertise STARTTLS during the EHLO response, and a verifier that supports it will issue STARTTLS to upgrade the connection to TLS before proceeding. After the TLS handshake completes, the verifier re-issues EHLO over the encrypted channel and continues the conversation.
TLS protects the handshake from passive interception. A verifier that does not negotiate TLS transmits the EHLO, MAIL FROM, and RCPT TO in plaintext, including the recipient address it is probing. Some receiving servers refuse to proceed without TLS; a verifier that does not support STARTTLS will get a failure on those servers and may incorrectly mark the address as unreachable.
The trade-off is that TLS adds a round trip. The verifier issues STARTTLS, the server responds, the TLS handshake runs, and then the verifier re-issues EHLO. This is a measurable cost at scale (it adds latency to every verification against a TLS-requiring server), but it is non-negotiable for correctness on the modern mail ecosystem, where the majority of enterprise MX hosts require or strongly prefer TLS.
Greylisting and Tarpitting
Greylisting and tarpitting are two anti-spam behaviors that affect verification in the same way: they make the RCPT TO response misleading. A naive verifier that reads a single RCPT TO response and reports the verdict will produce false negatives on greylisted addresses and false unknowns on tarpitted connections.
Greylisting
Greylisting is an anti-spam strategy in which the receiving server returns a temporary-failure code (typically 421 or 450), on the first delivery attempt from a sender it has not seen before. The server records the sender's IP and the sender/recipient pair. When the sender retries after a delay (commonly 30 seconds to several minutes), the server accepts the delivery and whitelists the pair for future sends.
The effect on verification is direct. A verifier that connects, sends RCPT TO, receives 450, and reports "invalid" is wrong. The mailbox may be perfectly live; the server is just asking the verifier to try again. The correct behavior is to treat 4xx on RCPT TO as unknown: retry later, not as invalid. A verifier that conflates 4xx with 5xx will mark a meaningful slice of valid mailboxes as dead, and the user will delete good contacts thinking they are bad.
The deeper issue is that greylisting is adversarial to single-shot probes. The whole point of greylisting is to reject first-time senders and only accept senders that retry, on the theory that real mail servers retry and spam bots do not. A verification probe is, by design, a single-shot interaction; it is not trying to deliver mail. So greylisting forces a choice: retry after the greylist window (slower, more complex, and not always feasible at scale), or accept the unknown verdict and move on. Verifiers that claim 100% coverage on greylisted domains are either not probing those domains or are not telling the truth about their resolution rate.
Tarpitting
Tarpitting is the practice of artificially slowing down an SMTP connection (inserting delays between responses) to make bulk sending expensive. A tarpitting server might pause 10, 30, or 60 seconds before responding to RCPT TO, on the theory that a spammer sending a million messages cannot afford to wait a minute per recipient.
For verification, the effect is latency. A verifier with a short timeout will give up during a tarpit delay and report the address as unknown. A verifier with a long timeout will wait, get the response, and report it correctly, but at the cost of verification throughput. Tarpitting does not change the verdict the server eventually returns; it changes how long the verifier has to wait to hear it.
The combined effect of greylisting and tarpitting is that some slice of any real-world list cannot be resolved in a single fast probe. This is one of the structural reasons every verifier has an "unknown" bucket: some servers time out, defer, or won't answer a single probe, and the honest result is inconclusive.
How Catch-All Breaks Naive RCPT TO
The biggest single failure mode of SMTP-based verification is the catch-all domain. On a catch-all domain, the receiving server is configured to return 250 OK to RCPT TO for every local-part, whether the mailbox exists or not. The server is not checking whether alex.rivera@recipient.com maps to a real mailbox; it is accepting any address on the domain and handling the routing downstream, often silently discarding mail to non-existent local-parts.
A naive verifier that reads only the RCPT TO response code will mark every address on a catch-all domain as valid. This is the worst kind of false positive: the address looks deliverable, the verifier says "valid," the user loads it into a sequence, and the email is sent, and then either bounces silently (the server accepted it and dropped it), or lands in a catch-all inbox nobody reads, or is greyholed. The bounce log shows nothing because the server accepted the message. The engagement log shows nothing because no human saw it. The damage is invisible until the sender reputation drops.
Catch-all behavior is common on larger companies, especially behind security gateways. Most verifiers detect it and label the address risky, accept-all, or unknown rather than guessing. That's the honest answer, but it leaves you choosing between deleting good contacts and sending blind. More on how verifiers label this in the LeadMagic vs legacy email verifiers comparison.
The catch-all problem is the core reason that "SMTP verification" is not a solved problem. The protocol gives you a clean signal on a normal domain and a misleading signal on a catch-all domain, and there is no flag in the SMTP response that tells you which kind of domain you are talking to. Detecting catch-all is a separate inference step; resolving catch-all (determining which specific addresses on a catch-all domain are genuinely live) is a separate and harder problem that naive RCPT TO probing cannot solve at all.
Catch-All Resolution as a Capability
LeadMagic Email Validation attempts catch-all resolution in the same call. A resolved address comes back a definitive valid or invalid, billed at 0.25 credits like any other, and catch-all emails it marks valid carry a ~0% bounce rate. Catch-all addresses it can't confirm come back unknown, and it doesn't bill for them.
The resolution method isn't documented and isn't part of any integration contract. What's exposed is the outcome: a valid / invalid / unknown status in the response. You can check a single address with the Email Validation tool. You can integrate the live verdict via the Email Validation product, and for the catch-all-specific capability, see catch-all validation.
What you should not expect from any verification provider is a published methodology for catch-all resolution. The method is the competitive moat; the result is the contract. Judge catch-all verifiers on their resolved rate, their bounce rate on resolved-valid sends, and their pricing model on inconclusive results. LeadMagic doesn't bill unknown on Email Validation: you pay 0.25 credits only for a valid or invalid result, so one credit equals four validations.
Response-Time Engineering
SMTP verification is inherently a network round-trip exercise (TCP connect, EHLO, STARTTLS, MAIL FROM, RCPT TO, QUIT), each of which is a request and a response across the public internet. A naive implementation that runs these steps serially against a single server will take hundreds of milliseconds per address, and far longer against tarpitting or overloaded servers.
LeadMagic runs syntax validation, MX lookup, and the SMTP handshake in a single API call, and marks disposable domains invalid without a probe. The engineering behind response time (connection handling, parallelism, caching, MX pre-resolution, probe tuning) isn't documented or exposed. Measure latency from your own servers if you plan to call it inline.
Why response time matters operationally: verification runs in two contexts. The first is batch list cleaning, where throughput matters more than single-call latency. The second is inline form validation (a signup form, a lead-capture widget, a CRM record-creation flow), where the user is waiting on the verdict. In the inline context, set a hard timeout and decide in advance whether a slow check fails open or closed; the real-time verification guide covers the patterns. Catching bad addresses at the point of entry means they never reach your CRM.
DNS-Only vs SMTP Verification
The cheapest possible "verification" is a DNS-only check: syntax validation plus an MX record lookup. It catches malformed addresses and domains that cannot receive mail. It doesn't catch anything else. The table below shows why lists that pass DNS-only checks still bounce.
| Capability | DNS-only (syntax + MX) | SMTP verification | LeadMagic full pipeline |
|---|---|---|---|
| Catches malformed addresses | Yes | Yes | Yes |
| Catches domains with no mail server | Yes | Yes | Yes |
| Detects inactive mailboxes (mailbox does not exist) | No | Yes (250 vs 550 on RCPT TO) | Yes |
| Detects catch-all domains | No | Detects the domain; can't resolve individual addresses | Resolves to valid/invalid in the same call where it can; otherwise unknown |
Detects role-based addresses (info@, sales@) | No | No (passes, mailbox exists) | No; apply your own local-part rules |
| Detects disposable domains | No | No | Yes, returned as invalid |
| Handles greylisting / tarpitting | N/A, no connection made | Must distinguish 4xx from 5xx and retry | Returns unknown (not billed) when not resolvable |
| Cost per check | Lowest (no SMTP connection) | Medium (SMTP round trips) | 0.25 credits per valid/invalid; 0 for unknown |
The bottom row is the one that matters for budget. DNS-only verification is cheap because it does less. SMTP verification is more expensive because it talks to the server. The full pipeline (SMTP plus catch-all resolution plus disposable detection) is what gets you a list you can send against with confidence.
A team that runs DNS-only checks and ships the list is paying for the cheap check and then paying again in bounce rate, sender-reputation damage, and the cleanup cost after the campaign underperforms. A team that runs SMTP verification but skips catch-all resolution gets a clean verdict on normal domains and an unknown on catch-all ones. On an enterprise list, that slice can be large, because bigger companies are more likely to sit behind catch-all security gateways.
Where This Leaves You
SMTP verification is the protocol layer that makes email deliverability knowable. Without it, you are guessing. With a naive implementation, you're still guessing on the catch-all slice and getting false negatives on the greylisted slice. With a complete pipeline (SMTP handshake, catch-all resolution, disposable detection, and pricing that doesn't charge for inconclusive results) you get a list you can actually send against.
The mechanical takeaway from this guide is that the RCPT TO response is the load-bearing signal, and that signal is reliable on a normal domain and unreliable on a catch-all domain. Everything else (MX resolution, port selection, TLS negotiation, greylisting handling) is engineering around the edges of that one step. The strategic takeaway: ask how a verifier handles catch-all addresses, and whether it bills you for results that don't answer the question.
If you want the protocol in action, the Email Validation product runs the full pipeline in one call. If you want the catch-all detail specifically, catch-all validation explains how that same call resolves accept-all addresses. If you want to integrate it into a product or pipeline, the Email Verification API Guide covers curl, Python, Node.js, batching, and error handling. And to try a single address first, use the Email Validation tool.
Verify before you send. Resolve catch-alls before you upload. The cost of the verification pass is a fraction of a cent per address; the cost of skipping it is measured in burned domains, depressed open rates, and pipeline that never materializes.
Sources and review
Topic path
Go deeper on Deliverability & Verification
How email verification works, Valid/Invalid/Unknown results, 0.25 credits per check (1 credit = 4 validations), catch-all resolution, and send/no-send rules. help reduce preventable bounces with real-time validation.
Keep reading
Six mail-server response patterns break naive verifiers. Learn what each one is, why it misleads, and how to route results after verification.
Catch-all domains accept every address, so most verifiers label them risky or unknown. Here's how to resolve them and route the results.
Role-based addresses like info@ and admin@ look valid but never reach a buyer. Here's how to detect them, enrich past them, and route them correctly.
