A standard application-layer protocol for delivery of e-mail over a TCP/IP internetwork such as the Internet. The basics of Simple Mail Transfer Protocol (SMTP) are defined in Request for Comments (RFC) 821 and 822.
SMTP defines the format for messages sent between TCP/IP hosts on the Internet. SMTP uses plain 7-bit ASCII text to send e-mail messages and to issue SMTP commands to receiving hosts. Multipurpose Internet Mail Extensions (MIME) is typically used to encode multipart binary files including attachments into a form that SMTP can handle.
SMTP provides a mechanism for forwarding e-mail from one TCP/IP host to another over the Internet. SMTP services running on a TCP/IP host first establish a connection to a remote host using Transmission Control Protocol (TCP) port 25. An SMTP session is then initiated by sending a helo command and receiving an OK response. The sending computer then uses the following commands to send messages:
SMTP provides message transport only from one SMTP host to another. Support for storing messages in mailboxes is provided by Post Office Protocol version 3 (POP3) and Internet Mail Access Protocol version 4 (IMAP4).
To implement SMTP on a Microsoft Exchange Server messaging network, install and configure the Internet Mail Service. To troubleshoot problems with remote SMTP servers, use Telnet to connect to port 25, try issuing various SMTP commands (such as the ones described in this entry), and examine the results. The SMTP service on Internet Information Server (IIS) version 4 functions only as an SMTP mail delivery agent (SMTP host) and does not have any provision for creating user mailboxes.