Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

Simple Mail Transfer Protocol (SMTP) is an Internet standard for electronic mail (e-

mail) transmission across Internet Protocol (IP) networks. SMTP was first defined in
RFC 821 (STD 15) (1982)[1], and last updated by RFC 5321 (2008)[2] which includes the
extended SMTP (ESMTP) additions, and is the protocol in widespread use today. SMTP
is specified for outgoing mail transport and uses TCP port 25.

While electronic mail servers and other mail transfer agents use SMTP to send and
receive mail messages, user-level client mail applications typically only use SMTP for
sending messages to a mail server for relaying. For receiving messages, client
applications usually use either the Post Office Protocol (POP) or the Internet Message
Access Protocol (IMAP) to access their mail box accounts on a mail server.

Protocol overview
SMTP is a text-based protocol, in which a mail sender communicates with a mail receiver
by issuing command strings and supplying necessary data over a reliable ordered data
stream channel, typically a Transmission Control Protocol (TCP) connection.[2] An SMTP
session consists of commands originated by the SMTP client and corresponding
responses from the SMTP server by which the session is opened, session parameters are
exchanged, the recipients are specified and possibly verified, and the message is
transmitted, before the session is closed. The originating host is either an end-user's email
client, functionally identified as a mail user agent (MUA), or a relay server's mail transfer
agent (MTA).

SMTP was designed as an electronic mail transport and delivery protocol, and as such it
is used between SMTP systems that are operational at all times. However, it has
capabilities for use as a mail submission protocol[2] for email clients (split user-agent) that
do not have the capability to operate as MTA. Such agents are also called message
submission agents (MSA),[13] sometimes also referred to as mail submission agents. They
are typically end-user applications and send all messages through a smart relay server,
often called the outgoing mail server, which is specified in the programs' configuration. A
mail transfer agent, incorporated either in the e-mail client directly or in the relay server.
In some cases an SMTP client, even a server, may also be configured to use a smart host
for delivery. The SMTP client typically initiates a Transmission Control Protocol (TCP)
connection to the SMTP server on the well-known port designated for SMTP, port
number 25.

SMTP is a delivery protocol only. It cannot pull messages from a remote server on
demand. Other protocols, such as the Post Office Protocol (POP) and the Internet
Message Access Protocol (IMAP) are specifically designed for retrieving messages and
managing mail boxes. However, the SMTP protocol has a feature to initiate mail queue
processing on a remote server so that the requesting system may receive any messages
destined for it (cf. Remote Message Queue Starting). POP and IMAP are preferred
protocols when a user's personal computer is only intermittently powered up, or Internet
connectivity is only transient and hosts cannot receive message during off-line periods.

You might also like