Envello
Bounces and SMTP replies

SMTP reply code

Also called: SMTP status code, SMTP error code

An SMTP reply code is the three-digit number a mail server answers each command with. The first digit says the outcome: 2 success, 4 try again later, 5 permanent failure.

The codes are defined in RFC 5321. 250 accepts a message, 421 and 450 defer it, 550 and 554 reject it. The second and third digits narrow the category, but the human-readable text after them is where receivers put the specific reason and often a help URL.

Most receivers also send an enhanced status code such as 5.1.1 after the basic one, which is more precise and the better thing to branch on in code.

Read next

Related terms

All glossary terms