How to check if an email address is valid, and whether the mailbox exists
Check an email address yourself in order: the format, the domain's MX records, then the mail server's SMTP reply for the mailbox. Also why a test email is the wrong way to find out.
By the Fig team. . 8 min read.
To check if an email address is valid, test three things in order: the address is written correctly, the domain has a mail server, and that mail server says the mailbox exists. The first two you can check in a minute with a DNS lookup. The third needs an SMTP conversation with the receiving server, which you can run by hand for one address or let an email verifier run for a whole list.
None of these steps sends a message. The common shortcut of sending a test email and waiting for a bounce does send one, and each bounce counts against the domain you send from.
What valid means for an email address
People use the word for two different things. An address can be valid in format, meaning a mail system would accept it as an address at all. Or it can be valid in the stronger sense, meaning mail sent to it will be delivered to a real mailbox today.
sarah.mitchell@acme.example can pass the first test and fail the second if Sarah left Acme last spring and her mailbox was closed. sarah.mitchell@acme,example fails the first test straight away. For a sales list or a signup form, only the second meaning matters, because that is what decides whether you get a bounce.
Step 1: check the format
An address is a local part, an @ and a domain. RFC 5322 defines the grammar, and RFC 5321 sets the size limits: the local part can be at most 64 octets and the domain at most 255. The whole path, angle brackets included, is capped at 256, which leaves 254 characters for the address itself.
Look for these common mistakes:
- A missing or doubled
@, or a space inside the address - A comma where the dot should be, as in
acme,example - A dot at the start or end of the local part, or two dots in a row
- Text pasted along with the address, such as
Sarah <sarah@acme.example>or a trailing semicolon - Misspelled common domains:
gmial.com,gmail.co,outlok.com,yaho.com
The standard is looser than many form validators. Plus addressing such as daniel+newsletter@example.com is legal, and a quoted local part is legal too, though you will rarely see one outside a test. A form that rejects the + sign turns away real people.
For Gmail addresses, also know that dots in the local part are ignored. Google's help page says the owner of johnsmith@gmail.com also gets mail sent to john.smith@gmail.com. That matters when you remove duplicates from a list. It does not apply to company domains, where a dot usually makes it a different address.
Step 2: check that the domain can receive mail
A correctly written address still goes nowhere if its domain has no mail server. Mail servers find where to deliver by looking up the domain's MX records in DNS, so you can do the same lookup. The examples below use acme.example, a name reserved for documentation, so put the real domain in its place.
On Windows, nslookup takes a record type with the -type option, as Microsoft's nslookup reference shows:
nslookup -type=mx acme.example
On macOS or Linux, use dig:
dig MX acme.example
A healthy answer lists one or more mail servers, each with a preference number. The server with the lowest number is tried first, and the tools do not always print them in that order. With +short added, dig prints only those lines:
10 mx1.acme.example.
20 mx2.acme.example.
If +short prints nothing, run the command again without it and read the status: field near the top. The other answers you might get:
- NXDOMAIN: the domain does not exist in DNS, because it was never registered or has expired.
nslookupsays it cannot find the domain. Every address at it is invalid. - NOERROR with no MX records: the domain exists but lists no mail server. RFC 5321 section 5.1 says a sender should then treat the domain's own address record as an implicit mail server. Run
dig A acme.example +short. If it returns an address, mail can still arrive, but only if that host answers on port 25. - A single MX of
0 .: this is a null MX, defined in RFC 7505. The owner is saying the domain accepts no mail at all, and the RFC tells a sending server that refuses such an address to report it with a 556 reply.
This step catches domains that were never registered and company domains that expired after a rebrand or a shutdown. It does not catch every typo. When we looked them up on 25 November 2026, gmial.com, outlok.com and yaho.com had no MX records but did have address records, so they pass the implicit MX rule. gmail.co had a null MX. Compare domains against the common misspellings from step 1 as well.
Step 3: ask the mail server whether the mailbox exists
The last check is the one that tells you whether the person's mailbox is open. You connect to the domain's mail server on port 25 and start the same conversation a sending server would, then stop before any message is handed over. The guide to how email verification works covers the protocol in detail.
Before you try it, keep it to one or two addresses, and never run it from a network whose public IP also sends your company's mail. Mail servers judge the IP that connects to them, and probing from it can get that IP slowed down or refused.
Connect to the MX with the lowest preference number from step 2. Windows needs the Telnet Client installed first, as Microsoft's telnet reference notes. Current macOS has no telnet, but nc -c mx1.acme.example 25 does the same job, with -c sending the line endings SMTP expects. Lines starting with S: are the server and C: are you, and the replies are an illustration:
telnet mx1.acme.example 25
S: 220 mx1.acme.example ESMTP ready
C: EHLO yourdomain.com
S: 250 mx1.acme.example
C: MAIL FROM:<you@yourdomain.com>
S: 250 OK
C: RCPT TO:<sarah.mitchell@acme.example>
S: 550 5.1.1 No such user here
C: QUIT
S: 221 Bye
The reply to RCPT TO is the answer. In RFC 5321 the first digit gives the kind of answer: 2 is yes, 4 is try later, 5 is a permanent no. The common replies:
| Reply | What it means for the address |
|---|---|
| 250 | The server will accept mail for this mailbox |
| 550 with 5.1.1 | The mailbox does not exist. RFC 3463 defines 5.1.1 as a bad destination mailbox address |
| 552 or 452 with 5.2.2 or 4.2.2 | The mailbox is full. It probably exists, but treat it as risky |
| 450 or 451 | A temporary refusal, often greylisting. Try again in a few minutes |
| 550 that mentions policy, spam or a blocklist | The server refused you, the sender. It says nothing about the mailbox |
Because you send QUIT before DATA, no message is created and the person sees nothing.
Why the manual test often fails
In practice this step is hard to run from a laptop, because many internet providers and cloud hosts block outbound port 25. Comcast does not support port 25 for its residential customers and lists other providers that block it as well. Google Cloud blocks outbound connections to port 25 outside your own network, and AWS blocks it on EC2 and Lambda until you ask for the restriction to be removed.
When the port is open, the receiving server still judges where you are calling from. Yahoo, for one, expects sending IPs to have valid forward and reverse DNS. A home or office connection is not set up like a mail server, so the receiving server may refuse you before you reach RCPT TO. Comcast's page adds that receiving providers are likely to block mail sent straight from its dynamic IP address space, which Spamhaus lists as not to be used for sending email.
The manual test is good for understanding the process or settling one address. For anything more, a verifier runs it from servers set up for the job and tells you when a server gave no clear answer.
Answers the SMTP check cannot settle
Even a clean SMTP conversation leaves some addresses without a clear yes or no:
- Catch all domains reply 250 to every recipient, real or made up. A verifier spots them by also asking about an address that cannot exist. If that is accepted too, your contact's answer is unknown. The catch all guide explains how to decide which of those to keep.
- Greylisting and rate limits return 4xx replies to senders the server has not seen before. The answer may come on a retry minutes later, or never.
- Disabled VRFY. SMTP has a
VRFYcommand meant for this question, but RFC 5321 lets servers turn it off for security reasons, and a server that does must answer 252, which confirms nothing. That is why checks rely onRCPT TO.
The results guide sets out what to send to, hold or remove for each of these outcomes.
Why a test email is the wrong check
Sending a short message and watching for a bounce does tell you whether the address works, but you pay for the answer. Bounces count against the domain and IP you send from, and M3AAWG's sender best practices note that large volumes of hard bounces can lower an IP's reputation score. Google's sender guidelines tell senders to automatically unsubscribe recipients who bounce more than once and not to buy address lists from other companies.
A test email also lands in a real inbox when the address works, so the person gets a strange message from you before your actual one. For one address you are unsure about, the cost is small. For a list of 2,000 contacts exported from a data provider, a test send puts every dead address on your bounce record at once. The bounce guide covers the bounce rates that start to cause trouble.
Checking a whole list
For a list, run all three steps on every address before the first send:
- Remove duplicates and fix obvious typos.
- Run the list through a verifier, which does the format, MX and SMTP checks and adds a status to each row.
- Send to the valid addresses and remove the invalid ones. Decide on the risky ones case by case, and check the unknown ones again later.
- Recheck a list that has sat unused for a while before you send to it, because mailboxes close all the time.
If the list came from a data provider, check it even when the provider marks the addresses as verified. The lead list guide explains why exported lists mix confirmed addresses with guesses.
Check addresses with Fig
Fig runs the format, MX and SMTP checks for you and hangs up before anything is sent. Upload a CSV, XLSX or XLS file with up to 100,000 rows, or check addresses from code with POST /v1/verify, the fig-verify command line tool or the fig-mcp server for AI agents. Each address comes back valid, invalid, risky or unknown with a reason, such as mailbox does not exist or catch all. The first 100 checks are free, unknown results are refunded, and credit packs start at $2 for 1,000 checks. The API reference and the developer quickstart show the calls.
Questions
How can I check if an email address exists without sending an email?
Look up the domain's MX records, then open an SMTP connection to that mail server and ask about the address with RCPT TO. A 250 reply means the server accepts it, a 550 usually means the mailbox does not exist. Hang up before DATA and nothing is sent. An email verifier does the same steps for you.
Is an email address valid if it has the right format?
Not necessarily. A correct format only means the address could exist. The domain also needs a mail server, and the mailbox needs to be open. An address in an old or bought list can pass the format check and still bounce.
Can I check if an email is valid by sending a test message?
You can, but every test to a dead address is a hard bounce on your own sending domain, and mailbox providers count bounces against your reputation. For more than a handful of addresses, check them with a verifier before you send.
Why can't I run the SMTP check from my own computer?
Many home internet providers and cloud hosts block outbound port 25, which is the port mail servers listen on. Comcast does not support port 25 for its residential customers, and Google Cloud and AWS block it by default. Even when the port is open, an IP address without proper DNS records is often refused.
What does it mean when a domain accepts every address?
The domain is catch all. Its server replies 250 to any recipient, including made up ones, so the SMTP check cannot tell you whether your contact's mailbox exists. Treat those addresses as risky.