Datatypes

SMTP reply code

ID smtp_reply_code

DatatypeNot PIIcategoricalDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

Three-digit code with which a mail server answers an SMTP command (RFC 5321), as in 250 for an accepted command and 550 for a rejected mailbox. The first digit gives the kind of reply, from 2 for success to 5 for a permanent failure. Mail server logs and bounce messages store it, often together with the enhanced status code (smtp_enhanced_status_code). HTTP and FTP codes have the same form, so use the field name or context.

Categories
Internet
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
80/100 · missing: mapping (Wikidata, Schema.org, ...), detector coverage
Metacrafter rules
no detection rule yet
Supported by tools
no tool record lists this type yet

Regular expression

^[2-5]\d{2}$

Python re syntax.

Examples

ValueDescription
250Requested mail action completed
354Intermediate reply to the DATA command
421Service shutting down
550Mailbox unavailable
150 invalidSMTP has no 1xx replies

Translations

LanguageNameDescription
RussianКод ответа сервера SMTP

Sources

Use this record