Article
Free Email Verifier Source Code on GitHub: What to Use and What It Really Costs
By Unlimited Verifier Team ·

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
- Match the repo to the job. Use a full SMTP engine for mailbox-level checks, a library if you need custom logic, and a disposable-domain list as a cheap pre-filter.
- Plan for Unknown results. Mail providers often defer or refuse probes from unfamiliar IPs, so build a retry queue before you trust the output.
- Count the full cost. In our illustrative model, a self-run engine for 50,000 addresses costs about nine times a Pro plan's annual price in year one, mostly in labour.
- Test before you trust. Score any free verifier against a labelled sample of 500–1,000 addresses whose status you already know.
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:
- Split the address and look up the domain's MX records to find the mail server with the lowest preference number.
- Open an SMTP connection to that server on port 25.
- Send
EHLO, thenMAIL FROMwith a sender address on a domain you control. - Send
RCPT TOwith the target address and read the reply. - Close the connection with
QUITand 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:
- 50,000 probes take 50,000 seconds, or about 13.9 hours.
- Each unresponsive server can add a timeout of up to 10 seconds, so real runs take longer.
- If 10% of results come back Unknown, you must retry 5,000 addresses on a later schedule.
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.
- Permissive licences such as MIT let you use, modify and redistribute the code, typically on condition that you keep the copyright and licence notices.
- Copyleft licences such as AGPL add an obligation for network use. If you modify the code and offer it to users over a network, you may have to publish your changes under the same licence.
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):
- Virtual server: $12 per month.
- Setup: 30 engineering hours at $50 per hour, or $1,500 once.
- Maintenance: 2 hours per month at $50, or $100 per month.
Self-run first-year cost:
- Server: 12 × $12 = $144
- Setup: $1,500
- Maintenance: 12 × $100 = $1,200
- Total: $2,844
Hosted first-year cost (Pro):
- Pro is $25 per month billed annually, so 12 × $25 = $300. Billed monthly at $29, the year costs $348.
- The 50,000 addresses fit in two lists of 25,000, which is the Pro per-list limit.
- Standard verification is unlimited on every plan, with no per-email fee. Deep verifications are capped at 25,000 a month on Pro, so reserve them for the addresses that need them.
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:
- 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.
- 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.
- Confirm outbound port 25 works, or request an exemption from your provider.
- Add retry logic for 4xx replies and a per-domain rate limit.
- Build the catch-all probe and the disposable and role-based filters.
- Test against a labelled sample (see below) before you run a full list.
- 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.
- Install Python 3.10 or later and create a project folder.
- Install dnspython by running
pip install dnspythonin a terminal. - Create a file called
verify.pyand 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)
- Run it with
python verify.pyagainst one address you own. You should see a reply code and a message. - Add error handling. Wrap the calls so that DNS errors, timeouts and
SMTPServerDisconnectedproduce an Unknown result rather than a crash. - Add the catch-all check. Call
is_catch_allonce per domain and cache the result for the run. - Classify the output using the reply table earlier in this article, and write results to a CSV with a status column.
- 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:
- Gather known-good addresses from recent replies, purchases or logins. This example uses 600.
- Gather known-bad addresses from hard bounces in past sends. This example uses 400.
- Run both sets through the tool you are evaluating.
- 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:
- Keep volume proportionate. Probe addresses you have a legitimate reason to check, such as your own list before a campaign.
- Honour blocks. If a server refuses your probes, stop and retry later. Switching IPs to get through damages your standing with that provider.
- Identify your sender. A PTR record and SPF on your sender domain make your probes look like a legitimate mail server.
- Respect data law. Verification processes personal data, and an email address is personal data. Email verification compliance and hygiene covers the obligations. For US commercial email, the FTC's CAN-SPAM compliance guide sets the baseline.
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?
- Treating Unknown as Invalid. Greylisting and rate limits produce Unknown results, and deleting them removes real customers.
- Skipping the catch-all check. A 250 from a catch-all domain says nothing about the individual mailbox, so those addresses belong in Risky.
- Running from a home IP without a PTR record. Providers defer or block probes from addresses that do not identify a mail sender.
- Looping through a full list in one burst. One block can stall the whole run, and recovery can take days.
- Using a stale disposable list. New disposable services appear regularly, so a list from several years ago misses many of them.
- Ignoring the licence. An AGPL engine wrapped in a customer-facing service can oblige you to publish your changes.
- Judging accuracy by a headline figure. Run the labelled test on your own data first.
- Deleting bounced addresses and stopping there. Verification finds the dead addresses you never mailed, which bounce-based cleaning cannot see.
- Confusing verification with consent. A valid mailbox can still be one you have no right to email.
- Losing your suppression history when you move data between tools. Keep your own copy of past bounces, unsubscribes and complaints.
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 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.