How to Validate an Email Address Without Sending One
Understand the three layers of email validation—syntax, DNS MX lookup, and mailbox confirmation—plus regex edge cases and offline browser checks.
Email validation works across three layers: syntax checking (format and RFC 5321 length limits), domain verification (DNS MX records), and mailbox confirmation (sending a verification email). Uttir’s Email Validator runs syntax, typo, disposable-domain, and role-address checks offline in your browser, while MX lookups and confirmation links belong on your server.
You have an email address. You want to know if it is real. The most reliable test is to send an email to it and see if it bounces. But you cannot always send that email — you are validating on a signup form, you do not have a real email to send, or you do not want to tip off a typo'd signup that they got the address wrong.
This post covers the three layers of email validation, what each catches, what each misses, and the right tool for each. The Uttir Email Validator runs Layer 1 syntax checks, RFC 5321 length limits, typo detection, and disposable/role heuristics entirely offline in your browser with no network calls. Layer 2 DNS MX lookups and Layer 3 confirmation emails run server-side.
Layer 1: syntax check (and regex edge cases)
The cheapest layer. A regex (or a simple parser) checks that the address is shaped like an email: a local part, an @ symbol, a domain part, and a top-level domain. This catches the obvious garbage: addresses with no @, addresses with spaces, addresses with invalid characters, addresses that are obviously not email.
For client-side form checks, keep the pattern simple so you catch obvious mistakes without rejecting real users:
^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,}$
Or use a pragmatic RFC 5322-style pattern plus RFC 5321 length limits (254 characters total, 64 characters max for the local part). The Uttir Regex Tester lets you test any email regex against edge cases locally; paste the regex and test addresses to see what matches.
Common regex edge cases and form UX mistakes to avoid:
- Plus-addressing (
alice+shopping@gmail.com) — valid and widely used for filtering; overly strict regexes accidentally reject+. - Quoted local parts and IP literals (
"alice"@example.com,alice@[192.0.2.1]) — rare, but technically valid under RFC 5321/5322. - Internationalized domains: Punycode labels (
xn--...) match ASCII regexes, while Unicode labels need IDN normalization first. - Case sensitivity: per RFC 5321 local parts can be case-sensitive, though providers treat them case-insensitively in practice; never reject uppercase letters like
Alice@example.com. - Leading/trailing spaces and keystroke timing: trim outer whitespace before checking, and validate on blur or submit rather than screaming red while the user is mid-typing.
What syntax checks still miss: they cannot tell whether a domain actually exists (alice@this-domain-does-not-exist-12345.com) or whether a mailbox exists at a valid domain.
Layer 2: domain check (server-side DNS MX)
The middle layer. A server-side DNS lookup checks whether the domain has mail-handling records (MX records, or an A record fallback if no MX exists). A domain with MX records is configured to receive email; a domain without MX or A records cannot receive mail.
This catches a different class of invalid addresses: syntactically valid addresses on nonexistent domains or typos like alice@asdfjkl.com. Note that the Uttir Email Validator intentionally stays 100% offline so addresses never leave your device, so it catches common provider typos via Levenshtein distance (such as gmial.com → gmail.com) instead of querying remote DNS.
What domain checks miss: they do not verify that a specific local part exists. does-not-exist@uttir.com passes an MX check because the domain accepts mail, even if that mailbox does not exist.
Layer 3: mailbox check
The expensive layer. The only way to know for sure that a mailbox exists is to actually try to deliver mail to it. This is either an SMTP-level test (connect to the mail server, attempt to send, see if the server rejects the address) or a real email send (send the email, wait for the bounce, see if it bounces).
The SMTP-level test is faster and does not require sending a real email, but it is intrusive: the mail server might rate-limit the check, or treat it as a probe and reject the connection. Some mail servers explicitly block SMTP-level mailbox checks to prevent address harvesting.
The real-email-send test is the most reliable. Send the email, wait a few minutes, check the bounce log. If the email bounced, the address is not valid. If the email was accepted, the address is valid (at least at the moment you sent it). This is what every transactional email service does on every send, and it is the only way to be 100% sure.
Third-party mailbox-verification APIs (ZeroBounce, NeverBounce, BriteVerify) run this layer at scale. They maintain lists of known-bad addresses, known-role-based addresses (info@, admin@, postmaster@), and known-trap addresses (spam-trap addresses that should never be on a marketing list). They charge per verification, usually fractions of a cent per address, and are the right tool for cleaning a large list before a campaign.
What to use when
The three layers serve different purposes. The right layer depends on what you are doing.
On a signup form. Run layer 1 (syntax) and layer 2 (domain). Both are fast (under a second combined), both are free, and both catch the most common errors: typos in the domain, addresses with no @, addresses from non-existent domains. Do not run layer 3 on signup; the SMTP probe is too slow and too intrusive for a real-time form check. After signup, send a confirmation email; that is the layer 3 test, and it is what every email service does.
Cleaning a list before a campaign. Run layer 1 (syntax) and layer 2 (domain) for free, then run layer 3 through a verification API for the addresses that pass. The verification API costs money but the cost is much smaller than the cost of sending to a list full of bad addresses (high bounce rate, sender reputation damage, possible blacklisting).
Validating a single address in a script. Run layer 1 (regex) inline, then call out to a DNS resolver for layer 2. Most languages have a DNS library built in. For layer 3, send the email and check the bounce.
Debugging an email delivery problem. Run all three. The syntax check tells you if the address is shaped right. The domain check tells you if the domain is configured to receive. The mailbox check tells you if the specific address is real. Most delivery problems are at layer 2 (the recipient domain is misconfigured) or layer 3 (the recipient mailbox is full, suspended, or rejected your message).
What these checks do not catch
A few things none of the layers can catch, that you should know about:
- Disposable addresses. Some services (Guerrilla Mail, 10MinuteMail, TempMail) provide throwaway addresses that pass every check but are designed to be abandoned. Catching these requires a blocklist of disposable domains, which changes constantly.
- Role-based addresses. Addresses like
info@,admin@,support@are valid mailboxes but are usually not what you want on a marketing list. They are also the addresses that are most likely to be spam-trapped. - Temporary typos.
alice@gmial.com(a typo of gmail.com) passes the domain check (gmial.com is a real domain, just not the one the user meant). Catching this requires either a fuzzy-match check against a list of common email providers, or a confirmation email that proves the user can receive at the address. - Addresses that will be valid in the future. A domain might be registered today but not configured for mail. The DNS check would say "no MX records" today, but the domain might have valid MX records next month. Re-validate periodically if you are storing the address for long-term use.
None of these are reasons to skip validation. They are reasons to not over-rely on it. A confirmation email is the only test that catches all of them; the layer 1 and layer 2 checks just catch the cheap and obvious ones first.
How to do it in your browser
The Uttir Email Validator runs RFC 5322-lite format checks, RFC 5321 length limits, typo suggestions, and disposable/role/free-provider heuristics offline in your browser with zero network calls. The Regex Tester helps verify custom validation patterns against edge cases, JSON Validator and JSON Formatter help clean exported contact payloads, and URL Encoder safely encodes addresses passed as query parameters to your own verification API.
Further reading
Primary source: RFC 5321 — Simple Mail Transfer Protocol.
Frequently asked questions
- Does Uttir Email Validator perform DNS MX lookups or send emails?
- No. The Email Validator runs completely offline in your browser so pasted email addresses never leave your device. It checks format, RFC 5321 length limits, provider typos (such as
gmial.com), disposable domains, and role addresses; MX lookups and confirmation links must run on your server. - Should I use a full RFC 5322 regex in browser signup forms?
- No. Huge "RFC-compliant" regexes are hard to maintain and still miss edge cases. Keep client-side form validation simple (allowing plus-addressing like
user+tag@domain.com), check MX records on your backend, and verify deliverability with a confirmation email. - Why should disposable or role-based addresses be flagged rather than always rejected?
- Role addresses like
support@orbilling@are real mailboxes often used by B2B teams, though they hurt marketing deliverability. Flagging them lets your backend route or prompt the user appropriately instead of silently losing legitimate signups.