Article
How to Do an SMTP Email Check: Step-by-Step Guide
By Unlimited Verifier Team ·

Summary
An SMTP email check connects to the recipient's mail server on port 25 and asks whether it would accept mail for a given address, without sending any message. You find the MX record, send EHLO, MAIL FROM and RCPT TO, then read the reply: a 250 suggests the mailbox exists, while a 550 5.1.1 means it does not.An SMTP email check connects to the recipient's mail server on port 25, introduces a sender, and asks whether a specific mailbox would accept a message, all without sending any email. Run by hand in a telnet or netcat session, or in code with an SMTP library, it is a direct test of whether an address exists, and it is the core step of real-time email validation.
Quick answer
- Find the MX record for the domain, connect to the lowest-preference server on port 25, then send
EHLO,MAIL FROMandRCPT TO. A 250 reply toRCPT TOmeans the server accepts the address. A 550 with code 5.1.1 means it does not exist. - Never send
DATA. SendQUITafter theRCPT TOreply. No message is delivered if you stop there. - Port 25 is blocked on many home and cloud networks, so the check may never reach the server. Test from a host that allows outbound port 25, or use a hosted verifier.
- Catch-all domains, greylisting and timeouts make some answers inconclusive. Label those Risky, not Valid.
- For more than a few hundred addresses, use bulk verification. Unlimited Verifier checks the SMTP mailbox in its pipeline and sorts every address into Valid, Risky or Invalid, with unlimited standard verification on every plan.
What does an SMTP email check actually prove?
An SMTP check tests whether a receiving server will accept mail for one address at the moment you ask. SMTP, the Simple Mail Transfer Protocol, is the dialogue servers use to hand mail to each other, and RFC 5321 defines it. A check uses only the opening half of a real delivery: greeting, sender, recipient, then quit before any message body is sent.
It proves the server is willing to accept mail for that address. It does not prove that a person reads the mail, that they agreed to receive it, or that the address is free of spam traps. Deliverability and consent are separate questions.
Bottom line: An SMTP check answers "would this server accept mail for this address right now?" It does not answer "should I email this person?"
How does an SMTP check work, step by step?
A complete check runs in seven stages, and each stage can change the verdict.
- Syntax. The address must have a local part, an
@, and a domain. Reject malformed strings before any network call. - Domain and MX lookup. Query the domain's MX records. RFC 5321 says that if no MX record exists, the sender falls back to the domain's address record. A domain with no mail route is almost always Invalid.
- Connection. Open a TCP connection to the lowest-preference MX host on port 25. Lower preference numbers win.
- Dialogue. Send
EHLO,MAIL FROM(any sender address you control), andRCPT TO(the address under test). - Reply reading. The reply to
RCPT TOis the signal. The enhanced status codes in RFC 3463 explain why a server gave that reply. - Catch-all probe. Send
RCPT TOfor a random address at the same domain. If the server accepts it, the domain accepts everything, and a positive result for your real address proves nothing. - Classification. Map the results to Valid, Risky or Invalid.
The reply codes drive the verdict:
| Reply | Enhanced code | What it means | Typical classification |
|---|---|---|---|
| 250 | 2.1.5 | Recipient accepted | Valid candidate, pending the catch-all probe |
| 550 | 5.1.1 | Bad destination mailbox | Invalid |
| 452 | 4.2.2 | Mailbox full | Risky: exists, but cannot take mail now |
| 450 / 451 | 4.x.x | Temporary failure, often greylisting | Risky: retry later |
| 550 or 554 | 5.7.x | Policy rejection tied to your IP or sender | Unknown: a verdict on your reputation, not the address |
| No reply or timeout | None | Port blocked, host down, or throttled | Retry; if it persists, Risky |
The 4xx replies are temporary by definition, so one 450 should never become an Invalid verdict. The 5.7.x replies are the easiest to misread. They mean the server refused your sender or connection on policy grounds. They say nothing about the mailbox.
Bottom line: Only a 250 (with a passing catch-all probe) or a 550 with 5.1.1 gives a clean answer. Everything else needs a retry or a Risky label.
How do you run an SMTP check by hand?
You can run one from a terminal in about a minute per address. It is the best way to learn how mail servers respond, though it does not scale.
- Find the MX host. Run
dig +short MX example.com. You will see something like10 mx1.example.com.Use the host with the lowest number. - Open a connection on port 25. Run
telnet mx1.example.com 25. If telnet is missing, runnc mx1.example.com 25. - Greet the server. Type
EHLO checker.yourdomain.com. Use a hostname you control. - Name a sender. Type
MAIL FROM:<check@yourdomain.com>. - Ask about the recipient. Type
RCPT TO:<jane.doe@example.com>. - Read the reply, then quit. Type
QUIT.
A typical exchange looks like this:
220 mx1.example.com ESMTP ready
EHLO checker.yourdomain.com
250 mx1.example.com
MAIL FROM:<check@yourdomain.com>
250 2.1.0 OK
RCPT TO:<jane.doe@example.com>
250 2.1.5 OK
QUIT
221 2.0.0 Bye
Two details separate a useful manual check from a misleading one:
- Never type
DATA. That command opens the message body, and it is the step that delivers mail. End the session atRCPT TO. - Set up reverse DNS for the sending IP. Many servers refuse connections whose IP has no PTR record matching the
EHLOhostname. A check from an unconfigured home IP can return 550 for every address. That looks like a list problem but is really a reputation problem.
Bottom line: A manual session shows you exactly what a server says, but one stray DATA command turns a test into a real send.
How do you run an SMTP check in code?
Code gives you control over retries, timeouts and the catch-all probe. This minimal Python version uses dnspython (install with pip install dnspython) and the standard smtplib library.
import smtplib
import dns.resolver
def smtp_check(address, sender="check@yourdomain.com"):
domain = address.rsplit("@", 1)[1]
mx = sorted(dns.resolver.resolve(domain, "MX"), key=lambda r: r.preference)
host = str(mx[0].exchange).rstrip(".")
try:
with smtplib.SMTP(host, 25, timeout=10) as server: # exiting the block sends QUIT
server.ehlo("yourdomain.com")
server.mail(sender)
code, message = server.rcpt(address)
return code, message.decode(errors="replace")
except (smtplib.SMTPException, OSError) as err:
return None, str(err)
Production code needs three more things. It must handle a missing MX record, since dns.resolver raises an exception rather than returning an empty list. It must fall through to the second MX host when the first times out. And it must run the catch-all probe with a random local part on the same domain. Each of these is a common source of silent bugs. If you work in Go, compare the libraries in best Golang email validation packages. For the MX half of the check in PHP, see the Laravel DNS rule guide. For format checks in the browser, how to validate email in JavaScript covers the syntax stage.
Bottom line: The core check is about 15 lines. The retry, fallback and catch-all logic is where most of the engineering effort goes.
Which SMTP check method should you choose?
Choose by volume, how often you check, and whether you want to own the infrastructure.
| Method | Best for | Needs port 25 access | Catch-all handling | Scale | Main limitation |
|---|---|---|---|---|---|
| Manual telnet or netcat | Learning, or one or two addresses | Yes, from your own host | Manual probe only | Roughly one address a minute | One stray DATA sends mail |
| Custom script (smtplib, dnspython) | Developers building checks into a product | Yes | Only if you code it | Limited by your concurrency and rate handling | You own greylisting retries and IP reputation |
| Open-source engine you run | Teams that want to read and run the logic | Yes | Depends on the engine | Limited by your infrastructure | You supply IP reputation and maintenance |
| Bulk upload (Unlimited Verifier) | Lists from hundreds to tens of thousands | Handled by the provider | Flagged and sorted | CSV or Excel up to 10MB per file | Verdicts depend on how mailbox servers respond |
| Real-time API (Unlimited Verifier) | Signup forms and CRM entry points | Handled by the provider | Flagged in the response | Single checks, or batches of up to 10,000 emails per request | Your app needs timeout handling |
Use a manual check to learn, a script when checking is part of your product logic, and a hosted tool once your list reaches a few thousand addresses or you want catch-all handling you don't have to maintain. If you are comparing vendors, best email verification tools explains what to look for. For signup forms, how to add real-time email verification to signup forms walks through the integration. Where the check runs matters too: format checks belong in the browser, and the SMTP step belongs on the server, as explained in client-side vs server-side email validation.
Bottom line: Build your own check only if you want to own the infrastructure. For list work, a hosted service removes the port 25, retry and reputation problems.
How do you SMTP-check a full list with Unlimited Verifier?
You don't need to write any SMTP logic. The workflow is export, verify, read the buckets, and re-import.
- Export your list as CSV or Excel. Keep the email column and any engagement fields you want for segmentation later.
- Remove exact duplicates before uploading. Duplicates waste quota and skew your counts.
- Sign up. The Free plan covers 25 lists a month of up to 150 emails each, which is enough to test your file format.
- Upload the file. CSV and Excel files up to 10MB are accepted, and the email column is detected automatically.
- Let the run complete. Each address is checked for syntax, domain, MX records and the SMTP mailbox. Catch-all domains are detected, and disposable and role-based addresses are flagged.
- Read the three buckets. Valid addresses are ready to send. Invalid addresses should be suppressed. Risky addresses need a decision, covered below.
- Check important borderline addresses individually with the free email checker, such as a key account's contact.
- Export the results as CSV, Excel or JSON before they expire. Results are kept 24 hours on the Free plan and 30 days on Pro. Save the summary counts, then re-import only the Valid segment into your email platform or CRM. There are no native integrations, so this re-import is manual.
For ongoing checks, the email verification API lets your own systems run the same checks. It fits email verification API and automation at signup or import.
Bottom line: Export, upload, read three buckets, export results before they expire. The SMTP layer runs inside the service.
How much does it cost to SMTP-check a 50,000-row list?
On the Pro plan, verifying 46,600 addresses costs $29 for the month, or about $0.62 per 1,000 addresses. The example below uses illustrative drop-out counts. The plan limits and arithmetic are real.
A SaaS team has 50,000 rows from a trade-show export and a legacy CRM. A syntax filter removes 3,400 malformed entries before any network check, leaving 46,600 addresses.
Splitting for the plan limit. Each Pro list holds up to 25,000 emails, so the file splits into 25,000 + 21,600.
Deep verification budget. Pro includes 25,000 deep verifications a month. Assume the first pass returns 9,000 Risky addresses, and the team deep-verifies all of them. That uses 9,000 of the allowance and leaves 16,000 for later checks that month.
Cost comparison. For context on how pricing is structured, see email verification pricing.
| Scenario | Emails in month | Plan | Monthly cost | Cost per 1,000 |
|---|---|---|---|---|
| Small test | 3,000 (20 lists × 150) | Free | $0 | $0 |
| This example | 46,600 | Pro, monthly | $29 | $0.62 |
| This example | 46,600 | Pro, annual | $25 | $0.54 |
| Larger month | 100,000 (4 lists × 25,000) | Pro, monthly | $29 | $0.29 |
The Free plan caps at 3,750 emails a month (25 lists × 150). Running 46,600 addresses on it would take ⌈46,600 ÷ 150⌉ = 311 lists, far beyond the 25-list limit, so Pro is the realistic choice here.
API comparison. Sent through the API in batches of up to 10,000 emails per request, the same 46,600 addresses need ⌈46,600 ÷ 10,000⌉ = 5 requests. Pro includes 100,000 API emails a month, so this fits.
Why not build it yourself? At an illustrative two seconds per address, one thread checks 1,800 addresses an hour. Single-threaded, 46,600 addresses take 93,200 seconds, about 26 hours. Parallel checks are possible, but each adds retry logic and reputation risk.
Bottom line: For 46,600 addresses, Pro at $29 a month works out to about $0.62 per 1,000, and the job takes a few uploads rather than a day of engineering.
How do you read Valid, Risky and Invalid results?
Valid means the address passed the checks cleanly. Invalid means it failed a clear test, such as a 550 with 5.1.1. Risky means the result is inconclusive or carries a warning, and it is the category people most often misread.
Risky results usually come from four causes:
- Catch-all domains, which accept any recipient. An accepted
RCPT TOsays nothing about one specific mailbox. The catch-all email verification page explains how these are handled. - Temporary failures such as greylisting or a full mailbox, which may resolve on retry.
- Disposable and role-based addresses, such as
info@or throwaway domains. The flags are useful even when the mailbox exists, because role accounts often reach a team rather than a person who wants your email. - Unresponsive or policy-blocked servers, where the check could not produce a clean answer.
Send to Valid addresses first. Hold Risky addresses back until your main list has shown stable results, then test the best of them in a small send. Suppress Invalid addresses permanently. Treat Risky as a holding category, not as a failure.
Bottom line: A Risky result is an honest "we can't tell." Holding those addresses back is what keeps your bounce rate low.
Why do SMTP checks fail or give wrong answers?
SMTP checks fail in predictable ways, and most of the failures come from infrastructure rather than from the address itself.
- Port 25 is blocked. Many home ISPs and cloud providers restrict outbound port 25 by default. The connection never reaches the server, so the result looks like a timeout, not a verdict.
- Greylisting. Some servers reject first-time senders with a temporary 4xx reply and expect a retry. A single attempt misreads that as an unknown.
- Catch-all domains. These accept every recipient, so the answer is positive whether or not the mailbox exists.
- Anti-abuse throttling. Large mailbox providers protect against address harvesting and can slow or generic-respond to probing traffic. Results can then be inconclusive, which is why the check should be classified rather than trusted blindly.
- VRFY is usually disabled. The
VRFYcommand asks directly whether a user exists. Many servers turn it off, so verifiers rely onRCPT TO. - Rate limiting. Servers that see many connections from one IP slow down or refuse them. Those refusals show up as inconclusive results.
For a deeper look at the blocking side, see why SMTP email verification gets blocked.
Bottom line: Most "wrong" SMTP results are infrastructure problems: blocked ports, greylisting, catch-all domains or throttling.
How do you keep SMTP checks from getting blocked?
Mail servers treat unusual connection patterns as abuse, so check at a pace a legitimate sender would use.
- Use a sending IP with matching reverse DNS. The PTR record should match the hostname you give in
EHLO. - Limit simultaneous connections per target domain. Spreading checks across many domains is safer than hammering one provider.
- Back off on 4xx replies. Wait and retry rather than resubmitting immediately. Fast repeated retries can trigger temporary bans.
- Never issue
DATA. End every session atRCPT TO, or the check becomes a real send. - Use a sender address you control. Make sure bounces and abuse reports reach someone who will act on them.
Hosted verification handles these details for you, which is one reason teams use it. If you build your own pipeline, email validation API rate limits explained covers how to pace requests. For industry guidance on responsible sending, the Messaging, Malware and Mobile Anti-Abuse Working Group (M3AAWG) publishes best practices for senders.
Bottom line: A paced check, backed by reverse DNS and ended before DATA, is more accurate and far less likely to get your IP blocked.
Is an SMTP check enough for compliance?
No. An SMTP check supports deliverability and list hygiene, but it does not replace consent. A valid address may belong to someone who never asked for your email.
Legal requirements depend on where your recipients are. In the United States, the FTC's CAN-SPAM compliance guide sets rules for commercial email, including accurate headers, a working opt-out and a valid postal address. Verification satisfies none of those requirements.
Mailbox providers set their own expectations. Google's sender guidelines advise keeping the user-reported spam rate below 0.10% and avoiding 0.30% or higher. Verification helps you stay within bounce and spam limits, but only if your list is also consented.
Treat verification as one layer of email verification compliance and hygiene. It removes dead addresses, catches typos at entry and reduces spam-trap exposure. Pair it with opt-in records and unsubscribe suppression. For B2B prospecting, where consent rules differ by region, email verification for sales prospecting explains how to frame the work. Ongoing upkeep is covered in email list maintenance best practices.
Bottom line: Verification proves an address can receive mail. Only your opt-in record proves you may send it.
What are the most common SMTP check mistakes?
- Sending a real test message to see whether an address works. This creates a delivery and possibly a bounce.
- Using
VRFYas your main method. Most servers disable it, so you learn nothing. - Reading a 250 on a catch-all domain as Valid. Run the catch-all probe before trusting any positive result.
- Treating a single 450 as Invalid. Temporary failures need a retry.
- Running checks from a home or unconfigured cloud IP. The 5xx replies you get reflect your reputation, not the list.
- Skipping syntax and MX checks. They are cheap and remove obvious failures before any network call.
- Assuming a Valid result means consent. It does not, and treating it that way invites complaints.
- Re-checking an unchanged list repeatedly. Most of the value comes from acting on the first results.
Bottom line: Most failed SMTP checks come from skipping the catch-all probe, misreading temporary replies, or sending mail by accident.
How we compared (and limitations)
This guide is based on public documentation: RFC 5321 for SMTP, RFC 3463 for enhanced status codes, Google's published sender guidelines, and M3AAWG's guidance. We have not run controlled tests against individual mail servers or mailbox providers. Server behaviour varies and changes without notice, so treat the reply-code mappings as a starting point.
Unlimited Verifier's 99.5% accuracy figure for deep verification is the company's own stated number, not an independent benchmark. The worked example is illustrative: the list sizes and drop-out counts are hypothetical, while plan limits, prices and arithmetic reflect the published plan details. Confirm current pricing and limits before you buy. The open-source verification engine is available at Unlimited Verifier's GitHub repository if you want to read how it works.
Bottom line: The method is standard and well documented, but server responses are not guaranteed, so classify inconclusive results as Risky and verify your own numbers.
Worked SMTP session
C: (connect to mx1.example.com:25)
S: 220 mx1.example.com ESMTP ready
C: EHLO checker.example.org
S: 250 mx1.example.com
C: MAIL FROM:<probe@checker.example.org>
S: 250 2.1.0 Sender OK
C: RCPT TO:<jane.doe@example.com>
S: 250 2.1.5 Recipient OK -> Valid
C: QUIT
S: 221 2.0.0 Bye
If the RCPT TO reply were 550 5.1.1 User unknown, classify as Invalid. A 451 or 421 reply, or a timeout, is Risky and should be retried.
Frequently asked questions
Is an SMTP email check the same as sending an email?
No. An SMTP email check stops after the RCPT TO reply and sends QUIT, so no message body is transmitted and nothing is delivered. It only tests whether the receiving server would accept mail for that address at that moment.
Which port is used for an SMTP email check?
Port 25 is the standard port for server-to-server SMTP, and it is the port used for a direct check against the recipient's MX host. Many home and cloud networks block outbound port 25, so the check may fail before it reaches the server.
What does a 550 5.1.1 reply mean?
A 550 reply with enhanced code 5.1.1 means the server reports that the recipient mailbox does not exist. It is a strong signal that the address is invalid, though you should still confirm it is not a temporary server issue.
What is a catch-all domain in SMTP checking?
A catch-all domain accepts mail for any address, real or not. Because it returns 250 for everything, a positive reply for your target address proves nothing, so the result should be labelled Risky rather than Valid.
Why does my SMTP check return a timeout?
Timeouts usually come from blocked port 25, firewall rules, rate limiting, or a slow or greylisting server. Treat timeouts as inconclusive and retry later from a different network rather than marking the address invalid.
What is greylisting and how does it affect SMTP checks?
Greylisting makes a server temporarily reject first-time senders with a 4xx reply and ask them to retry later. A 4xx response is not a final answer, so the address should be marked Risky and rechecked after a delay.
Can an SMTP check find spam traps?
No. An SMTP check cannot reliably identify spam traps, which are addresses run by blocklist operators to catch senders with poor list hygiene. A deliverable-looking address can still be a trap, so consent and list sourcing matter separately.
Do I need to find the MX record before an SMTP check?
Yes. The check must connect to the domain's mail server, so you look up its MX records and use the lowest-preference host. If no MX record exists, RFC 5321 allows falling back to the domain's address record, and a domain with no mail route is usually invalid.
Is an SMTP email check legal and allowed?
Running a check is generally a network protocol test, but many mail providers rate-limit or block repeated probing, and sending probes at scale can violate their acceptable use terms. Check the rules of the networks you use and consider a hosted verifier for volume.
Cut Bounces and Protect Your Sender Reputation With Unlimited Email Verification
Every invalid address you send to hurts your sender reputation and your inbox placement. Verifying your list before each send means fewer bounces, healthier deliverability, and a predictable cost. With Unlimited Verifier, standard verification is unlimited on every plan, with no per-email fees.
Unlimited Verifier checks syntax, domain, MX records and the SMTP mailbox. It also detects catch-all domains and flags disposable and role-based addresses. Export a CSV from your email platform or CRM, upload and verify the list, then re-import the clean results. You can also automate checks with the email verification API.
| Free | Pro | |
|---|---|---|
| Price | $0 | $29/month ($25/month billed annually) |
| Lists | 25 a month, up to 150 emails each | Unlimited, up to 25,000 emails each |
| Deep verifications | 750 a month | 25,000 a month |
| API access | No | Yes (100,000 emails a month) |
| Result retention | 24 hours | 30 days |
Why teams choose Unlimited Verifier
- Unlimited standard verification on all plans, including Free, with no per-email fees.
- Catch-all detection so you know which domains accept every address.
- Clear Valid / Risky / Invalid results, exportable as CSV, Excel or JSON.
- An open-source verification engine you can inspect on GitHub.
Unlimited Verifier states 99.5% accuracy for deep verification.
Create a free account and verify your next list before you hit send.
Want to test a single address first? Try the free email checker.