SMTP commands

In this article you will find a list of the most important SMTP commands with a short explanation. Each command is used in a normal communication sequence between two servers through the SMTP protocol, in order to deliver emails.

It’s the first SMTP command: is starts the conversation identifying the sender server and is generally followed by its domain name.


With this SMTP command the operations begin: the sender states the source email address in the “From” field and actually starts the email transfer.

It identifies the recipient of the email; if there are more than one, the command is simply repeated address by address.

This SMTP command informs the remote server about the estimated size (in terms of bytes) of the attached email. It can also be used to report the maximum size of a message to be accepted by the server.

With the DATA command the email content begins to be transferred; it’s generally followed by a 354 reply code given by the server, giving the permission to start the actual transmission.

The server is asked to verify whether a particular email address or username actually exists.

This command is used to invert roles between the client and the server, without the need to run a new connaction.

With the AUTH command, the client authenticates itself to the server, giving its username and password. It’s another layer of security to guarantee a proper transmission.

It communicates the server that the ongoing email transmission is going to be terminated, though the SMTP conversation won’t be closed (like in the case of QUIT).

This SMTP command asks for a confirmation about the identification of a mailing list.

It’s a client’s request for some information that can be useful for the a successful transfer of the email.

It terminates the SMTP conversation.