Article

Free Email Verifier Source Code on GitHub: What to Use and What It Really Costs

By Unlimited Verifier Team ·

Diagram of a free GitHub email verifier pipeline showing syntax, MX and SMTP mailbox checks with an unknown-result retry queue.

Summary

Free email verifier source code on GitHub ranges from full SMTP engines like Reacher's check-if-email-exists to libraries and disposable-domain lists. The code handles syntax, MX and mailbox checks, but reliable results also depend on clean sending IPs, outbound port 25, retry logic and maintained domain lists.

Free email verifier source code on GitHub comes as full SMTP engines, programming libraries or disposable-domain lists. Full engines such as Reacher's check-if-email-exists cover syntax, MX records and mailbox existence at no licence cost, but the code is only half of a working verifier. The other half is infrastructure: a clean sending IP, outbound port 25, retry logic and maintained domain lists.

This guide explains what each type of repository does, how the mailbox check works, what self-hosting really costs, and when a hosted tool is the faster route. It sits under our self-hosted email verifier guide.

Quick answer

What is free email verifier source code on GitHub?

It is publicly readable code that connects to a domain's mail servers and checks whether an address can receive mail. Most full projects combine four stages: a syntax check, a DNS lookup for MX records, an SMTP conversation that asks the receiving server whether a recipient exists, and a comparison against disposable and role-based address lists.

The useful distinction is depth. A list-only project can flag 10minutemail.com as disposable, but it cannot tell you that jane@yourcustomer.com was deleted last year. Only a project that performs the SMTP step can answer a mailbox-level question, and even then the answer depends on how the receiving server responds to your probe.

Bottom line: Source code gives you the verification logic for free. It does not give you the IP reputation, data upkeep or accuracy that a hosted service maintains.

Which GitHub projects should you read first?

Decide what you need before you compare repositories with best email verification tools in general. If you need mailbox-level answers, start with a full engine so you can see every check in one place. Add a list project as a filter. The table compares the options teams most often evaluate, based on each project's public documentation.

Option Form What it checks What it leaves to you Pick it when
check-if-email-exists (Reacher) (repo) Rust engine, usable as a library or HTTP service Syntax, MX and SMTP mailbox probe; results use verdicts such as safe, risky, invalid and unknown Your IPs, rate limits, retry logic and port 25 access You want a complete engine and can operate it
Truemail (repo) Ruby gem Layered validation (regex, MX, SMTP) with configurable blacklists and whitelists Domain-list upkeep and the same IP and port 25 constraints Your signup forms run on Ruby
dnspython + smtplib Python libraries Only the primitives: DNS and SMTP calls Catch-all detection, classification, retries and timeouts You want full control or are learning the mechanics
Disposable-domain lists (repo) Data files Disposable domains only Every mailbox-level question You need a cheap pre-filter at signup
Unlimited Verifier's open-source engine (repo) Published by Unlimited Verifier; you run it Whatever its README documents Operating the infrastructure yourself You want to audit the logic or run it in your own environment

A practitioner's tip: read the catch-all and retry code before the SMTP handshake. Hobby projects usually get the handshake right and skip the parts that decide accuracy, which are how the project handles a 250 from a catch-all domain and a 450 from a greylisting server.

A hosted product bundles things a repository typically does not: a browser upload, list management, Valid, Risky and Invalid sorting, CSV, Excel and JSON export, and API keys. Whether that matters depends on whether an engineer or a marketer owns the list.

Bottom line: Read Reacher's engine to understand a complete pipeline, use disposable lists as a filter, and treat any repo as the start of an operations project rather than a finished product.

How does a GitHub email verifier check a mailbox?

It asks the recipient's mail server whether it would accept a message for that address, without sending one. The probe stops at the RCPT TO command, and the server's reply code tells the verifier what to do next. RFC 5321 defines the SMTP reply codes, and RFC 3463 defines the enhanced status codes, such as 5.1.1 (bad destination mailbox), that often accompany them.

The sequence is:

  1. Split the address and look up the domain's MX records to find the mail server with the lowest preference number.
  2. Open an SMTP connection to that server on port 25.
  3. Send EHLO, then MAIL FROM with a sender address on a domain you control.
  4. Send RCPT TO with the target address and read the reply.
  5. Close the connection with QUIT and record the result.

Classify the replies like this:

