Simple Mail Transfer Protocol (SMTP)
The Simple Mail Transfer Protocol (SMTP) is the standard Communication Protocol for electronic mail transmission across Internet Protocol networks. While electronic mail was originally developed in the 1960s, SMTP was formalized in the early 1980s to provide a robust framework for Mail Transfer Agents to exchange messages. According to RFC 5321, the protocol is designed to reliably and efficiently deliver mail from a sender to a receiver.
Technical Overview
SMTP is a text-based protocol that operates over the Application Layer of the OSI Model. It uses the Transmission Control Protocol (TCP) as its transport mechanism. For decades, Port 25 has been the primary port for relaying mail between servers. However, for client-to-server submission, Port 587 is now the industry standard, often requiring authentication and Transport Layer Security (TLS) to ensure data integrity. Historical details can be found on the Wikipedia SMTP page.
Commands and Workflow
An SMTP session consists of a sequence of commands sent by the client and corresponding responses from the server. Common commands include HELO or EHLO (to initiate the session), MAIL FROM (to specify the sender), RCPT TO (to specify the recipient), and DATA (to send the message body). The evolution of the protocol led to Extended SMTP (ESMTP), which supports extensions like MIME for non-text attachments and 8-bit data transfer. Additional information regarding email infrastructure is available via the ICANN resource portal.