Article
Is It Legal to Run Your Own SMTP Verification?
By Unlimited Verifier Team ·

Summary
Running your own SMTP verification is generally legal because the probe stops at RCPT TO and sends no message body. The real legal exposure lies in how you store and use the addresses you check under regimes such as the GDPR, while the bigger practical risks are blocked port 25 and IP blocklisting.Yes, running your own SMTP verification is generally legal: the probe sends no message, and we are not aware of any major law, including the US CAN-SPAM Act, that bans it. The legal exposure comes from how you process the addresses you check, and the operational exposure comes from the blocklisting that careless probing causes.
This guide covers both sides. It walks through the law regime by regime, explains what the probe does on the wire, lists the operational risks, and ends with a cost model so you can decide whether to build or buy. For the wider picture, start with our pillar on self-hosted email verifiers.
Quick answer
- Legal in principle. The probe uses the
RCPT TOcommand defined in RFC 5321 and transmits no message body. - The legal risk is the data. Email addresses generally count as personal data under the GDPR, so you need a lawful basis, data minimisation and a retention limit.
- The bigger risk is operational. Blocked port 25, IP blocklisting and provider throttling cause more failures than any statute.
- Catch-all results are inconclusive. A catch-all domain accepts any address, so classify those as Risky, not Valid.
- Build vs. buy. In our illustrative model, self-hosting 500,000 addresses a month costs about $1.49 per 1,000 once engineering time is counted. A Pro plan covers the same volume for $29 a month within its stated limits.
What does SMTP email verification actually do?
SMTP verification asks a recipient's mail server whether it would accept mail for an address, then disconnects before sending anything. The exchange happens over port 25 and stops before the message body.
The client announces itself with EHLO, names a sender with MAIL FROM, and asks about the target with RCPT TO. The reply to RCPT TO is the signal. A 250 means the server will accept mail for that address. A 550 with enhanced code 5.1.1 means the user is unknown, as defined in RFC 3463. A 4xx means try again later. The client then sends QUIT without ever issuing DATA.
S: 220 mx.example.com ESMTP
C: EHLO verify.yourdomain.com
S: 250 mx.example.com Hello
C: MAIL FROM:<probe@yourdomain.com>
S: 250 2.1.0 Ok
C: RCPT TO:<jane.doe@example.com>
S: 550 5.1.1 <jane.doe@example.com>: Recipient address rejected: User unknown
C: QUIT
S: 221 2.0.0 Bye
Two things follow. The probe delivers no content to the recipient. And the answer reflects the receiving server's policy, not a census of mailboxes. A server can return 250 to everything (a catch-all), defer everything with 4xx (greylisting), or refuse probes it recognises as harvesting. SMTP also tells you nothing about whether an address is disposable or role-based, so you need a separate domain list for those checks.
Bottom line: The probe is a protocol handshake that transmits no content. Its answer is only as reliable as the server behind it.
Is SMTP verification legal under CAN-SPAM, GDPR and PECR?
No single law bans the probe. Each regime regulates something different: CAN-SPAM regulates commercial messages, the GDPR regulates personal data, and PECR regulates electronic marketing. Your exposure comes from how you handle the data and what you send afterwards.
| Regime | What it governs | Does a probe itself breach it? | What you still must do |
|---|---|---|---|
| US CAN-SPAM Act | Commercial email content, sender identity, opt-outs | No. A probe sends no commercial message | Honour opt-outs on the mail you send. See the FTC's CAN-SPAM guide |
| EU GDPR | Processing of personal data, including email addresses | Not by itself, but the processing needs a lawful basis | Lawful basis (Art. 6), minimisation (Art. 5(1)(c)), storage limits (Art. 5(1)(e)), and a processor contract if a vendor handles the data (Art. 28). Background at gdpr-info.eu |
| UK PECR (with UK GDPR) | Marketing email to individuals, generally requiring consent, with a soft opt-in for existing customers | No | Consent or soft opt-in before any marketing send. See the ICO |
| Canada CASL and Australia's Spam Act 2003 | Consent and identification for commercial electronic messages | No | Consent records before sending |
GDPR is where the real work is. Verifying an address is processing personal data. The accuracy principle in Article 5(1)(d) asks you to keep personal data accurate, which is the strongest argument for verification: cleaning a list you already hold for a current purpose is easier to defend than keeping stale data.
Two details practitioners tend to miss. First, verification creates new data, a validity status for each address, so your privacy notice should cover it. Second, if a vendor outside the EEA processes the file, the international transfer rules in Chapter V apply. Storage limitation is the requirement most often overlooked in verification workflows. Keep results only as long as the job needs them.
Most data-protection regimes outside the EU and UK, such as Brazil's LGPD, follow similar purpose-limitation and retention principles. Check local rules with counsel.
Bottom line: Probing is rarely the violation. The lawful basis, the privacy notice and the retention period decide compliance. Use an email verification compliance and hygiene checklist to document them.
Does the answer change if the list was bought or scraped?
Yes. This is the biggest legal trap in the topic. Verification tells you an address exists. It does not tell you the person agreed to hear from you.
Under PECR and the GDPR, marketing to purchased or scraped addresses generally needs a lawful basis that most buyers lack. PECR's consent rule for marketing email is the usual obstacle. Verifying a bought list may improve deliverability, but it does nothing for consent. This matters most for B2B teams using verification for sales prospecting, where purchased data is common.
Bottom line: Verify first, but treat the decision to mail as a consent decision, not a deliverability decision.
Can probing a mail server get you into legal trouble?
Computer misuse statutes such as the US Computer Fraud and Abuse Act and the UK Computer Misuse Act 1990 target unauthorised access to systems. A single RCPT TO to a public mail exchanger is the protocol's intended use, and we are not aware of a case treating one as unauthorised access.
Volume changes the picture. A high-rate sweep through one provider's users can be read as abusive use of its service. The usual response is deferral, throttling or blocking rather than litigation. Acceptable-use terms vary by provider and are rarely explicit about probing, so read them before you run bulk checks.
Bottom line: A modest, well-behaved probe carries low legal risk. Volume and a sender identity that looks like harvesting turn it into a dispute.
What are the non-legal risks of running your own verifier?
Teams that abandon self-hosted verification usually do so for operational reasons. The problems they hit most often are these:
- Port 25 is closed. Many residential ISPs block outbound port 25, and many major clouds restrict it by default until you request an exception. Our guide to which cloud providers allow outbound port 25 compares the options.
- Your sending IP gets listed. An aggressive probe can land on blocklists such as Spamhaus. That listing hits the same IP you use for campaigns, so the damage appears at the worst moment. Use a dedicated IP, a PTR record that matches your
EHLOhostname, and per-domain rate limits. See how to avoid IP blacklisting when verifying emails yourself. - Greylisting looks like failure. A
4xxmeans "try later", not "invalid". Retrying in a tight loop increases deferrals and can get you throttled. - Answers are blurry. Catch-all domains and providers that accept everything make some results unreliable. Unlimited Verifier states 99.5% accuracy for its deep verification. That is the company's own figure, not an independent benchmark. A homegrown engine has no baseline unless you test it against addresses you control.
- Scale is an engineering project. Queueing, retries, rate limits and list updates all grow with volume. See scaling SMTP verification to millions.
Bottom line: Plan for a blocklisted sending IP the week before a campaign. A lawsuit is the less likely failure.
How do you run your own SMTP verification legally and safely?
If you self-host, follow these steps in order. Each one addresses a specific failure mode.
- Write down the purpose and the lawful basis. Record why you verify each data source. Under GDPR this is usually legitimate interests (Art. 6(1)(f)), which requires a documented balancing test. Why: a regulator asks for the purpose first.
- Verify only what you hold for a current purpose. Skip addresses you no longer contact. Why: minimisation keeps the processing defensible.
- Set a retention window and enforce it. Delete results once the job is done. Why: storage limitation is easy to forget and hard to justify later.
- Confirm port 25 is open from your host. Request an exception from your provider if needed. Why: a blocked port wastes engineering time on a problem outside your code.
- Give the probe a clean identity. Use a dedicated IP, a matching PTR record, and a sending domain with SPF in place. Why: receiving servers judge the sender before they read the question. The reverse DNS setup guide walks through the PTR record.
- Rate-limit per target domain, back off on
4xx, and never sendDATA. Why: this keeps you inside protocol norms and off blocklists. - Flag disposable and role-based addresses separately. Check them against a maintained domain list, such as the open-source disposable domain lists. Why: SMTP will often accept these addresses, so a "Valid" label alone misleads.
- Classify results explicitly. Treat
550 5.1.1as Invalid, catch-all250as Risky, and repeated4xxas unresolved. Why: a binary Valid/Invalid split hides the uncertainty that causes bounces. - Monitor blocklists and bounce rates weekly. Why: listings usually appear before campaign metrics show a problem.
Bottom line: Legal compliance is a documentation and retention exercise. Deliverability is an infrastructure exercise, and most of the effort goes there.
How do you test a self-hosted verifier without probing real customers?
Test your infrastructure with addresses you control before you verify any real list. The steps below take about 15 minutes on a host you already run.
- SSH into the host you plan to verify from.
- Test port 25 reachability with
nc -vz gmail-smtp-in.l.google.com 25. A "succeeded" or "open" response means outbound 25 works. A timeout or refusal means your provider is blocking it. - Check reverse DNS with
dig -x YOUR_PUBLIC_IP +short. The result should match the hostname you send inEHLO. - Check your sending domain's SPF record with
dig TXT yourdomain.com +short. Confirm a record exists and includes the host you send from. - Probe a mailbox you own. Confirm that a real address returns
250and a deliberately fake address returns550 5.1.1. If either result is wrong, fix the setup before going further.
If your goal is to verify a list rather than test a server, the managed path is faster and carries less infrastructure risk:
- Create a free account. The Free plan covers 25 lists a month of up to 150 emails each, plus 750 deep verifications a month.
- Upload and verify a list. Upload a CSV or Excel file up to 10MB. The email column is detected automatically.
- Read the three buckets. Valid, Risky and Invalid. Hold Risky addresses back. The catch-all email verification page explains why catch-all domains land there.
- Spot-check single addresses with the free email checker for any VIP contact that comes back Risky.
- Export and set retention. Export as CSV, Excel or JSON, then delete results once they are imported. Results are kept 24 hours on Free and 30 days on Pro, so plan around those windows.
Bottom line: Testing connectivity and verifying a list are different jobs. Keep probes on infrastructure you control, and use a managed tool for the list itself.
Worked example: is building cheaper at 500,000 addresses a month?
The self-hosted figures below are illustrative. The VPS price, engineer hours and hourly rate are assumptions, not market data. The Unlimited Verifier figures are its published plan limits.
Self-hosted model (monthly):
- VPS with dedicated IP (assumed): $45
- Build cost: 40 engineer-hours at $75/hour = $3,000, amortised over 12 months = $250
- Maintenance: 6 hours a month at $75 = $450
- Total: $45 + $250 + $450 = $745 a month
- Per 1,000 addresses: $745 ÷ 500 = $1.49
Managed model (Pro):
- 500,000 addresses ÷ 25,000 per list = 20 lists. Pro allows unlimited lists of up to 25,000 emails each, so this fits without splitting the work further.
- Standard verification is included with no per-email fee.
- Cost: $29 a month. Per 1,000 addresses: $29 ÷ 500 = about $0.06
- Pro includes 25,000 deep verifications a month. Spend them on the riskiest segment, not the whole file.
- Pro includes 100,000 API emails a month. For a 500,000-address job, bulk CSV uploads are the simpler route.
Verdict: At this volume the managed plan costs about $716 a month less. Self-hosting makes financial sense when port-25-capable infrastructure and engineering staff already exist and the marginal cost is compute. It also makes sense when data-residency rules rule out sending addresses to a third party. Even then, the processing duties above still apply to you.
Bottom line: Self-hosting wins on control, not on price, unless the infrastructure and staff time are already sunk.
Should you self-host or use a managed verifier?
Each option moves different risks onto your team. The table compares them side by side.
| Option | Legal duties you keep | Operational burden | Cost shape | Best fit |
|---|---|---|---|---|
| Self-hosted Rust engine, such as Reacher or check-if-email-exists | All controller and processor duties, plus your IP reputation | High: port 25, PTR records, blocklists, rate limits | Infrastructure plus engineering time | Teams with mail-ops skills and strict data-residency needs |
| Open-source engine you audit, such as Unlimited Verifier's published engine | Same as above, but you can read the check logic before you run it | High, though reviewing the code is easier than writing it | Engineering time | Teams that must explain exactly how each check works |
| Managed bulk verifier, such as Unlimited Verifier's Pro plan | Processor contract and retention, but the vendor runs the infrastructure | Low: CSV or Excel uploads with Valid, Risky and Invalid buckets | Flat monthly fee; standard verification has no per-email charge | Marketers, agencies and SaaS teams cleaning lists |
| Managed API verification, via the email verification API | Same as above, plus checks at the point of signup | Low to moderate: one integration to maintain | Pro includes 100,000 API emails a month | Teams verifying addresses at signup or in their own scripts |
For most teams, a managed option is the right default. It suits bulk work in the category of best email verification tools, and it removes the port-25 and blocklist burden. Open-source options earn their place when control and auditability matter more than convenience. Weigh that against the trade-offs of open-source verifiers before you commit.
If you need checks at signup rather than batch cleaning, real-time email validation is a separate workflow with its own latency and error-handling requirements.
Bottom line: Self-host for control and auditability. Use a managed service for speed and lower operational risk.
What mistakes do teams make with self-hosted SMTP verification?
- Treating verification as consent. A Valid address is not an opted-in address.
- Probing purchased lists and then marketing to them without a lawful basis.
- Running high-rate probes from one IP and getting blocklisted.
- Treating a
4xxas Invalid, or retrying in a tight loop. - Counting catch-all
250responses as Valid. - Trusting SMTP alone for disposable or role-based addresses. Check them against a domain list.
- Keeping results indefinitely. Storage limitation applies to verification output too.
- Testing with real customers' addresses instead of addresses you control.
- Skipping the privacy notice update for a new processing activity.
- Sending from a residential IP with no PTR record.
Bottom line: Most mistakes come from confusing a protocol answer with permission to mail, or from underestimating the infrastructure around the probe.
How we compared (and limitations)
This guide is based on public documentation: RFC 5321 and RFC 3463, the FTC's CAN-SPAM guidance, the text of the GDPR, PECR and ICO guidance, and provider sender documentation. We have not run tests against any mail provider's servers. The self-hosting cost model uses assumed hours and hosting prices, so replace them with your own figures. The 99.5% accuracy figure is Unlimited Verifier's stated number, not an independent benchmark. Laws vary by jurisdiction and change over time. Treat this as orientation rather than legal advice, and consult counsel before running bulk verification on personal data.
How to read RCPT TO replies
| Reply | Meaning | Classification |
|---|---|---|
| 250 | Server will accept mail for the address | Valid, unless catch-all |
| 550 5.1.1 | User unknown | Invalid |
| 4xx | Temporary deferral, such as greylisting | Retry later, otherwise Risky |
| Catch-all 250 on any probe | Server accepts everything | Risky |
| Probe blocked or timed out | No usable answer | Inconclusive, do not mark Invalid |
Frequently asked questions
Is it illegal to check if an email address exists?
No single law we are aware of bans checking whether an address exists. The probe sends no message and stops after the RCPT TO reply. The legal questions concern how you store, process and use the personal data you collect, which regimes like the GDPR regulate.
Does SMTP verification violate CAN-SPAM?
Generally no. CAN-SPAM governs commercial message content, opt-outs and sender identification. A verification probe transmits no message body, so it does not fall under those rules. Any emails you send to verified addresses still must comply with CAN-SPAM.
Do I need a lawful basis to verify email addresses under GDPR?
Usually yes, because email addresses generally count as personal data. You should identify a lawful basis, limit processing to what you need, and set a retention period. Document the purpose of verification so you can show compliance if a regulator asks.
Why do SMTP verification results sometimes lie?
The answer reflects the receiving server's policy, not a census of mailboxes. Catch-all domains return 250 for any address, greylisting returns 4xx, and some servers refuse probes they detect as harvesting. Treat these outcomes as inconclusive rather than definitive.
What does a catch-all domain mean for verification?
A catch-all domain accepts mail for any address, so a 250 reply tells you nothing about whether the specific mailbox exists. Classify these addresses as Risky rather than Valid, and consider engagement data or a separate check before sending marketing mail to them.
Why does my self-hosted SMTP verifier fail so often?
The most common causes are blocked outbound port 25 on your host, IP addresses placed on blocklists after aggressive probing, and provider throttling or temporary deferrals. Use a clean, properly configured sending IP, rate-limit your probes and back off on 4xx responses.
Can I verify addresses without sending any email at all?
Yes. SMTP verification stops before the DATA command, so no message is delivered. It still contacts the recipient's server, so it is not invisible: the server may log the connection, and repeated probing can trigger blocks.
Is it cheaper to build or buy an email verification service?
It depends on volume and engineering time. In our illustrative model, self-hosting 500,000 addresses a month costs about $1.49 per 1,000 once engineering time is counted, while a $29 monthly plan covers the same volume within its stated limits. Model your own staff costs before deciding.
Does SMTP verification detect disposable or role-based addresses?
Not on its own. The SMTP handshake only reports whether a server would accept mail for an address. Detecting disposable domains or role accounts such as info@ or sales@ requires a separate maintained domain list and pattern checks.
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.