Reply Meaning Typical bucket
250 or 251 Server accepts the recipient Valid candidate, pending catch-all check
550, 551 or 553, often with 5.1.1 Recipient rejected Invalid
450, 451 or 421 Temporary failure, such as greylisting Unknown; retry later
Block or policy message mentioning reputation or rate limits Probe refused Unknown
No response or timeout Server unreachable Unknown; retry later

Catch-all domains accept every recipient, so a 250 proves nothing about one mailbox. To detect them, probe a random address on the same domain. If the random address is accepted, treat the whole domain as catch-all and move its addresses to Risky. Our guide to open-source catch-all detection tools compares how different projects handle this step.

Bottom line: The probe is simple. The hard part is interpreting the reply, especially for catch-all domains and temporary failures.

Why do self-run verifiers return so many unknowns?

Because mail providers decide how much to trust the machine asking. Many major cloud providers block outbound port 25 by default, so a verifier on a standard cloud instance may not reach recipient servers until you request an exemption. Home connections and new IPs with no PTR record also look suspicious to providers that receive many probes from unknown sources.

Providers defend themselves by deferring or refusing probes. A greylisting server replies 450 on the first attempt and expects a retry. A rate-limiting server may accept a few probes a minute and then return a policy message. In both cases the honest classification is Unknown, not Invalid.

Consider the workload of a single-threaded run at one probe per second. That rate is our assumption, not a benchmark:

A high Unknown rate is not a sign that the code is broken. It signals that your infrastructure is not yet trusted by the providers you probe. The guide to why self-hosted verification returns unknown covers the causes in depth, and the proxy question for SMTP checks explains when routing changes the picture.

Bottom line: Unknowns come from your IP and sending reputation rather than from the code, so plan a retry queue from day one.

Can you use free email verifier code in a commercial product?

Usually yes, but the licence decides it, and permissive and copyleft licences work differently. Read the LICENSE file in every repository before you build on it, and ask counsel to review anything you ship to customers.

That network clause matters for verifiers, because a common pattern is to wrap the engine in an HTTP service and sell access to it. The same code can be fine to run internally and restrictive once it powers a customer-facing product. This is a general observation, not legal advice.

Bottom line: The licence, not the price tag, determines what you can do with a free verifier, so check it before you write a line of integration code.

How much does running free verifier code really cost?

Free code has a licence cost of zero but a real operating cost. The model below uses assumptions you should replace with your own figures. It compares a self-run engine with a hosted plan for a 50,000-address list, and it is a useful way to frame email verification pricing across any option.

Self-run assumptions (illustrative):

Self-run first-year cost:

Hosted first-year cost (Pro):

Why the Free plan doesn't work for this list: The Free plan allows 25 lists a month of up to 150 emails each, which is 3,750 addresses a month at most. At 50,000 addresses you would need 50,000 ÷ 150 = 334 lists, or 334 ÷ 25 ≈ 13.4 months of Free usage. Free results are also kept for 24 hours, so export them the same day.

The self-run figure excludes IP costs, dedicated addresses and engineering time spent on retries and blocks. Those costs push it higher. For a deeper cost comparison, see self-hosted vs SaaS email verification cost.

Bottom line: The licence is free, but at this scale labour is the expensive line item, not the software.

Should you self-host or use a hosted verifier?

Self-host when data residency, custom logic or owned IP reputation justify running the infrastructure. Choose a hosted service when results are needed quickly and your team would rather spend its hours on campaigns than on port 25. Teams with prospect lists that go stale fast should also read email verification for sales prospecting, and the email verification for ecommerce and SaaS pattern shows how volume and churn shape the choice.

Situation Better path Reason
Under 1,000 addresses, occasional checks Free email checker for single addresses, or the Free plan Setup costs more time than the task
5,000–25,000 addresses per list, monthly Hosted Pro; upload and verify a list Each list fits the per-list limit, with no port 25 work
Lists above 25,000 addresses Split the file into parts on Pro, or use the API Keeps each upload inside per-list limits
Real-time checks at signup Email verification API on Pro, or a self-run engine The Free plan has no API access; Pro includes API access for 100,000 emails a month and batches of up to 10,000 per request. See real-time email validation
Marketing ops using an ESP or CRM Export a CSV, verify it, and re-import There are no native ESP, CRM or Zapier integrations, so the workflow is manual or API-driven
Strict data residency rules Self-run engine, with residency planning Data stays inside your environment
Engineering team with spare capacity Self-run engine Full control and no per-email fee once it runs

