Article

How to Verify Emails Without Uploading Them to the Cloud

By Unlimited Verifier Team ·

Diagram showing a local email verification checker keeping a CSV file on-site while sending DNS and SMTP queries to outside servers.

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

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:

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.

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."

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. Normalise and deduplicate. Trim whitespace and lowercase the domain. Leave the local part alone, because RFC 5321 allows it to be case-sensitive.
  6. 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.
  7. 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.
  8. Probe with throttling. Keep the rate low, retry 4xx responses after a delay, and pause any domain that starts returning blocks.
  9. 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.
  10. 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

  1. Run the port 25 check from step 2 above.
  2. Install the DNS library with pip install dnspython. The Python smtplib documentation covers the SMTP side. The dnspython project site covers the DNS side.
  3. Replace yourdomain.example with a domain you control and confirm its reverse DNS matches HELO.
  4. Save your list with a column named email, since the script reads that column.
  5. 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

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.

  1. Run the local filter. Using syntax_ok and mx_host from the script above, keep rows where the syntax passes and the domain returns an MX host. Write the survivors to survivors.csv with an email column. Keep master.csv with every row.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. Merge the statuses locally. Join the status column onto master.csv by address. Send to Valid, hold Risky, and suppress Invalid.
  7. 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

  1. Syntax: 40,000 × 4% = 1,600 invalid. That leaves 38,400 rows.
  2. MX lookups: One per domain, cached: 3,200 queries.
  3. Catch-all probes: One random address per domain: 3,200 probes.
  4. Mailbox probes: One per surviving row: 38,400 probes.
  5. Total SMTP probes: 3,200 + 38,400 = 41,600.
  6. 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

  1. Upload: 38,400 survivors split into 25,000 + 13,400, two lists, both within the Pro cap.
  2. 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.
  3. 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.

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:

Bottom line: Local processing reduces risk, but it does not replace a documented lawful basis and retention policy.

What mistakes break local email verification?

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 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.