Article
How to Verify Emails Without Uploading Them to the Cloud
By Unlimited Verifier Team ·

Summary
You can verify email addresses without uploading your list by running syntax, MX and SMTP checks on your own machine. The mailbox probe still contacts each recipient's mail server, so the file stays local but the network traffic does not.You can verify emails without uploading them by running three checks on your own machine: a syntax test, a DNS MX lookup and an SMTP mailbox probe on port 25, so your list file never leaves your network. The mailbox step still connects to each recipient's mail server, so "offline" describes where your file is stored, not where network traffic goes. Our email verification data privacy guide covers the wider privacy picture. This article shows how to run the checks yourself, where the approach breaks down, and when a hosted tool is the more defensible choice.
Quick answer
- Keep the file local: Syntax, MX and SMTP checks can all run from a machine you control, so no CSV goes to a vendor.
- Accept the network reality: The mailbox probe still contacts recipients' mail servers, and those servers can see which address you asked about.
- Expect gaps: Many cloud providers and home networks block outbound port 25, and catch-all domains and greylisting need careful handling.
- Stop before DATA: A probe ends at the
RCPT TOreply. Never send a real message to test an address. - Use hybrid for cost, not privacy: Filtering syntax and no-MX failures locally saves mailbox checks, but it only removes the rows that fail those cheap tests.
What does "verifying without the cloud" actually mean?
Local verification means your own machine runs the checks, so no vendor receives your file. It does not mean your machine stops talking to other servers. Each check has a different privacy footprint:
- Syntax: A string test against the address grammar in RFC 5322, plus the length limits in RFC 5321, which caps the local part at 64 octets. Nothing leaves your machine.
- Domain and MX: A DNS query asking which servers accept mail for the domain. Whichever resolver answers sees the domain name.
- Mailbox (SMTP): You connect to the MX host, say hello, name a sender, and ask whether the recipient is accepted with
RCPT TO. The recipient's server sees the address you asked about. Whether the mailbox owner ever notices depends on the provider, which we cover in whether verifying an email notifies the owner.
Reply codes drive your buckets. Under RFC 5321's reply classes, 2xx means accepted, 4xx is a temporary failure worth retrying, and 5xx is a permanent rejection. A 550 is the usual "no such user." A 252 means the server will accept mail but won't confirm the mailbox, which belongs in Risky, not Valid.
Local tools also rely on reference data: disposable-domain lists and role-account prefixes such as info@ and sales@. You download these once and refresh them periodically. They do not reveal your customer list.
Bottom line: Local verification keeps your file off third-party servers, but the mailbox step still talks to the recipient's infrastructure.
Can you verify emails fully offline?
Partly. Syntax checks and reference-list checks need no network at all. Domain and mailbox checks do.
- Syntax: Fully offline.
- Disposable and role-based flags: Offline, using a reference list you downloaded earlier.
- Domain and MX: Requires DNS queries. Without them, you know an address is well formed, but not that its domain accepts mail.
- Mailbox existence: Requires contacting the recipient's server. No offline method can answer this.
If someone asks for "offline" verification, what they usually need is a file that never leaves their control. That is achievable. A mailbox-level answer without contacting a mail server is not.
Bottom line: Fully offline checks stop at well-formedness and reference lists. Anything that confirms a mailbox has to touch the network.
Which verification method keeps your list off third-party servers?
Five options cover most setups. The main trade-off is between data control and the effort of running mailbox checks reliably. The best email verification tools roundup covers hosted products in more depth. This table focuses on where your data goes.
| Option | Where your list goes | Mailbox (SMTP) check | Catch-all detection | Upkeep you carry | Best fit |
|---|---|---|---|---|---|
| Hosted bulk verifier (e.g., Unlimited Verifier Pro) | Uploaded as CSV or Excel (up to 10MB), or sent by API. Pro keeps results 30 days; Free keeps them 24 hours | Yes | Yes, flagged | Low | Teams that have reviewed the vendor's retention and processing terms |
| Hosted single-address checker (e.g., Unlimited Verifier's free single-email checker) | One address per query, sent to the vendor | Confirm in the tool's documentation | Confirm in the tool's documentation | None | Spot-checking a handful of addresses |
| Self-hosted open-source engine (e.g., Reacher, a Rust tool, or AfterShip's email-verifier, a Go library) | Stays in your environment | Check each project's documented checks | Check each project's documented checks | Medium: a server, port 25 access, updates, IP reputation | Regulated data and sensitive lists |
DIY script (dnspython plus smtplib) |
Stays local | You write it | You write it, using a random-address probe | High: retries, throttling and edge cases are yours | Engineers who want full control |
| Hybrid (local syntax and MX, hosted mailbox check on survivors) | Only rows that pass the local filter leave your machine | Hosted | Hosted | Medium: two steps to maintain | Large lists where many failures are syntactic or no-MX |
Unlimited Verifier also publishes an open-source verification engine on GitHub at github.com/unlimitedverifier/free-email-verifier. Read which checks it runs before deciding whether it fits your data boundary. The repository is the source for what the open engine does, so check it rather than assuming it matches the hosted service.
Bottom line: A self-hosted engine or script gives full data control. A hybrid saves mailbox checks and time, but the privacy gain depends on how many rows the local filter removes.
How do you run a local verification, step by step?
Follow these steps in order. Projects that skip steps 2 and 3 usually fail with timeouts that look like "every address is invalid."
- Define the data boundary. Classify the list before you touch it. Personal data about EU residents, health or financial records, and children's data justify fully local processing. Record who may see the output, because the output inherits the same classification.
- Confirm port 25 is reachable. From the machine you will use, run
nc -vz gmail-smtp-in.l.google.com 25. "succeeded" means the port is open. A timeout means your network or provider blocks SMTP. Fix this before anything else, because every later step depends on it. - Build a sending identity. Use a domain you control, set a reverse DNS (PTR) record that matches your HELO hostname, and publish an SPF record. Receiving servers judge your probing IP the way they judge a sender, and a bare residential IP is more likely to be throttled or refused early.
- Run a local caching resolver. Public DNS resolvers see every domain you check. A local caching resolver such as Unbound keeps those lookups on your network. For the broader leakage question, read whether email verification can leak your customer list.
- Normalise and deduplicate. Trim whitespace and lowercase the domain. Leave the local part alone, because RFC 5321 allows it to be case-sensitive.
- Resolve MX once per domain. Cache each result. Lookups scale with unique domains, not rows, so a list with thousands of rows on a few thousand domains needs far fewer DNS queries than rows.
- Detect catch-all domains. Probe one random, non-existent address per domain. If the server accepts it, a 250 on any address at that domain tells you nothing, so mark the domain Risky. Note the cost: this is one probe per domain, not one per catch-all domain, because you cannot know which domains are catch-all until you test them.
- Probe with throttling. Keep the rate low, retry 4xx responses after a delay, and pause any domain that starts returning blocks.
- Bucket the results. Valid means 250 or 251 on a non-catch-all domain. Invalid means a syntax failure, no MX record, or a 5xx. Risky covers catch-all domains, 252 responses, 4xx responses after retries, connection failures and disposable or role addresses. Treating disposable and role addresses as Risky is a policy choice, so document yours.
- Store and schedule. Encrypt the output, set a deletion date and repeat the run as part of your email list maintenance best practices.
Bottom line: Steps 2 and 3 decide whether mailbox checks work at all. Steps 7 and 8 decide whether the results are trustworthy.
How do you write a local verifier in Python?
This script covers the core logic: syntax, MX lookup, catch-all detection, mailbox probing and output. It is a starting point, not a finished product. It does not implement retries for 4xx responses, and it has not been validated against any particular mail server.
Setup
- Run the port 25 check from step 2 above.
- Install the DNS library with
pip install dnspython. The Python smtplib documentation covers the SMTP side. The dnspython project site covers the DNS side. - Replace
yourdomain.examplewith a domain you control and confirm its reverse DNS matchesHELO. - Save your list with a column named
email, since the script reads that column. - Run it on a 200-row file first. Check the counts before you run the full list.
import csv
import re
import smtplib
import time
import uuid
import dns.exception
import dns.resolver
EMAIL_RE = re.compile(
r"^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*"
r"@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)+$"
)
SENDER = "probe@yourdomain.example"
HELO = "mail.yourdomain.example"
PAUSE = 0.5 # seconds between probes, about 2 per second
def syntax_ok(address):
local = address.rsplit("@", 1)[0]
return len(address) <= 254 and len(local) <= 64 and bool(EMAIL_RE.match(address))
def domain_of(address):
return address.rsplit("@", 1)[1].lower() if "@" in address else ""
def mx_host(domain):
"""Highest-priority MX host for a domain, or None."""
try:
answers = dns.resolver.resolve(domain, "MX")
except dns.exception.DNSException:
return None
best = min(answers, key=lambda r: r.preference)
return str(best.exchange).rstrip(".")
def rcpt_code(address, mx):
try:
with smtplib.SMTP(mx, 25, timeout=15) as s:
s.helo(HELO)
s.mail(SENDER) # a refused sender also lands here as None
code, _ = s.rcpt(address) # stop here: DATA is never sent
return code
except (smtplib.SMTPException, OSError):
return None
def catch_all_flags(domain_mx):
flags = {}
for domain, mx in domain_mx.items():
fake = f"{uuid.uuid4().hex}@{domain}"
flags[domain] = rcpt_code(fake, mx) in (250, 251)
time.sleep(PAUSE)
return flags
def classify(address, mx, catch_all):
if not syntax_ok(address) or mx is None:
return "invalid"
code = rcpt_code(address, mx)
time.sleep(PAUSE)
if code is None or 400 <= code < 500 or code == 252:
return "risky"
if code in (250, 251):
return "risky" if catch_all.get(domain_of(address)) else "valid"
return "invalid"
def run(in_path, out_path):
with open(in_path, newline="", encoding="utf-8") as f:
rows = list(csv.DictReader(f))
if not rows:
return
domains = {domain_of(r["email"].strip()) for r in rows} - {""}
mx_map = {d: mx_host(d) for d in domains}
catch_all = catch_all_flags({d: m for d, m in mx_map.items() if m})
for row in rows:
address = row["email"].strip()
row["status"] = classify(address, mx_map.get(domain_of(address)), catch_all)
with open(out_path, "w", newline="", encoding="utf-8") as f:
writer = csv.DictWriter(f, fieldnames=list(rows[0].keys()))
writer.writeheader()
writer.writerows(rows)
if __name__ == "__main__":
run("list.csv", "verified.csv")
Reading the code
- The
Nonetrap: Connection failures, timeouts and refused senders all returnNone, which the script marks Risky. If a large share of rows comes back Risky with no 4xx codes, your sending identity is probably blocked, not your list. Count theNoneresults before you trust the output. - Catch-all cost:
catch_all_flagsruns once per domain, so it adds roughly one probe per unique domain to the total. - Missing pieces: There are no retries, no backoff and no per-domain pause on blocks. Add those before a production run.
Bottom line: The working core is about 75 lines, but throttling, sender identity and interpreting None results matter more than the code.
How do you run the hybrid workflow with Unlimited Verifier?
Use this workflow when you want the cheap checks local and the mailbox checks handled by a hosted service. Remember that the hosted step still receives every row that passes the local filter.
- Run the local filter. Using
syntax_okandmx_hostfrom the script above, keep rows where the syntax passes and the domain returns an MX host. Write the survivors tosurvivors.csvwith anemailcolumn. Keepmaster.csvwith every row. - Create an account. Sign up to test the workflow. The Free plan allows 25 lists a month of up to 150 emails each, so run a sample of your survivors before committing to the full list.
- Upload the survivors. On the upload and verify a list page, send CSV or Excel files up to 10MB. The email column is detected automatically. Pro lists can hold up to 25,000 emails each, so 38,400 survivors split into 25,000 and 13,400. If you add extra columns, check the file stays under 10MB.
- Read the three buckets. Valid, Risky and Invalid. Catch-all results are flagged, and the catch-all email verification page explains how those domains are handled.
- Export before the retention window closes. Export CSV, Excel or JSON. Free keeps results for 24 hours, and Pro keeps them for 30 days. Put the download date in your calendar the moment the job finishes.
- Merge the statuses locally. Join the status column onto
master.csvby address. Send to Valid, hold Risky, and suppress Invalid. - Automate if the process repeats. API access is a Pro feature, with 100,000 emails a month and batches of up to 10,000 emails per request. The email verification API and the email verification API and automation approach cover scripted workflows. Unlimited Verifier has no native ESP, CRM or Zapier integrations, so automation means calling the API from your own scripts.
Bottom line: The hybrid is a repeatable pipeline for large lists. Calendar the export, because the platform will not keep your results for you.
What does a 40,000-contact run cost locally versus hosted?
The numbers below are illustrative. Assume 40,000 rows across 3,200 unique domains (all with MX, for simplicity), 4% of rows failing syntax, and 300 catch-all domains. The arithmetic and plan limits are real.
Fully local run
- Syntax: 40,000 × 4% = 1,600 invalid. That leaves 38,400 rows.
- MX lookups: One per domain, cached: 3,200 queries.
- Catch-all probes: One random address per domain: 3,200 probes.
- Mailbox probes: One per surviving row: 38,400 probes.
- Total SMTP probes: 3,200 + 38,400 = 41,600.
- Time at a fixed rate: At 4 probes per second, 10,400 seconds, about 2.9 hours. At 2 per second, 20,800 seconds, about 5.8 hours. At 1 per second, 41,600 seconds, about 11.6 hours. These are floors. Connection setup, timeouts and retries all add time.
Hosted, hybrid run
- Upload: 38,400 survivors split into 25,000 + 13,400, two lists, both within the Pro cap.
- Deep verifications: Pro includes 25,000 deep verifications a month, so the 38,400 survivors cannot all get a deep check in one month. Prioritise deep checks for the rows with the highest risk, such as imports with a bounce history. Confirm which checks standard verification covers before you rely on it for the rest.
- Cost: Pro is $29 a month, or $25 a month billed annually. One month covers this run.
Hosted, no local filter
Uploading all 40,000 rows splits into 25,000 + 15,000. The hybrid trims that to 38,400 rows, which is 96% of the file. The 4% saved is the syntax failures.
What the comparison shows: Fully local costs compute time and engineering effort, with no per-address fee. Hybrid costs $29 and sends 96% of the file to the vendor. The hybrid buys speed and a smaller bill, not much privacy. If the data rules forbid sending the file, the hybrid is the wrong tool.
Bottom line: A hybrid reduces what leaves your machine only by the share of rows that fail the local tests. Check that share before you claim a privacy benefit.
Which option should you choose for your data?
Match the method to data sensitivity first and volume second. Volume alone rarely justifies sending personal data to a vendor.
| Your situation | Recommended path |
|---|---|
| Health, financial or children's data, or no vendor agreement in place | Fully local: self-hosted engine or script |
| Engineering team running a recurring pipeline | Self-hosted engine on a schedule |
| Large list where most failures are syntax or no-MX | Hybrid: local filter, then hosted mailbox checks |
| Marketing team with no engineers and a one-off clean | Hosted Pro, after reviewing terms and retention |
| Under 3,750 addresses a month, or testing the workflow | Free plan: 25 lists of up to 150 emails each. Sign up to test on your own data |
| Sales prospecting from purchased or scraped contacts | Verify locally first, then read whether cold outreach verification is ethical. See email verification for sales prospecting |
| SaaS team with recurring imports | Hybrid on a schedule. See email verification for ecommerce and SaaS |
| EU personal data with a hosted vendor | Confirm EU hosting options before uploading |
The Free plan's ceiling is simple arithmetic: 25 lists of 150 emails is 3,750 addresses a month. A 5,000-row list needs 34 lists (5,000 ÷ 150 = 33.3, rounded up), which exceeds the monthly allowance. Free also has no API access and keeps results for 24 hours, so it suits testing rather than recurring cleaning. Pro's 25,000-per-list cap lets you process larger files without splitting them into many small batches.
Bottom line: Pick the path by data sensitivity first. Use the Free plan to test the workflow and Pro for recurring work.
Where does local verification break down?
Local verification fails in predictable ways, and each failure has a known fix.
- Port 25 is blocked. Many cloud providers and home ISPs restrict outbound SMTP. Move the job to a host with port 25 open, or ask your provider about an exception.
- Greylisting returns 4xx. Some servers defer first contact from unknown senders. Retry after a delay, and keep the address Risky if the 4xx persists.
- Catch-all domains accept everything. A 250 response tells you the domain accepts mail, not that the mailbox exists. The random-address probe in step 7 flags these domains.
- Responses are inconclusive. Some providers may rate-limit probes or answer the same way whether a mailbox exists. Treat inconclusive responses as Risky, not Valid.
- Your IP gets listed. Repeated probes from one address can trigger blocks or reputation problems. Use a dedicated IP, keep the rate low, and check your IP's status before each run.
- Your sender is refused. If the sending identity is rejected at
MAIL FROM, every probe fails and the output looks like a list problem. Check theNonecount after each batch. - Verification is not consent. A probe confirms that a mailbox accepts mail. It does not show the person agreed to hear from you. For real-time checks at the point of signup, see real-time email validation. Verification and opt-in remain separate questions.
Bottom line: Local verification is most reliable when ambiguous responses are labelled Risky, not forced into Valid or Invalid.
Does keeping the list local make you compliant?
No. Keeping the file local reduces exposure, but verification still processes personal data under the EU's GDPR. You still need a lawful basis, a stated purpose and a retention limit for the results. Reviewing your setup against those requirements is the core of email verification compliance and hygiene.
Three practical points follow:
- The output is personal data too. A CSV of verified addresses needs the same protection as the original list. Encrypt it and set a deletion date.
- Check whether you need consent. The answer depends on jurisdiction and purpose. Read whether verifying an address requires consent and confirm with counsel where the stakes are high.
- Vet any vendor you use. Ask for retention periods, processing locations and security attestations. The guides on SOC 2 compliant verification services and how to check a verifier's GDPR position cover what to request. For how long hosted tools keep uploads, see how long email verifiers keep uploaded lists.
Bottom line: Local processing reduces risk, but it does not replace a documented lawful basis and retention policy.
What mistakes break local email verification?
- Probing in bulk from a home connection. Residential IPs are the fastest route to blocks, and an unhappy receiving server may refuse your entire batch.
- Sending a real email to "test" an address. Use the probe only. A test message creates a bounce or an engagement event, and it can reach a spam trap.
- Treating a 250 as proof of a live inbox. On a catch-all domain, that response tells you nothing about the specific mailbox.
- Discarding 4xx responses as Invalid. Greylisted addresses are frequently real. Retry them later.
- Using a public DNS resolver. Every domain you check is visible to that resolver. Run a local caching resolver instead.
- Probing without throttling. Fast bursts produce false Invalid results and can get your IP listed.
- Ignoring the
Nonecount. Connection failures and refused senders look like Risky addresses. A spike in Risky results is often an infrastructure problem. - Assuming "no upload" means compliant. Your processing still needs a lawful basis and a deletion date.
- Trying to verify hashed data. SMTP and DNS checks need the plain address, so hashed emails cannot be verified this way.
- Leaving the output unprotected. The results file is personal data, so store it encrypted and delete it on schedule.
Bottom line: Most failed projects trace back to unthrottled probing, unhandled 4xx responses and unprotected output files.
How we compared (and limitations)
This article is based on public documentation: RFC 5321 and RFC 5322, the Python smtplib and dnspython documentation, the GDPR text, Unlimited Verifier's published plan details, and its open-source repository. Reacher and AfterShip's email-verifier are described from their public project pages.
We have not benchmarked local results against hosted results, and we have not measured how accurately any method predicts real deliverability. Unlimited Verifier states 99.5% accuracy for its deep verification. That is the company's own figure, not an independent benchmark. The worked example, including the 40,000-row list and the 3,200-domain count, is illustrative. Run any method on a sample from your own data, compare the results against addresses whose status you already know, and only then trust it with the full list.
Bottom line: Test any local or hosted method on a sample of your own data before you trust it with the full list.
SMTP reply codes mapped to buckets
| Reply | Meaning | Bucket |
|---|---|---|
| 250 | Recipient accepted | Valid (if domain is not catch-all) |
| 252 | Will accept but cannot confirm mailbox | Risky |
| 4xx | Temporary failure, retry later | Risky until retry resolves |
| 550 | No such user, permanent rejection | Invalid |
| No MX record | Domain does not accept mail | Invalid |
| Catch-all detected | Server accepts any address | Risky |
Frequently asked questions
Can I verify emails without sending them a message?
Yes. An SMTP probe opens a session, names a sender, and issues RCPT TO to ask whether the server accepts the recipient. You then send QUIT before any DATA command, so no message body is transmitted. Stopping at the RCPT TO reply avoids delivering mail while still getting the server's acceptance or rejection code.
Is SMTP email verification accurate?
It is useful but not definitive. Many servers accept every address on a domain (catch-all), return temporary codes, or refuse to confirm mailboxes at all. Treat a clear 550 rejection as a strong signal, a 250 as a good signal on non-catch-all domains, and anything ambiguous as Risky rather than Valid.
Why do cloud servers block port 25?
Major cloud providers commonly block outbound TCP port 25 by default to limit spam abuse. If your host blocks it, your SMTP probe will time out. Options include requesting an unblock from the provider, running the checks from a machine on a network that allows port 25, or using a hosted verification service for the mailbox step.
What is a catch-all domain and how do I handle it?
A catch-all domain accepts mail for any local part, so an SMTP probe returns success even for nonexistent mailboxes. Detect it by probing a random, improbable address on the same domain. If that also succeeds, mark the domain's results as Risky, since the mailbox-level answer carries no information.
How should I handle greylisting when probing?
Greylisting servers reply with a 4xx temporary code on first contact and expect a retry later. Record these addresses, wait several minutes or longer, and probe again. Keep the number of retries small and bounded so you do not hammer a server, and put persistent 4xx results in a Risky bucket.
Does a syntax check catch typos like missing domains?
It catches structural errors such as a missing at-sign, illegal characters, or an overlong local part. It cannot tell whether gmial.com is a real domain or whether a mailbox exists. Pair syntax checks with an MX lookup to catch unroutable domains, then use the SMTP probe for mailbox-level questions.
Do I need consent to verify email addresses?
Consent and lawful basis depend on your jurisdiction and purpose, so check with your legal or privacy team. Under GDPR, for example, processing personal data needs a lawful basis and a stated purpose. Verifying addresses you already hold for a legitimate purpose is generally easier to defend than harvesting new ones.
Are local tools better than hosted ones for privacy?
Local tools keep your file off third-party servers, which reduces data-sharing risk. However, the mailbox step still exposes queried addresses to recipient mail servers, and local setups need more maintenance. Choose based on your data sensitivity, staff capacity, and whether a vendor's data processing agreement would satisfy your compliance needs.
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.