For a head-to-head between an engine and a paid service, read Reacher vs paid email verification services. For most marketing and agency teams, the hosted route is the better fit, because the list is the asset and the verifier is a means to clean it.

If you self-host, follow these steps:

  1. Choose one engine and one list project. Read the README and LICENSE, and see how to self-host an email verification API for the deployment pattern.
  2. Provision a server with a static IP and a PTR record that matches your sender domain. Check the email verification server requirements before you choose a size.
  3. Confirm outbound port 25 works, or request an exemption from your provider.
  4. Add retry logic for 4xx replies and a per-domain rate limit.
  5. Build the catch-all probe and the disposable and role-based filters.
  6. Test against a labelled sample (see below) before you run a full list.
  7. Schedule re-verification and monitor the Unknown rate weekly.

The pros and cons of open-source email verifiers and the wider best email verification tools roundup cover the trade-offs in more detail.

Bottom line: Self-host when you can operate the infrastructure. Otherwise a hosted service is usually cheaper and faster.

How do you run a free email verifier from GitHub, step by step?

This tutorial uses Python with two libraries, dnspython and the standard library's smtplib, so you can see every check. It is a learning tool, not a production verifier. It has no retries and no rate limiting.

  1. Install Python 3.10 or later and create a project folder.
  2. Install dnspython by running pip install dnspython in a terminal.
  3. Create a file called verify.py and paste the code below. Replace the sender domain with one you control.
import smtplib
import uuid
import dns.resolver

SENDER_DOMAIN = "yourdomain.com"
MAIL_FROM = "verify@yourdomain.com"

def mx_host(domain):
    records = dns.resolver.resolve(domain, "MX")
    best = min(records, key=lambda r: r.preference)
    return str(best.exchange).rstrip(".")

def probe(email):
    domain = email.rsplit("@", 1)[1]
    host = mx_host(domain)
    with smtplib.SMTP(host, 25, timeout=10) as smtp:
        smtp.ehlo(SENDER_DOMAIN)
        smtp.mail(MAIL_FROM)
        code, reply = smtp.rcpt(email)
    return code, reply.decode(errors="replace")

def is_catch_all(domain):
    code, _ = probe(f"{uuid.uuid4().hex}@{domain}")
    return code in (250, 251)

if __name__ == "__main__":
    address = "test@a-domain-you-control.com"  # replace with an address you own
    code, reply = probe(address)
    print(code, reply)
  1. Run it with python verify.py against one address you own. You should see a reply code and a message.
  2. Add error handling. Wrap the calls so that DNS errors, timeouts and SMTPServerDisconnected produce an Unknown result rather than a crash.
  3. Add the catch-all check. Call is_catch_all once per domain and cache the result for the run.
  4. Classify the output using the reply table earlier in this article, and write results to a CSV with a status column.
  5. Check a sample of 50–100 addresses by hand before you process a full list.

Do not run a full list in one loop. At one probe per second, 50,000 addresses take about 14 hours, and a single block can stop the whole run. Split the work into domain-grouped batches with pauses between them.

Bottom line: The script proves the mechanics in an afternoon. A production run needs the error handling, caching and pacing the script leaves out.

How do you measure whether a free verifier is accurate?

Test it against a labelled sample whose status you already know. Vendor accuracy claims are the vendor's own figures. Unlimited Verifier states 99.5% accuracy for deep verification, which is the company's stated figure, not an independent benchmark, so measure accuracy on your own data.

Build a test set like this:

  1. Gather known-good addresses from recent replies, purchases or logins. This example uses 600.
  2. Gather known-bad addresses from hard bounces in past sends. This example uses 400.
  3. Run both sets through the tool you are evaluating.
  4. Calculate two rates:
    • Sensitivity (catch rate for good addresses): if 580 of 600 good addresses are marked Valid, sensitivity is 580 ÷ 600 = 96.7%.
    • Specificity (catch rate for bad addresses): if 360 of 400 bad addresses are marked Invalid, specificity is 360 ÷ 400 = 90%.

