Skip to content
BounceRill

How email verification works, step by step

What happens when you verify an email address: syntax rules, DNS and MX records, the SMTP conversation with the mail server, and why some stay uncertain.

5 min read

Email verification answers a simple question before you send: will this address accept mail? Getting a reliable answer takes several checks, each one looking at a different layer of how email is delivered. This guide walks through them in the order a verifier runs them, and explains what each one can and cannot tell you.

1. Syntax: is it an address at all?

The first check is local and instant. An email address has two parts separated by the last @: a local part (the mailbox name) and a domain. The rules come from RFC 5321 and RFC 5322:

  • The local part can be up to 64 characters; the whole address up to 254.
  • Dots cannot start or end the local part, and two dots cannot appear in a row.
  • The domain is made of labels of letters, digits and hyphens, separated by dots, and a label cannot start or end with a hyphen.
  • Text such as Ana <ana@example.com> is a display name plus an address, not an address. A verifier should reject it rather than guess what you meant.

A strict syntax check catches typing mistakes and broken imports, and it costs nothing. It also catches obvious typos in popular domains: gmial.com is a valid domain name, but a good verifier will suggest gmail.com.

Internationalized addresses (with letters such as é or Chinese characters) are valid under newer standards but are not supported by every mail system. A careful verifier reports them separately instead of calling them invalid.

2. Domain and DNS: can the domain receive mail?

Next, the verifier asks the Domain Name System how mail for the domain should be delivered. Several outcomes are possible:

  • The domain does not exist. DNS answers NXDOMAIN. No mail can be delivered, so the address is undeliverable.
  • The domain publishes MX records. MX records name the mail servers that accept mail for the domain, in order of preference. This is the normal case.
  • The domain publishes a Null MX. A single MX record pointing to . (defined in RFC 7505) means the domain explicitly accepts no mail.
  • There are no MX records but there is an A or AAAA record. Under RFC 5321, mail can then be delivered to the domain’s own address. This “implicit MX” is rare but valid.
  • There is nothing at all. The domain exists but has no MX, A or AAAA records, so there is no route for mail.

A thorough verifier also checks that the mail servers named by the MX records actually exist. A domain whose MX points to a deleted host cannot receive mail either.

DNS answers come with a time to live (TTL). Respecting it means a list with ten thousand addresses at the same company only queries that domain once, which is faster and polite to the DNS servers involved.

Temporary DNS failures, such as timeouts or SERVFAIL answers, prove nothing. They should be retried, and if they persist the address should be reported as uncertain, not as invalid.

3. The mailbox: asking the mail server

DNS tells you whether a domain can receive mail. It cannot tell you whether ana@example.com exists. Only the domain’s mail server knows that, and the way to ask is the same conversation a sending server starts when it delivers a message, the SMTP protocol:

220 mx.example.com ESMTP ready
EHLO verifier.example.net
250 mx.example.com
MAIL FROM:<verify@example.net>
250 2.1.0 OK
RCPT TO:<ana@example.com>
250 2.1.5 OK
QUIT

The important line is the answer to RCPT TO. A 250 means the server would accept mail for that address. A 550 5.1.1 (“user unknown”) means the mailbox does not exist. The verifier then says goodbye with QUIT. No DATA command is sent, so no message is ever delivered to anyone.

Three things make this step harder than it looks:

  • Accept-all domains. Some servers answer 250 for every address, real or not. A verifier detects this by also asking about an address that cannot exist. If that one is accepted too, a 250 for the real address proves nothing. See catch-all email domains.
  • Greylisting and temporary errors. Some servers answer 450 or 451 to unknown senders and expect them to come back a few minutes later. A verifier must retry instead of giving up.
  • Reputation. Large providers refuse to talk to servers with a poor reputation or without proper reverse DNS. Their refusal says something about the verifier, not about the address, and must not be reported as “invalid”.

4. Evidence from your own sending

The strongest evidence about a mailbox is what happened the last time you sent to it. A delivery last week says the mailbox existed last week; a permanent bounce for “recipient not found” says it did not. Sending platforms report these events, and a verifier that can use them gives better answers for exactly the addresses that the mail server will not confirm.

Evidence ages, though. A mailbox that accepted mail two years ago may be closed today, so good systems keep the date of every observation and stop trusting it after a while.

Putting it together: three honest answers

After these checks, an address falls into one of three groups:

Result Meaning What to do
High Recent positive evidence about this exact mailbox Send
Uncertain Nobody can confirm or rule it out right now Send with care, in smaller waves
Low Conclusive evidence that mail will not arrive Remove

The uncertain group is not a failure. It is the honest answer for accept-all domains, servers that refuse verification and temporary problems. A verifier that turns those addresses into “valid” or “invalid” is guessing, and guesses either cost you bounces or cost you good contacts.

BounceRill runs all of these checks and returns, for every address, the result, a stable reason code and the date of the evidence behind it. See the email verification API or the full list of reason codes.

Verify your list with BounceRill

Three honest answers for every address, with the reason and the date of the evidence. Request access to the pilot.

Request accessExplore the API