Glossary
SMTP: the protocol that delivers email
SMTP (RFC 5321) is the protocol mail servers use to hand messages to each other. The commands, reply codes and how mailbox checks use RCPT TO without sending.
Updated 2026-11-23
SMTP, the Simple Mail Transfer Protocol, is the protocol that moves email between servers and from mail clients to servers. Its current specification is RFC 5321. An SMTP session is a plain-text dialogue: the sender issues commands, the receiver answers with three-digit reply codes, and the message body travels at the end.
How it works
A delivery looks up the recipient domain's MX records, connects to a listed server, normally on port 25, and runs:
C: EHLO mail.sender.example
S: 250 mx.recipient.example
C: MAIL FROM:<news@sender.example>
S: 250 2.1.0 OK
C: RCPT TO:<jane@recipient.example>
S: 250 2.1.5 OK
C: DATA
S: 354 Start mail input
C: (headers and body)
C: .
S: 250 2.0.0 Queued
C: QUIT
| Command | Purpose |
|---|---|
| EHLO | Identify the client and ask for extensions |
| MAIL FROM | Set the envelope sender, where bounces go |
| RCPT TO | Name one recipient |
| DATA | Send the message |
| QUIT | End the session |
Reply codes tell the sender what happened. 2xx is success, 4xx is a temporary failure to retry, and 5xx is a permanent one. Enhanced status codes such as 5.1.1 (RFC 3463) add detail: 5.1.1 means the mailbox does not exist. A 4xx answer is typical of greylisting, a 5xx on a recipient is a hard bounce.
Mail clients usually submit through port 587 with authentication (RFC 6409), while port 25 is for server-to-server transfer. Encryption is added with STARTTLS (RFC 3207).
Note that the envelope (MAIL FROM, RCPT TO) is separate from the headers shown to the reader. Authentication standards such as SPF check the envelope sender.
Why it matters for validation
SMTP is how a mailbox check works. The server that hosts a mailbox is the only party that knows whether it exists, and RCPT TO is the question you can ask it. Qelka's prober connects to the domain's mail server, runs EHLO, MAIL FROM and RCPT TO, reads the answer and quits. It never sends DATA, so no message is delivered and nobody sees anything.
The result lands in checks.smtp of the email API: true when the server accepted the mailbox, false when it rejected it, and null when there was no clear answer, as with a timeout, a block or greylisting. Reasons such as mailbox_not_found, smtp_timeout and greylisted explain the rest.
Limits: a server that accepts every recipient is a catch-all domain, and a null answer must not be read as bad. For the whole method, read how to verify an email address.
Related
Frequently asked questions
What is SMTP?
What do SMTP reply codes mean?
Can SMTP check an email address without sending a message?
Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.
- 100 free credits a month
- No card
- Test keys spend nothing
- Cancel any time