The two numbers answer different questions. Low sensitivity means you are discarding real customers. Low specificity means bad addresses are reaching your campaigns. A tool that scores well on one and poorly on the other needs careful handling. To spot-check a single disputed address, the free email checker works on one address at a time.

Be aware of the test's limits. Some providers bounce months after a send, so a "known bad" label can lag. Engagement labels can also be wrong. Treat the results as a comparison between tools, not an absolute score.

Bottom line: Measure sensitivity and specificity on your own labelled data, because the accuracy figure that matters is the one you produce.

Is probing mailboxes legal and safe?

Probing is widely used in verification, but it is not automatically welcome. A probe does not deliver a message, so it does not send spam. Problems arise from volume, speed and what you do with the results.

Keep your probing responsible:

Verification also does not prove consent. A deliverable address is not an opted-in address.

Bulk senders face spam-rate rules too. Google's email sender guidelines advise keeping user-reported spam rates below 0.10% and avoiding 0.30% or higher. Verification helps here because it removes many of the addresses that generate complaints.

Bottom line: A probe is not a message, but the way you run probes determines whether providers treat you as a good citizen.

What mistakes should you avoid with free verifier code?

For the wider maintenance schedule, see email list maintenance best practices.

Bottom line: Most failures with free verifier code come from infrastructure and interpretation mistakes, not from the code itself.

How we compared (and limitations)

This article is based on public documentation: RFC 5321 and RFC 3463, Google's email sender guidelines, the FTC's CAN-SPAM guide, the README and LICENSE files of the repositories linked above, and Unlimited Verifier's published plan facts. We have not benchmarked these projects against each other or against a hosted service. Project features, languages and licences change over time, so check each repository before you rely on it.

The worked examples are illustrative. The engineering rates, server cost, probe speed of one per second and the 10% Unknown rate are assumptions to replace with your own figures. The sensitivity and specificity numbers are hypothetical and show how to calculate the metrics, not how any tool performs. Plan limits are quoted from Unlimited Verifier's published plan facts, and the 99.5% accuracy figure is the company's own claim.

Illustrative 50,000-address cost model

Cost item Self-run engine (year 1) Hosted Pro plan (year 1)
Software licence $0 Annual plan fee
Servers and clean IP setup Ongoing hosting cost Included
Engineering setup and upkeep Largest share, mostly labour Minimal
Retry and Unknown handling Built by your team Included
Total Roughly nine times the Pro annual price (illustrative) Baseline

Illustrative only: actual costs depend on salaries, hosting and volume.

Frequently asked questions

Is there a free email verifier on GitHub?

Yes. Several open-source projects, including Reacher's check-if-email-exists and Truemail, publish code that performs syntax, MX and SMTP checks under permissive licences. The code is free, but you must host it, supply clean IPs and open outbound port 25 yourself.

Does check-if-email-exists work out of the box?

It runs as a Rust library or HTTP service, so you can deploy it without a licence fee. Accurate results still depend on your sending IP reputation, port 25 access and how you handle Unknown responses from mail servers.

Why does SMTP verification return Unknown?

Many mail providers defer or refuse probes from unfamiliar or rate-limited IPs. Greylisting and catch-all domains also produce ambiguous answers. A retry queue and clear handling for Unknown results are needed to keep the output usable.

Can I verify emails without port 25?

Not with a direct SMTP mailbox probe, because most cloud hosts block outbound port 25. You can still run syntax, MX and disposable-domain checks without it, or route probes through a relay you control where that is permitted.

Is a disposable email list enough to verify addresses?

No. A disposable-domain list flags temporary providers such as 10minutemail.com but cannot tell whether a specific mailbox still exists. It works best as a cheap pre-filter before a mailbox-level check.

What license do these GitHub email verifier projects use?

Licences vary by project, so check each repository's LICENSE file before commercial use. Permissive licences such as MIT or Apache 2.0 generally allow internal and commercial use, but copyleft licences may impose conditions.

How accurate is a self-hosted email verifier?

Accuracy varies with your IP reputation, provider behaviour and list maintenance. The reliable way to judge it is to score the tool against a labelled sample of 500 to 1,000 addresses whose status you already know.

When should I pay for a hosted email verification service instead?

Choose a hosted service when you need fast deployment, maintained IP reputation, ongoing domain-list updates or support. Self-hosting suits teams with engineering capacity and modest volumes who can absorb the operational work.

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.