15.5 ESMTP

Extensions of the SMTP protocol led to the development of Extended SMTP (ESMTP) . The extension principle is specified in the RFC 1869 standard. The main problem concerning any extension is in its backward compatibility. In this case, the creators of ESMTP came up with a very smart solution.

While the SMTP protocol usually begins its dialogue with the HELO command, ESMTP uses the EHLO command. The server’s reply will be either of the following:

  • The client must have made a mistake in the command name. The client will immediately realize that the server is SMTP-only and carry on with the HELO command.
  • Status code 250 (shows that everything is OK). The client will immediately notice that the server is of ESMTP type. Furthermore, the servers ...

Get Understanding TCP/IP now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.