Envelope vs message

Common verbs (ESMTP)

CommandPurpose
EHLOExtended hello — server advertises extensions.
STARTTLSUpgrade plain connection to TLS (RFC 3207).
AUTHAuthenticate submission client (PLAIN, LOGIN, CRAM-MD5 — prefer TLS + SASL mechanisms your provider documents).
MAIL FROMSets envelope sender (return path).
RCPT TOAdds envelope recipient (repeatable).
DATATransmit headers + body; ends with <CRLF>.<CRLF>.
QUITClose session politely.

Reply codes

Three-digit codes: first digit = success (2), deferral (4), or failure (5); second digit refines category. Example: 250 OK, 550 mailbox unavailable, 421 service unavailable.

Ports

Authentication at the edge

SMTP alone does not cryptographically prove sender identity. SPF, DKIM, and DMARC are DNS-based mechanisms that receiving servers use to detect spoofing — see your DNS provider’s documentation.