wire / wire-format / smtp-protocol

SMTP (Simple Mail Transfer Protocol)

SMTP is the protocol for sending email. Commands: HELO/EHLO, MAIL FROM, RCPT TO, DATA, RSET, NOOP, QUIT, VRFY, EXPN. Responses: 3-digit codes (220 service ready, 250 OK, 354 start mail input, 421 service not available, 450 mailbox unavailable, 550 mailbox not found). ESMTP extensions: STARTTLS (upgrade to TLS), AUTH (authentication), SIZE (message size limit), PIPELINING (batch commands), 8BITMIME, SMTPUTF8.

wire-format kind wire-format status standard verification verified tier B wire-format@1

aka: SMTP (Simple Mail Transfer Protocol)

wire format

spec: RFC 5321

SMTP is the protocol for sending email. Commands: HELO/EHLO, MAIL FROM, RCPT TO, DATA, RSET, NOOP, QUIT, VRFY, EXPN. Responses: 3-digit codes (220 service ready, 250 OK, 354 start mail input, 421 service not available, 450 mailbox unavailable, 550 mailbox not found). ESMTP extensions: STARTTLS (upgrade to TLS), AUTH (authentication), SIZE (message size limit), PIPELINING (batch commands), 8BITMIME, SMTPUTF8.

fieldsizemeaning
HELO/EHLOcommandIdentify the client. EHLO enables ESMTP extensions.
MAIL FROMcommandSpecify sender address. MAIL FROM:<[email protected]>.
RCPT TOcommandSpecify recipient. RCPT TO:<[email protected]>. Can be repeated.
DATAcommandStart message body. Server responds 354. Client sends headers + blank line + body, terminated by \.\r\n.
STARTTLSEHLO extensionUpgrade connection to TLS. Server responds 220. Client sends TLS ClientHello.
AUTHEHLO extensionAuthentication: AUTH PLAIN, AUTH LOGIN, AUTH XOAUTH2. Client sends credentials.
Response codes3 digits220 service ready, 250 OK, 354 start mail input, 421 service not available, 450 mailbox unavailable, 550 mailbox not found, 552 exceeded storage, 554 transaction failed.

example:

00 00

SMTP (placeholder)


provenance

agent: curl -H 'accept: application/json' wire.phall.io/wire-format/smtp-protocol or /wire-format/smtp-protocol.json