Simple Mail Transfer Protocol (SMTP)
Simple Mail Transfer Protocol (SMTP)
http://en.wikipedia.org/w/index.php?title=Simple_Mail_Transfer_Protocol&printable=yes 12/7/07
Simple Mail Transfer Protocol - Wikipedia, the free encyclopedia Page 2 of 13
Contents
1 Description
2 History
2.1 Developers
3 Outgoing mail SMTP server
4 Sample communications
5 Security and spamming
6 References
7 Related Requests For Comments (RFCs)
8 See also
9 External links
9.1 cr.yp.to links
9.2 Other links
Description
SMTP is a relatively simple, text-based protocol, where one or
more recipients of a message are specified (and in most cases
verified to exist) and then the message text is transferred. It is a
client-server protocol, where the client transmits an email
message to the server. Either an end-user's email client, a.k.a.
MUA (Mail User Agent), or a relaying server's MTA (Mail
Transfer Agents) can act as an SMTP client.
http://en.wikipedia.org/w/index.php?title=Simple_Mail_Transfer_Protocol&printable=yes 12/7/07
Simple Mail Transfer Protocol - Wikipedia, the free encyclopedia Page 3 of 13
An email client knows the outgoing mail SMTP server from its
configuration. A relaying server typically determines which
SMTP server to connect to by looking up the MX (Mail
eXchange) DNS record for each recipient's domain name, the
part of the email address to the right of the at sign (@).
Conformant MTAs (not all) fall back to a simple A record in the
case of no MX. Some current mail transfer agents will also use
SRV records, a more general form of MX, though these are not
widely adopted. (Relaying servers can also be configured to use a
smart host.)
History
SMTP developed out of Mail Box Protocol (ca. 1971), FTP Mail
[1] [2]
(ca. 1973), and Mail Protocol. The work continued
throughout the 1970s, until the ARPANET converted into the
modern Internet around 1990. Jon Postel then proposed a Mail
Transfer Protocol in 1980 that began to remove the mail's
[3]
reliance on FTP SMTP was published as RFC 821 in 1982
http://en.wikipedia.org/w/index.php?title=Simple_Mail_Transfer_Protocol&printable=yes 12/7/07
Simple Mail Transfer Protocol - Wikipedia, the free encyclopedia Page 4 of 13
Sendmail was one of the first (if not the first) mail transfer agent
to implement SMTP. As of 2001 there are at least 50 programs
that implement SMTP as a client (sender of messages) or a server
(receiver of messages). Some other popular SMTP server
programs include Postfix, qmail, Novell GroupWise, Exim,
Novell NetMail and Microsoft Exchange Server.
http://en.wikipedia.org/w/index.php?title=Simple_Mail_Transfer_Protocol&printable=yes 12/7/07
Simple Mail Transfer Protocol - Wikipedia, the free encyclopedia Page 5 of 13
Developers
Many people edited or contributed to the core SMTP
specifications, among them Jon Postel, Eric Allman, Dave
Crocker, Ned Freed, Randall Gellens, John Klensin, and Keith
Moore.
http://en.wikipedia.org/w/index.php?title=Simple_Mail_Transfer_Protocol&printable=yes 12/7/07
Simple Mail Transfer Protocol - Wikipedia, the free encyclopedia Page 6 of 13
Sample communications
After establishing a connection between the sender (the client)
and the receiver (the server), the following is a legal SMTP
session. In the following conversation, everything sent by the
client is prefaced with C: and everything sent by the server is
prefaced with S:. On most computer systems, a connection can
be established using the telnet command on the client machine,
for example.
telnet www.example.com 25
http://en.wikipedia.org/w/index.php?title=Simple_Mail_Transfer_Protocol&printable=yes 12/7/07
Simple Mail Transfer Protocol - Wikipedia, the free encyclopedia Page 7 of 13
Please note that the data the client sends in the HELO and MAIL
FROM commands can be retrieved in additional headers that the
server adds to the message: Received and Return-Path
respectively.
Although optional and not shown above, nearly all clients ask the
server which SMTP extensions the server supports, by using the
EHLO greeting to invoke Extended SMTP (ESMTP). These
clients use HELO only if the server does not respond to EHLO.
For the edit planning of giant files or sending with older clients,
http://en.wikipedia.org/w/index.php?title=Simple_Mail_Transfer_Protocol&printable=yes 12/7/07
Simple Mail Transfer Protocol - Wikipedia, the free encyclopedia Page 8 of 13
http://en.wikipedia.org/w/index.php?title=Simple_Mail_Transfer_Protocol&printable=yes 12/7/07
Simple Mail Transfer Protocol - Wikipedia, the free encyclopedia Page 9 of 13
it.
References
1. ^ RFC 469 - Network Mail Meeting Summary
2. ^ RFC 524 - A Proposed Mail Protocol
http://en.wikipedia.org/w/index.php?title=Simple_Mail_Transfer_Protocol&printable=yes 12/7/07
Simple Mail Transfer Protocol - Wikipedia, the free encyclopedia Page 10 of 13
http://en.wikipedia.org/w/index.php?title=Simple_Mail_Transfer_Protocol&printable=yes 12/7/07
Simple Mail Transfer Protocol - Wikipedia, the free encyclopedia Page 11 of 13
See also
Bounce messages (SMTP non-delivery reports)
E-mail loop
E-mail authentication
SMTP-AUTH (ESMTPA)
Extended SMTP (ESMTP)
QMTP (Quick Mail Transport Protocol by Daniel J.
Bernstein)
Ident
Sender Policy Framework (SPF)
DNSSEC
Email encryption
External links
http://en.wikipedia.org/w/index.php?title=Simple_Mail_Transfer_Protocol&printable=yes 12/7/07
Simple Mail Transfer Protocol - Wikipedia, the free encyclopedia Page 12 of 13
cr.yp.to links
The Hash Convention for Mail System Status Codes
(HCMSSC)
Internet mail infrastructure
SMTP reference manual
Tools in the war on mail loops
Variable Envelope Return Paths (VERP)
Other links
SMTP Sequence Diagram (PDF)
Diagram of e-mail flow (PDF, PNG )
Troubleshooting SMTP in Thunderbird Includes information
on getting around port 25 blocking.
The Case For Email Security - Security and Insecurity in
SMTP, POP and IMAP.
Retrieved from
"http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol"
http://en.wikipedia.org/w/index.php?title=Simple_Mail_Transfer_Protocol&printable=yes 12/7/07
Simple Mail Transfer Protocol - Wikipedia, the free encyclopedia Page 13 of 13
http://en.wikipedia.org/w/index.php?title=Simple_Mail_Transfer_Protocol&printable=yes 12/7/07