Guide
Self-Hosted Email Verifier: How It Works, Open-Source Options, Setup and Real Costs
By Unlimited Verifier Team ·

Summary
A self-hosted email verifier is software you run on your own server that checks syntax, DNS/MX records and the SMTP mailbox without sending mail. Open-source engines like Reacher's check-if-email-exists make the code easy. The real work is infrastructure: outbound port 25, a clean static IP, matching reverse DNS and careful throttling.A self-hosted email verifier is software you run on your own server, usually an open-source engine such as Reacher's check-if-email-exists, that checks syntax, DNS/MX records and the SMTP mailbox directly. It only works reliably if your server has outbound port 25 and a clean IP.
That last condition is where most self-hosting projects stall. The code is the easy part: a working SMTP checker fits in a few hundred lines, and good open-source engines already exist. The hard part is infrastructure and reputation:
- getting port 25 unblocked,
- configuring reverse DNS and a believable HELO hostname,
- avoiding blocklists,
- explaining to stakeholders why a third of their results came back "unknown".
This guide covers the whole topic: how verifiers work under the hood, which open-source projects you can run, what the server needs, a hands-on Docker tutorial, real cost math, accuracy limits, legal questions, and a framework for deciding between self-hosting, SaaS, or a hybrid. Each section links to a deeper article.
Quick answer
- What it is: an engine you host that opens an SMTP conversation with each recipient's mail server and asks, without sending a message, whether the mailbox exists.
- Main open-source options: Reacher's check-if-email-exists (Rust, Docker-ready), AfterShip's email-verifier (a Go library), and Unlimited Verifier's open-source engine on GitHub. Trumail is no longer maintained.
- Hard requirements: outbound TCP port 25 (blocked by default on AWS, Google Cloud, Azure and many VPS hosts), a static IP with matching reverse DNS, a real HELO hostname, and per-provider throttling.
- Realistic accuracy: good on most corporate and Gmail domains. Weak on catch-all domains, greylisting servers and providers that accept everything at the RCPT stage. Expect a meaningful "unknown" bucket.
- When to skip it: if you mainly need to clean CSV lists, a hosted tool with flat pricing usually costs less than the engineering time. Unlimited Verifier includes unlimited standard verification on every plan, including Free.
What is a self-hosted email verifier?
A self-hosted email verifier is a program running on infrastructure you control. It decides whether an email address can receive mail by checking it in layers, ending with a live SMTP handshake against the recipient's mail server. Unlike a SaaS verifier, your list never leaves your servers, and you own the IPs doing the checking.
If you're new to the concept, start with our primer on what is email verification. Every verifier, hosted or self-hosted, runs roughly the same pipeline:
| Layer | What it checks | Cost to run | What it catches |
|---|---|---|---|
| 1. Syntax | RFC-valid format, no illegal characters | Free, instant | Typos like jane@@acme.com, jane@acme |
| 2. Domain / DNS | Domain exists and resolves | One DNS query | Dead or misspelled domains (gmial.com) |
| 3. MX records | Domain publishes mail servers | One DNS query | Domains that can't receive mail |
| 4. Lists | Disposable, role-based (info@, sales@), free-provider |
Local lookup | Throwaway signups, shared inboxes |
| 5. SMTP mailbox | Server's response to RCPT TO |
Network round-trips, needs port 25 | Non-existent mailboxes |
| 6. Catch-all probe | Does the server accept a random address? | One extra RCPT | Domains where "accepted" means nothing |
Layers 1–4 are trivial to self-host and need no special network access. Layer 5 is the whole game. It's the only layer that tells you whether jane.doe@acme.com exists rather than merely whether acme.com accepts mail. It's also the only layer that exposes your IP's reputation to every mail server on your list.
For a broader explanation of verification beyond self-hosting, see our complete guide to email verification.
Bottom line: self-hosting layers 1–4 is easy. Self-hosting layer 5 well is an infrastructure project, not a coding project.
How does a self-hosted verifier check whether a mailbox exists?
It speaks SMTP to the recipient's mail server, gets as far as the RCPT TO command, reads the reply code, and disconnects before sending any message. The protocol is defined in RFC 5321, and every verifier on the market, hosted or not, relies on this same mechanism.
A typical probe looks like this:
$ dig +short MX acme.com
10 mx1.acme.com.
$ (connect to mx1.acme.com:25)
S: 220 mx1.acme.com ESMTP ready
C: EHLO verify.yourdomain.com
S: 250-mx1.acme.com Hello
C: MAIL FROM:<probe@yourdomain.com>
S: 250 2.1.0 Sender OK
C: RCPT TO:<jane.doe@acme.com>
S: 250 2.1.5 Recipient OK <-- mailbox accepted
C: RCPT TO:<zq8x7k2m4p@acme.com>
S: 550 5.1.1 User unknown <-- random address rejected, so NOT catch-all
C: QUIT
Notice three things.
First, the verifier never sends DATA. No message is delivered.
Second, the second RCPT TO with a random string is the catch-all test. If the server had answered 250 to gibberish too, the first 250 would be meaningless.
Third, the older VRFY command exists in the RFC but is almost universally disabled. Mail admins turned it off years ago because it made address harvesting trivial. That's why modern verifiers use RCPT TO instead.
Interpreting the reply code is where naive DIY scripts go wrong:
| Reply | Typical meaning | Correct classification | Common DIY mistake |
|---|---|---|---|
250 |
Recipient accepted | Valid, only if the catch-all probe was rejected | Marking valid without a catch-all probe |
550 5.1.1 / 5.1.0 |
User unknown | Invalid | — |
550 5.7.1 / 554 with policy or blocklist text |
Your IP or sender was rejected | Unknown (retry from a clean IP) | Marking the address invalid and deleting a real customer |
450 / 451 (often 4.7.x) |
Greylisting or temporary failure | Retry later, typically after a few minutes | Giving up after one attempt |
452 |
Too many recipients / storage | Retry with fewer RCPTs per session | Treating as invalid |
421 |
Server busy or rate-limiting you | Back off; unknown for now | Hammering harder |
| Timeout / connection refused | Port 25 blocked (often on your side) or server down | Unknown | Marking the domain dead |
The most expensive mistake in self-hosted verification is treating policy rejections as invalid mailboxes. A 5xx error caused by your IP being on a blocklist looks superficially like a "no". Parse the enhanced status code (5.1.x vs 5.7.x) and the text, not just the first digit.
Bottom line: the SMTP check is simple to write and easy to misread. Your classifier logic matters as much as your network access.
Why do teams self-host email verification instead of using a SaaS tool?
There are four common reasons:
- Per-email SaaS pricing gets expensive at volume.
- Data-residency or privacy rules discourage sending lists to third parties.
- Teams want real-time checks embedded in their own product.
- Engineers simply prefer to own the stack.
Some of these reasons hold up better than others.
Cost at scale
Credit-based verifiers charge per address. If you verify millions of signups a month, that bill is real. But self-hosting moves cost from invoices into servers, IPs, proxies and engineering hours, and it rarely disappears.
Flat-priced tools change the math entirely. Unlimited Verifier, for instance, doesn't charge per email for standard verification on any plan. We break the numbers down in the cost comparison section below and in our dedicated self-hosted vs SaaS cost analysis.
Data residency and privacy
This is the strongest argument for self-hosting. Email addresses are personal data under GDPR and similar laws. Some organisations, such as healthcare, public sector, and EU firms with strict transfer policies, prefer that customer lists never leave their own environment or region.
A self-hosted engine in your own EU data centre keeps processing local. One caveat: the SMTP probe still contacts the recipient's mail server, wherever that is. Our guide to self-hosted email validation for data residency covers how to document this for a DPIA.
Real-time product checks
SaaS companies that validate addresses at signup want low latency and no third-party dependency in the critical path. A self-hosted syntax + MX + disposable check adds negligible latency. The SMTP layer is slower, often several seconds, and less predictable, so many teams run it asynchronously after signup.
See email verification for ecommerce and SaaS for signup-flow patterns.
Control and auditability
Open-source engines let you inspect exactly how "risky" is defined. With closed SaaS, you trust the vendor's labels. This is one reason Unlimited Verifier publishes its verification engine as open-source code on GitHub. You can read the logic behind the results, then decide whether to run it yourself or let the hosted service carry the infrastructure burden.
Bottom line: self-host for data residency, deep product integration or auditability. Don't self-host purely to save money until you've priced the hidden costs.
Which open-source email verifiers can you self-host?
The most established self-hostable options are Reacher's check-if-email-exists, AfterShip's email-verifier Go library, and Unlimited Verifier's free-email-verifier engine. Trumail, once popular, is no longer maintained. Here's how they differ, based on their public documentation and repositories:
| Project | Language / form | How you run it | Notable differentiators | Watch-outs |
|---|---|---|---|---|
| Reacher check-if-email-exists | Rust; CLI, library, HTTP backend | Docker image or binary | Returns an is_reachable verdict of safe / risky / invalid / unknown; documents SOCKS5 proxy support |
States it's dual-licensed (AGPL-3.0 + commercial). AGPL obligations matter if you modify it and offer it as a network service |
| AfterShip email-verifier | Go library | Embed in your own Go service | Syntax, MX, disposable, role-account and free-provider checks plus catch-all detection in one package | It's a library, not a service, so you build the API, queueing and storage yourself. SMTP checking must be explicitly enabled |
| Unlimited Verifier free-email-verifier | Open-source engine | Self-host from GitHub, or use the hosted product | Same vendor runs a hosted service that sorts results into Valid / Risky / Invalid, so you can compare self-hosted vs hosted output | Self-hosting it still requires your own port 25 access, IPs and reputation management |
| Trumail | Go | Historical only | Was a popular free API and self-hostable binary | No longer maintained, so not recommended for new deployments |
DIY script (e.g. Python dnspython + smtplib) |
Any | Your code | Total control | You own every edge case: greylisting, catch-all, code parsing, throttling |
Where to find the source code
All of the engines above publish code on GitHub, but quality varies widely. Some repos are weekend experiments that mark every 250 as valid. When evaluating one, look for:
- catch-all probing,
- enhanced-status-code parsing,
- retry logic for 4xx replies,
- proxy support.
Our roundup of free email verifier source code on GitHub reviews the active projects against those criteria.
Reacher in depth
Reacher is the most widely referenced self-hostable verifier. It offers a hosted SaaS and the open-source engine behind it. Its four-state output is a sensible design because it refuses to force uncertain results into "valid" or "invalid". Read our full Reacher email verifier review for setup experience from public docs, output fields and licensing.
If you're weighing Reacher against commercial services, our Reacher vs paid verification services comparison covers where each wins.
If you were using Trumail
Trumail-based scripts still circulate in old tutorials. If you inherited one, migrate. Our guide to Trumail alternatives maps its API fields to modern equivalents.
Supporting data: disposable lists and catch-all detection
No engine is better than its reference data. The community-maintained disposable-email-domains repository is the best-known blocklist of throwaway domains. Many verifiers, open-source and commercial, ingest lists like it.
New disposable domains appear constantly, so pull updates on a schedule rather than vendoring a one-off copy. Compare sources in our guide to open-source disposable email domain lists on GitHub.
Catch-all detection is a related gap. Most open-source tools stop at "this domain accepts everything", which tells you nothing about the individual address. Our review of open-source catch-all detection tools explains what each project actually does.
Web interface vs API/CLI
Most open-source verifiers are API- or CLI-first. If your marketing team needs to drag in a spreadsheet and download results, you'll be building or bolting on a front end. That means file parsing, column detection, job queues and result storage. See open-source email verifier with a web interface for options.
The alternative is a hosted tool where you can upload and verify a list as CSV or Excel (up to 10MB, with automatic email-column detection) and export CSV, Excel or JSON.
Verifying from the command line
For quick one-off checks or debugging, you don't need an engine at all. dig for MX and nc or telnet for an SMTP conversation will show you exactly what a server says. This is also the fastest way to tell whether your own port 25 is blocked. See how to verify emails from the command line.
Weighing the trade-offs
Open source buys you transparency, no per-email fees and data control. It costs you infrastructure, maintenance and the reputation risk of your own IPs. Our balanced breakdown of the pros and cons of open-source email verifiers goes deeper.
Bottom line: Reacher is the most complete turnkey service, AfterShip suits Go teams embedding verification in their own code, and Unlimited Verifier's engine lets you audit the logic behind a hosted product you can also use directly.
What infrastructure does a self-hosted email verifier need?
You need four things:
- A server with outbound TCP port 25 open.
- A static IPv4 address with a reverse-DNS (PTR) record you control.
- A real HELO hostname and MAIL FROM domain.
- Enough IP diversity, through multiple IPs or proxies, to stay under each provider's rate limits.
CPU and RAM barely matter; verification is network-bound.
Server requirements
A small VPS (1–2 vCPU, 2GB RAM) comfortably runs a containerised engine for modest volumes. What actually limits throughput is how many concurrent SMTP sessions each receiving provider tolerates from your IP.
Two practitioner tips:
- Run a local caching DNS resolver such as Unbound. You'll make millions of MX lookups, and public resolvers may rate-limit you. Some blocklist operators also refuse queries routed through big public resolvers.
- Use a dedicated IP that has never sent bulk mail.
Full specifications are in our email verification server requirements guide.
Why port 25 is blocked
Cloud providers block outbound port 25 because compromised VMs are a major spam source. Blocking it by default is the cheapest abuse control available.
- Google Cloud blocks outbound port 25.
- AWS restricts it on EC2 until you request removal.
- Azure blocks it for most subscription types.
Many VPS hosts block it on new accounts and lift the block on request once the account has history.
If your verifier returns timeouts for every domain, this is almost certainly why. Read why port 25 is blocked for email verification.
Which providers allow outbound port 25
Policies change, so verify current terms before you deploy. Broadly:
- Hyperscalers are the hardest place to run SMTP verification.
- Some VPS and dedicated-server providers unblock after a support ticket that explains your use case.
- Bare-metal providers tend to be more permissive.
Be honest in that ticket. Several hosts' acceptable-use policies prohibit activity that resembles address harvesting. Our provider-by-provider rundown of cloud providers that allow outbound port 25 is updated as policies shift.
Reverse DNS (PTR) setup
Receiving servers commonly check that your connecting IP has a PTR record, and that the PTR hostname resolves back to the same IP. This is called forward-confirmed reverse DNS (FCrDNS). A generic hostname like ip-203-0-113-7.provider.net reads as "residential or compromised box" to many filters.
Set PTR to something like verify.yourdomain.com, and make that name's A record point back to the IP. Step-by-step instructions for common hosts are in how to set up reverse DNS for a verification server.
HELO hostname
RFC 5321 expects the client to identify itself with its fully qualified domain name in EHLO/HELO. Use the same hostname as your PTR record. Never use localhost, a bare IP, or someone else's domain.
Pair it with a MAIL FROM address on a domain you own. That domain should publish SPF and an MX record, because some servers check that the sender domain could plausibly receive bounces.
Crucially, use a separate domain from your marketing sending domain, so any verification-related reputation hit can't touch your newsletters. Details in what HELO hostname to use for email verification.
Proxies
At low volume, one clean IP is enough. At scale, every major mailbox provider throttles per connecting IP, and a single IP probing 100,000 Gmail addresses will hit 421 responses and eventually blocks.
Teams either add their own IPs or route SMTP through proxies. Two cautions about proxies:
- Most standard residential and datacenter proxies don't permit port 25.
- Shared proxy IPs can arrive pre-blocklisted.
Read do you need proxies for SMTP email verification before buying anything.
Avoiding IP blacklisting
Blocklist operators such as Spamhaus list IPs that behave like spam sources. A server that opens thousands of SMTP sessions and never delivers mail can look like a directory harvest attack.
The defences are:
- conservative per-provider concurrency,
- honest PTR/HELO,
- dropping known spam-trap and invalid domains early,
- never re-checking the same address repeatedly.
The industry's best-practice body, M3AAWG, publishes guidance on abusive sending patterns that's worth reading from the receiver's perspective. Our tactical guide: how to avoid IP blacklisting when verifying emails yourself. You can also check your server IP's domain reputation with Unlimited Verifier's free domain blacklist checker.
Bottom line: budget more time for port 25, PTR, HELO and reputation than for installing the software.
How do you run check-if-email-exists with Docker? (Hands-on tutorial)
The fastest route to a working self-hosted verifier is Reacher's backend container: pull the image, run it on a host with port 25 open, and POST an email to its HTTP endpoint.
The steps below follow the project's public README at the time of writing. Check the repository for current flags before production use.
- Confirm port 25 first. On the server, run
nc -vz gmail-smtp-in.l.google.com 25(ortelnetto the same host and port).- A
220banner or "succeeded" means you're good. - A timeout means your provider blocks port 25. Stop here and fix that, because nothing else will work.
- A
- Set up DNS. Create an A record
verify.yourdomain.compointing to the server IP. Then set the IP's PTR record toverify.yourdomain.comin your host's control panel. - Install Docker (
curl -fsSL https://get.docker.com | shon most Linux distributions, or your distro's package). - Run the backend:
docker run -d -p 8080:8080 --name reacher reacherhq/backend:latest - Test a single address:
curl -X POST -H 'Content-Type: application/json' -d '{"to_email":"someone@example.com"}' http://localhost:8080/v0/check_email - Set your identity. Pass a
from_emailandhello_namematching your domain in the request, or in the configuration options the docs describe. Leaving library defaults in place is a common reason for rejections. - Read the verdict. Check
is_reachable(safe,risky,invalid,unknown). Then look at the nestedsmtpfields to see whether the domain is catch-all and whether the mailbox was deliverable. - Lock it down. Don't expose port 8080 to the internet. Put it behind a reverse proxy with authentication, or bind it to
127.0.0.1. An open verifier is free reconnaissance for spammers and will burn your IP fast. - Run a calibration batch of 50–100 addresses whose status you already know: colleagues, known-dead former employees, a catch-all domain you control. Compare results before trusting it with a real list.
Troubleshooting, environment variables and a Docker Compose setup with a queue are in how to run check-if-email-exists with Docker.
Bottom line: you can have a verifier answering requests in about 15 minutes. Whether it gives correct answers depends on steps 1, 2, 6 and 9.
How do you self-host an email verification API, build one from scratch, or scale it to millions?
Running a single container gets you single checks. A production verification service also needs:
- a job queue for bulk lists,
- per-provider throttling,
- retry scheduling for greylisted addresses,
- a results cache,
- authentication.
Each layer is straightforward. Together they are a real system.
Self-hosting an API
The minimal architecture has four parts:
- An authenticated HTTP API that accepts single emails or batches.
- A queue (Redis, RabbitMQ or Postgres-backed).
- Worker processes running the engine.
- A results table keyed by normalised address with a timestamp.
Cache results for a sensible window. Many teams use 30–90 days, because mailboxes rarely disappear overnight but do decay over months. See how to self-host an email verification API.
For general integration patterns, including signup forms, CRM sync and scheduled re-verification, see our overview of email verification API and automation.
If you'd rather not run the workers yourself, Unlimited Verifier's hosted email verification API offers single-email checks and bulk batches of up to 10,000 addresses per request on the Pro plan.
Building from scratch
Writing your own engine teaches you a lot and gives you full control. The components are:
- an RFC-aware syntax parser (simpler than full RFC 5322, stricter than a naive regex),
- an MX resolver with A-record fallback,
- an SMTP client with timeouts,
- a catch-all prober,
- a reply-code classifier,
- disposable/role lookups.
Budget most of your time for the classifier and the retry logic, not the networking. Our walkthrough of how to build an email verification service from scratch covers each component with pseudocode.
Scaling to millions: the math nobody shows you
Throughput is limited by provider concurrency, not server power. A key insight is to throttle by MX host, not by domain. Thousands of "different" company domains on Google Workspace all resolve to Google's MX servers, so your concurrency budget for Google is shared across all of them.
Illustrative example (assumptions are labelled; plug in your own):
- List: 1,000,000 addresses.
- Assume 40% route to Google MX, 20% to Microsoft, and 40% spread across thousands of other servers.
- Assume an average SMTP check takes 3 seconds.
- Per-IP concurrency caps you've found safe: Google 5, Microsoft 5, everything else 40 in aggregate.
Here's how long each segment takes:
- Google segment: 400,000 × 3s ÷ 5 = 240,000s ≈ 66.7 hours
- Microsoft segment: 200,000 × 3s ÷ 5 = 120,000s ≈ 33.3 hours
- Long tail: 400,000 × 3s ÷ 40 = 30,000s ≈ 8.3 hours
Segments run in parallel, so wall-clock time is set by the slowest: about 67 hours from one IP. Cutting that to one day means roughly tripling your Google-safe capacity, which means about three clean IPs. That's why scaling a verifier is really a question of IP count and reputation. More detail in how to scale SMTP email verification to millions.
Bottom line: design around per-provider throttles and an IP budget from day one. Adding CPU won't make a slow verifier faster.
Is DIY email verification accurate?
It can be accurate for the domains that give honest SMTP answers, which includes most corporate mail servers and Gmail. Overall accuracy depends heavily on your list's mix of catch-all domains, greylisting servers and providers that accept every recipient at the RCPT stage. A self-hosted verifier will typically produce a larger "unknown" bucket than a mature commercial service, because commercial services spread checks across established IP pools and retry over time.
Why self-hosted verification returns "unknown"
These are the usual culprits, roughly in order of frequency:
- Catch-all domains: the server accepts any address, so a
250proves nothing. - Greylisting: the first attempt gets
451; you must retry after a delay. - Your IP's reputation: policy rejections (
5.7.x) or421throttling. - Providers that don't reject at RCPT: some large consumer providers (Yahoo is the commonly cited example) don't reliably refuse unknown mailboxes during the SMTP conversation.
- Timeouts: slow servers, or a firewall that silently drops connections.
Each has a different fix. Diagnosis steps are in why self-hosted email verification returns unknown.
Catch-all domains
Catch-all is the hardest category, and it matters most for B2B lists. Many companies configure their mail servers to accept everything. Treat catch-all addresses as Risky, not Valid. Send to them cautiously, in smaller segments, after your engaged contacts.
Hosted services have more signal to work with here than a single self-hosted IP. Unlimited Verifier offers dedicated catch-all email verification for exactly this segment.
How to measure your own accuracy
Don't trust any accuracy number you haven't checked yourself, including vendors'. Unlimited Verifier states 99.5% accuracy for its deep verification. Treat every vendor figure, ours included, as a claim to validate against your data.
The practical test is simple:
- Verify a list.
- Send a modest campaign to the "Valid" bucket.
- Measure hard bounces.
If your verified-valid segment still hard-bounces above roughly 1%, something is misclassified. The full methodology is in is DIY email verification accurate?.
Bottom line: self-hosted verifiers are reliable on cooperative servers and blind on uncooperative ones. Plan for a real unknown/risky bucket rather than pretending it away.
Is self-hosting cheaper than a SaaS verifier?
Only at high, steady volume, and only if you price engineering time honestly. Infrastructure is cheap. The ongoing costs are IP diversity, reputation monitoring and the hours spent debugging why Microsoft started throttling you on Tuesday.
Illustrative monthly cost model (replace with your actual quotes and salary rates):
| Cost item | Self-hosted (illustrative) | Credit-based SaaS | Unlimited Verifier Pro |
|---|---|---|---|
| Server(s) with port 25 | $20–$60 | $0 | $0 |
| Extra clean IPs / proxies | $0–$300+ depending on volume | $0 | $0 |
| Engineering & monitoring (e.g. 4–8 hrs at $75/hr) | $300–$600 | Minimal | Minimal |
| Per-email fees | $0 | Scales with volume | $0 for standard verification |
| Subscription | $0 | Varies by vendor | $29/mo, or $25/mo billed annually |
| Indicative total | ~$320–$960+ | Scales linearly | $25–$29 |
The pattern is clear. Self-hosting has a high fixed cost and near-zero marginal cost. Credit-based SaaS has zero fixed cost and linear marginal cost. A flat-priced hosted tool sits below both for most list-cleaning workloads within its limits.
On Unlimited Verifier's Pro plan, those limits are:
- unlimited lists of up to 25,000 emails each,
- 25,000 deep verifications a month,
- API access for 100,000 emails a month.
Full methodology and break-even calculations are in our self-hosted vs SaaS email verification cost analysis. For vendor pricing models side by side, see email verification pricing and our in-depth verification pricing comparison.
The value of clean data shows up downstream, too. Lower bounces protect inbox placement, which protects revenue. See our analysis of email marketing ROI.
Bottom line: self-host when data control is the requirement. If cost is the requirement, compare against flat-priced hosted tools, not just credit-based ones.
Is it legal to run your own SMTP verification?
In most jurisdictions, checking whether a mailbox exists via standard SMTP commands isn't illegal in itself. But the data you process and the source of your list carry real legal obligations. This isn't legal advice; consult counsel for your situation.
The key considerations:
- Email addresses are personal data under GDPR and UK GDPR. You need a lawful basis to process them. Legitimate interest is commonly relied on for list hygiene, and you should document it. The UK regulator, the ICO, publishes guidance on legitimate interests and direct marketing.
- List provenance matters more than verification. Verifying a purchased or scraped list doesn't make mailing it lawful. Probing addresses you have no relationship with looks, technically and legally, like harvesting.
- Provider terms apply. Your hosting provider's acceptable-use policy, and the receiving servers' policies, may prohibit high-volume probing. Getting kicked off a host is a practical legal risk.
- Self-hosting can simplify compliance. No third-party processor means no processor agreement and no international transfer for the list itself.
The full picture is in is it legal to run your own SMTP verification?. Our guide to email verification compliance and hygiene and the deeper compliance and list-hygiene playbook cover consent, retention and suppression.
Bottom line: verification is a hygiene tool, not a licence. Lawful basis and list provenance decide your exposure.
Why does verification matter for deliverability in the first place?
Mailbox providers judge senders on bounce rates, complaint rates and engagement. Verification is the cheapest way to keep the bounce side of that equation healthy.
Since 2024, Google's email sender guidelines require bulk senders to keep spam complaint rates below 0.3%, with 0.1% as the target. Yahoo's sender best practices set similar expectations.
Neither publishes a hard bounce threshold, and practitioner guidance varies. Many ESPs flag accounts somewhere around a 2% hard-bounce rate. We recommend keeping hard bounces under 1% to leave headroom.
Lists decay continuously as people change jobs and abandon inboxes. Industry estimates commonly put annual decay in the range of a fifth to a third of a list. So a list verified once and never again drifts back into danger.
The bigger picture, including authentication, warm-up and engagement, is covered in our email deliverability guide.
Bottom line: verification protects sender reputation. That's worth doing whether you self-host or not.
A step-by-step framework: should you self-host, use SaaS, or go hybrid?
Work through these six decisions in order. Most teams have their answer by step 3.
- Define the job. Are you cleaning periodic CSV exports (batch), validating signups in real time, or both? Batch list cleaning rarely justifies self-hosting.
- Check hard constraints. Does policy forbid sending customer data to third parties? If yes, self-host, at least for the regulated data. If no, cost and effort decide.
- Estimate monthly volume and shape.
- Under roughly 100,000 checks a month in list form fits comfortably inside a flat-priced hosted plan.
- Millions of real-time checks a month is where self-hosting economics start to work, if you can staff it.
- Test your network. Can you get port 25, a static IP and PTR control from your current provider? If that takes weeks of tickets, factor it in.
- Pilot both. Run the same 1,000 known-outcome addresses through a self-hosted engine and a hosted tool. Compare Valid/Invalid agreement and the size of each unknown bucket.
- Decide and design. Common outcomes:
- SaaS only: most marketers and agencies.
- Self-hosted only: regulated data, large engineering teams.
- Hybrid: self-hosted syntax/MX/disposable checks at signup, plus hosted bulk verification for full SMTP and catch-all on lists.
To see how the hosted options stack up against each other, read our roundup of the best email verification tools and our hands-on comparison of top verification tools.
Bottom line: the hybrid model, with cheap local checks plus hosted SMTP verification, delivers most of self-hosting's control with little of its infrastructure burden.
Worked example: cleaning a 120,000-address list three ways
An agency inherits a client's 120,000-address CRM export, last verified two years ago. Here's how three approaches play out.
Option A: self-hosted Reacher on one VPS
- Setup: about one day to get port 25 unblocked (assuming the provider cooperates), plus PTR, HELO and the calibration batch.
- Throughput: using the earlier illustrative assumptions (3s per check, Google capped at 5 concurrent), suppose 45% of the list (54,000) routes to Google MX.
- Google segment: 54,000 × 3 ÷ 5 = 32,400s ≈ 9 hours.
- Other segments finish sooner, so the whole run takes about 9 hours plus greylisting retries.
- Risk: one IP probing 120,000 addresses may draw throttling partway through and inflate the unknown bucket.
- Cost: the server is cheap. The day of senior engineering time is not.
Option B: Unlimited Verifier Free plan
The Free plan allows 25 lists a month of up to 150 emails each:
- 25 × 150 = 3,750 emails a month.
- 120,000 ÷ 3,750 = 32 months.
That makes the Free plan a good fit for testing a sample, or for small lists, not this job. Results are also kept only 24 hours on Free, so export promptly.
Option C: Unlimited Verifier Pro ($29/month, or $25/month billed annually)
- Lists can be up to 25,000 emails each, so split the file into five uploads: 4 × 25,000 + 1 × 20,000 = 120,000.
- Standard verification is unlimited, so all five lists are covered with no per-email fees.
- Use the 25,000 monthly deep verifications on the segment where certainty matters most, such as Risky results or the client's highest-value accounts.
- Export each result file (CSV, Excel or JSON) and re-import the Valid segment into the client's ESP. There are no native ESP integrations, so the workflow is export → verify → re-import.
- Results stay available for 30 days on Pro, which is plenty of time for the client to review.
- If the agency wanted the API instead, the 100,000-emails-a-month allowance would cover most of the list. That's 10 batch requests of 10,000. The remaining 20,000 would go through upload.
What the agency does with results:
- Suppress Invalid.
- Hold Risky (catch-all, role-based, disposable) for a separate, cautious send.
- Mail Valid first and watch hard bounces.
If the Valid segment bounces above about 1%, revisit the classification before mailing anything else.
Before committing a whole list, you can sanity-check a handful of addresses with the free email checker.
Bottom line: for a one-off 120,000-address clean, a $25–$29 hosted plan completes the job in an afternoon of file handling. Self-hosting is a day of setup before the first result.
Common mistakes when running a self-hosted email verifier
These are the failure modes that show up again and again in self-hosted deployments, and how to avoid each:
- Marking every
250as valid. Without a catch-all probe, entire catch-all domains appear 100% valid. Always probe a random address on the same domain. - Treating
5.7.xpolicy rejections as invalid. That deletes real customers because your IP was blocked. Parse enhanced status codes and the response text. - Not retrying
4xxreplies. Greylisting is designed to defeat one-shot clients. Retry after a delay (minutes, not seconds), up to a few attempts. - Verifying from your marketing sending IP or domain. If verification traffic damages reputation, your campaigns pay for it. Isolate the IP and use a separate MAIL FROM domain.
- Throttling per domain instead of per MX provider. Five thousand Workspace domains are one Google from a rate-limiting perspective.
- Leaving the API open to the internet. An unauthenticated verifier gets found and abused, and your IP gets listed. Bind locally or require keys.
- Default HELO and generic PTR.
localhostor a provider-generated hostname invites rejections. Use a real FQDN with forward-confirmed reverse DNS. - Re-verifying the same addresses constantly. Repeated probes look like harvesting and waste capacity. Cache results with a TTL.
- Vendoring a stale disposable-domain list. Throwaway domains appear constantly. Automate updates.
- Deleting "unknown" addresses. Unknown means unverified, not bad. Suppress them from risky sends, re-check later, or route them to a hosted verifier with more retry capacity.
- Skipping a calibration set. Without known-good and known-bad addresses, you have no idea whether your verifier is accurate. Build one before verifying a real list.
- Ignoring licence terms. AGPL-licensed engines carry source-disclosure obligations if you modify them and offer them as a network service. Product teams should check this before embedding.
Bottom line: nearly every self-hosted accuracy problem traces back to misread reply codes, missing retries or IP reputation. Fix those three and most of the rest follows.
How we compared (and limitations)
This guide is based on public documentation, project READMEs and repositories, RFC 5321, and published sender guidelines from Google and Yahoo. We didn't benchmark or run the tools described. Feature descriptions reflect what each project documents at the time of writing, and open-source projects change quickly, so check current READMEs before deploying.
Throughput and cost figures in the scaling, cost and worked-example sections are illustrative models with stated assumptions, not measurements. Your SMTP latency, provider limits and staff costs will differ.
Vendor accuracy figures, including Unlimited Verifier's stated 99.5% for deep verification, are presented as the vendors' own claims. Validate any tool against a calibration set of addresses whose status you already know.
Cloud port-25 policies change. Confirm current terms with your provider before planning a deployment around them.
Bottom line: use the frameworks and arithmetic here as a template, then substitute your own measurements before you commit budget or infrastructure.
Self-host vs SaaS vs hybrid decision framework
| Situation | Best choice | Why |
|---|---|---|
| Occasional CSV list cleaning | SaaS (flat or unlimited plan) | Lower total cost than engineering time and IP upkeep |
| Strict data residency or no third-party processing | Self-host | List never leaves your servers |
| Real-time signup validation at high volume | Hybrid | Self-host syntax/MX/disposable checks, send SMTP checks to SaaS |
| No port 25 access (AWS/GCP/Azure) | SaaS or hybrid | Mailbox checks impossible without port 25 |
| Engineering team plus clean dedicated IPs | Self-host | Full control, low marginal cost per check |
Rule of thumb: self-host only if you can secure outbound port 25, a static IP with matching rDNS, and ongoing time to monitor blocklists.
Frequently asked questions
Can I run an email verifier on AWS or Google Cloud?
Usually not without extra steps. AWS, Google Cloud and Azure block or restrict outbound port 25 by default, and port 25 is required for SMTP mailbox checks. AWS lets you request removal of the restriction. Google Cloud generally does not allow outbound port 25. Many teams use a VPS provider that permits port 25, or route checks through a dedicated relay host with a clean IP.
Is self-hosted email verification free?
The software can be free, but running it is not. Open-source engines cost nothing to license. You still pay for a server with port 25 access, possibly extra IPs, monitoring, and engineering time to handle blocklists, throttling and maintenance. For occasional CSV cleaning, a flat-priced hosted verifier is often cheaper once labor is counted.
Does SMTP verification send an email to the address?
No. The verifier opens an SMTP session, sends HELO/EHLO, MAIL FROM and RCPT TO, reads the server's response code, and then disconnects with QUIT before the DATA command. No message body is ever transmitted, so the recipient receives nothing. Some servers still log these probes, which is why excessive volume can hurt your IP reputation.
Why do so many results come back as unknown?
Many mail servers refuse to give a definitive answer. Catch-all domains accept every address. Greylisting servers temporarily reject first attempts. Some large providers accept all recipients at the RCPT stage and bounce later. Rate limits and IP blocks also return ambiguous codes. A sizable unknown bucket is normal for any verifier, self-hosted or SaaS.
How do I verify Microsoft 365 or Yahoo addresses accurately?
These providers are among the hardest to check. Some return accepting responses for nonexistent mailboxes or throttle aggressively by IP. Open-source engines such as Reacher add provider-specific methods, including alternative lookups, to improve results. Expect lower confidence than with standard corporate servers and treat ambiguous results as risky rather than valid.
Will running a verifier get my IP blacklisted?
It can. Many RCPT probes to nonexistent mailboxes from one IP look like directory harvesting, and blocklists such as Spamhaus may list you. Reduce the risk with per-domain throttling, a proper reverse DNS record, a real HELO hostname, retries with backoff, and an IP that never sends your marketing or transactional email.
Is self-hosted email verification legal?
Generally yes. Checking whether a mailbox exists is widely practiced, but privacy laws still apply to the addresses you process. Under GDPR, email addresses are personal data, so you need a lawful basis and should minimize retention. Self-hosting can simplify compliance because data never leaves your infrastructure. Consult counsel for your jurisdiction.
What is the best open-source email verifier?
Reacher's check-if-email-exists is the most complete, Docker-ready option. It is written in Rust, exposes an HTTP API, and handles catch-all and provider quirks. AfterShip's email-verifier suits Go developers who want a library. Unlimited Verifier also publishes an open-source engine. Trumail is unmaintained. Pick based on language, API needs and licensing.
How many emails per hour can a self-hosted verifier check?
It depends more on recipient throttling than on your hardware. A single server can open many concurrent connections, but major providers rate-limit per IP. Sustainable throughput usually requires spreading checks across domains, using several IPs, and adding delays. Treat published speed claims cautiously and benchmark against your own domain mix.
Do I need reverse DNS for an email verifier?
Yes. Many receiving servers reject or distrust SMTP connections from IPs without a PTR record that matches the forward DNS of your HELO hostname. Set a static IP, create an A record such as verify.yourdomain.com, ask your host to set the matching PTR, and use that hostname in HELO. Without it, expect more blocks and unknowns.
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.