Greeting & extensions
03The server greets the client. EHLO establishes the client identity and discovers optional capabilities.
A client cannot assume an extension exists merely because it knows its name.
Key idea: Use extensions only after capability discovery.
Rules & examples
Use extensions only after capability discovery.
- A normal session starts with a 220 greeting followed by EHLO.
- The EHLO response advertises supported extension keywords and parameters.
- HELO remains a compatibility fallback when EHLO is not recognized; it does not negotiate extensions.
RFC 5321 defines the extension framework. STARTTLS, AUTH, SIZE, and other individual extensions have their own specifications and requirements.
Sources
New to this? Start hereA quick picture + helpful background
The envelope and the letter do different jobs.
Mail transport moves a message between servers. The message format describes its contents. Authentication adds checks; it does not make every message safe.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.