请输入您要查询的百科知识:

 

词条 Post Office Protocol
释义

  1. Overview

  2. History

  3. Extensions and specifications

     STARTTLS  SDPS  Kerberized Post Office Protocol 

  4. Comparison with IMAP

  5. Dialog example

  6. Server implementations

  7. Related requests for comments (RFCs)

  8. See also

  9. References

  10. Further reading

  11. External links

{{Refimprove|date=November 2007}}{{IPstack}}

In computing, the Post Office Protocol (POP) is an application-layer Internet standard protocol used by e-mail clients to retrieve e-mail from a mail server.[1]

POP version 3 (POP3) is the version in common use.

Overview

POP3 supports download-and-delete from a remote mailbox ("maildrop" in POP3 terminology). Although most POP3 clients have an option to leave mail on server after download, they generally connect, retrieve all messages, store them on the client system, and delete them from the server.[2] (By contrast, the Internet Message Access Protocol (IMAP) normally leaves all messages on the server).

A POP3 server listens on well-known port number 110 for service requests. Encrypted communication for POP3 is either requested after protocol initiation, using the STLS command, if supported, or by POP3S, which connects to the server using Transport Layer Security (TLS) or Secure Sockets Layer (SSL) on well-known TCP port number 995.

Available messages to the client are fixed when a POP3 session opens the maildrop, and are identified by message-number local to that session or, optionally, by a unique identifier assigned to the message by the POP server. This unique identifier is permanent and unique to the maildrop and allows a client to access the same message in different POP sessions. Mail is retrieved and marked for deletion by message-number. When the client exits the session, the mail marked for deletion is removed from the maildrop.

History

POP1 was specified in RFC 918 (1984)

POP2 was specified in RFC 937 (1985)

POP3 is the version in most common use. It originated with RFC 1081 (1988) but the most recent specification is RFC 1939, updated with an extension mechanism (RFC 2449) and an authentication mechanism in RFC 1734.

While the original POP3 specification supported only an unencrypted USER/PASS login mechanism or Berkeley .rhosts access control, POP3 currently supports several authentication methods to provide varying levels of protection against illegitimate access to a user's e-mail. Most are provided by the POP3 extension mechanisms. POP3 clients support SASL authentication methods via the AUTH extension. MIT Project Athena also produced a Kerberized version. RFC 1460 introduced APOP into the core protocol. APOP is a challenge/response protocol which uses the MD5 hash function in an attempt to avoid replay attacks and disclosure of the shared secret. Clients implementing APOP include Mozilla Thunderbird, Opera Mail, Eudora, KMail, Novell Evolution, RimArts' Becky!,[3] Windows Live Mail, PowerMail, Apple Mail, and Mutt. RFC 1460 was obsoleted by RFC 1725, which was in turn obsoleted by RFC 1939.

POP4 exists only as an informal proposal adding basic folder management, multipart message support, as well as message flag management to compete with IMAP; however, its development has not progressed since 2003.[4]

Extensions and specifications

An extension mechanism was proposed in RFC 2449 to accommodate general extensions as well as announce in an organized manner support for optional commands, such as TOP and UIDL. The RFC did not intend to encourage extensions, and reaffirmed that the role of POP3 is to provide simple support for mainly download-and-delete requirements of mailbox handling.

The extensions are termed capabilities and are listed by the CAPA command. With the exception of APOP, the optional commands were included in the initial set of capabilities. Following the lead of ESMTP (RFC 5321), capabilities beginning with an X signify local capabilities.

STARTTLS

The STARTTLS extension allows the use of Transport Layer Security (TLS) or Secure Sockets Layer (SSL) to be negotiated using the STLS command, on the standard POP3 port, rather than an alternate. Some clients and servers instead use the alternate-port method, which uses TCP port 995 (POP3S).

SDPS

Demon Internet introduced extensions to POP3 that allow multiple accounts per domain, and has become known as Standard Dial-up POP3 Service (SDPS).[5] To access each account, the username includes the hostname, as john@hostname or john+hostname.

Google Apps uses the same method.[6]

Kerberized Post Office Protocol

In computing, local e-mail clients can use the Kerberized Post Office Protocol (KPOP), an application-layer Internet standard protocol, to retrieve e-mail from a remote server over a TCP/IP connection. The KPOP protocol is based on the POP3 protocol – differing in that it adds Kerberos security and that it runs by default over TCP port number 1109 instead of 110. One mail server software implementation is found in the Cyrus IMAP server.

Comparison with IMAP

An alternative protocol, IMAP (Internet Message Access Protocol) exists and is supported by most email clients. Some points of difference include:

  • POP is a much simpler protocol, making implementation easier.
  • POP moves the message from the email server onto the local computer, although there is usually an option to leave the messages on the email server as well.
  • IMAP defaults to leaving the message on the email server, simply downloading a local copy.
  • POP treats the mailbox as a single store, and has no concept of folders
  • An IMAP client performs complex queries, asking the server for headers, or the bodies of specified messages, or to search for messages meeting certain criteria. Messages in the mail repository can be marked with various status flags (e.g. "deleted" or "answered") and they stay in the repository until explicitly removed by the user—which may not be until a later session. In short: IMAP is designed to permit manipulation of remote mailboxes as if they were local. Depending on the IMAP client implementation and the mail architecture desired by the system manager, the user may save messages directly on the client machine, or save them on the server, or be given the choice of doing either.
  • The POP protocol requires the currently connected client to be the only client connected to the mailbox. In contrast, the IMAP protocol specifically allows simultaneous access by multiple clients and provides mechanisms for clients to detect changes made to the mailbox by other, concurrently connected, clients. See for example RFC3501 section 5.2 which specifically cites "simultaneous access to the same mailbox by multiple agents" as an example.
  • When POP retrieves a message, it receives all parts of it, whereas the IMAP4 protocol allows clients to retrieve any of the individual MIME parts separately – for example, retrieving the plain text without retrieving attached files.
  • IMAP supports flags on the server to keep track of message state: for example, whether or not the message has been read, replied to, forwarded, or deleted.

Dialog example

The APOP usage is a direct example from [//tools.ietf.org/html/rfc1939#page-19 RFC 1939 page 19].

RFC 1939 APOP support indicated by <1896.697170952@dbc.mtview.ca.us> here:

S: S: +OK POP3 server ready <1896.697170952@dbc.mtview.ca.us>S: +OK mrose's maildrop has 2 messages (320 octets)S: +OK 2 320S: +OK 2 messages (320 octets)S: 1 120S: 2 200S: .S: +OK 120 octetsS: S: .S: +OK message 1 deletedS: +OK 200 octetsS: S: .S: +OK message 2 deletedS: +OK dewey POP3 server signing off (maildrop empty)S:

POP3 servers without the optional APOP command expect the client to log in with the USER and PASS commands:

S: +OK User acceptedS: +OK Pass accepted

Server implementations

{{div col|colwidth=15em}}
  • Apache James
  • Citadel/UX
  • Courier Mail Server
  • Cyrus IMAP server
  • Dovecot
  • Eudora Internet Mail Server
  • HMailServer
  • Ipswitch IMail Server
  • Kerio Connect
  • Mailtraq
  • Nginx
  • qmail-pop3d
  • Qpopper
  • RePOP
  • UW IMAP
  • WinGate
  • Zimbra
{{div col end}}

Related requests for comments (RFCs)

  • RFC 918 – POST OFFICE PROTOCOL
  • RFC 937 – POST OFFICE PROTOCOL – VERSION 2
  • RFC 1081 – Post Office Protocol – Version 3
  • RFC 1939 – Post Office Protocol – Version 3 (STD 53)
  • RFC 1957 – Some Observations on Implementations of the Post Office Protocol (POP3)
  • RFC 2195 – IMAP/POP AUTHorize Extension for Simple Challenge/Response
  • RFC 2384 – POP URL Scheme
  • RFC 2449 – POP3 Extension Mechanism
  • RFC 2595 – Using TLS with IMAP, POP3 and ACAP
  • RFC 3206 – The SYS and AUTH POP Response Codes
  • RFC 5034 – The Post Office Protocol (POP3) Simple Authentication and Security Layer (SASL) Authentication Mechanism
  • RFC 8314 – Cleartext Considered Obsolete: Use of Transport Layer Security (TLS) for Email Submission and Access

See also

  • Email encryption
  • Enetbot
  • Internet Message Access Protocol

References

1. ^{{cite book | last = Dean | first = Tamara | title = Network+ Guide to Networks | publisher = Delmar | year = 2010 | location = | page = 519 | url = //books.google.com/books?id=UD0h_GqgbHgC&printsec=frontcover&dq=network%2B+guide+to+networks&hl=en&src=bmrr&ei=hMnATfmmA8j00gGMsOC2Cg&sa=X&oi=book_result&ct=result&resnum=1&ved=0CE8Q6AEwAA#v=onepage&q&f=false}}
2. ^{{cite book | last = Allen | first = David | title = Windows to Linux | publisher = Prentice Hall | year = 2004 | location = | page =192 | url = //books.google.com/books?id=UD0h_GqgbHgC&printsec=frontcover&dq=network%2B+guide+to+networks&hl=en&src=bmrr&ei=hMnATfmmA8j00gGMsOC2Cg&sa=X&oi=book_result&ct=result&resnum=1&ved=0CE8Q6AEwAA#v=onepage&q&f=false}}
3. ^{{ja icon}}, (Becky! tutorial), 2001-04-26.
4. ^{{cite web|archiveurl=https://web.archive.org/web/20171021231958/http://www.pop4.org/pop4/pop4spec.html|archivedate=2017-10-21|url=http://www.pop4.org/pop4/pop4spec.html|title=POP4 specification although pop is used to receive mail after system is not online.|year=2003|accessdate=2011-10-17}}
5. ^Demon Online Help Centre {{webarchive|url=https://archive.is/20110723084318/http://e.demon.net/helpdesk/producthelp/mail/sdps-tech.html/ |date=2011-07-23 }}. E.demon.net (2013-01-23). Retrieved on 2013-07-17.
6. ^{{cite web|url=http://mail.google.com/support/bin/answer.py?answer=34383|title=Google Apps and Gmail differences|website=Gmail Help Center|archive-url=https://web.archive.org/web/20080913155355/http://mail.google.com/support/bin/answer.py?answer=34383|archive-date=September 13, 2008}}

Further reading

{{Refbegin}}
  • {{cite book | last=Hughes | first=L | title=Internet e-mail Protocols, Standards and Implementation | publisher=Artech House Publishers | year=1998 | isbn=0-89006-939-5}}
  • {{cite book | last=Johnson | first=K | title=Internet Email Protocols: A Developer's Guide | publisher=Addison-Wesley Professional | year=2000 | isbn=0-201-43288-9}}
  • {{cite book | last=Loshin | first=P | title=Essential Email Standards: RFCs and Protocols Made Practical | publisher=John Wiley & Sons | year=1999 | isbn=0-471-34597-0}}
  • {{cite book | last=Rhoton | first=J | title=Programmer's Guide to Internet Mail: SMTP, POP, IMAP, and LDAP | publisher=Elsevier | year=1999 | isbn=1-55558-212-5}}
  • {{cite book | last=Wood | first=D | title=Programming Internet Mail | publisher=O'Reilly | year=1999 | isbn=1-56592-479-7}}
  • {{cite book | title=Post Office Protocol – Version 3 | url=http://www.rfc-editor.org/std/std53.txt | publisher=IETF | date=May 1996}}
{{Refend}}

External links

  • [https://www.iana.org/assignments/port-numbers IANA port number assignments]
  • POP3 Sequence Diagram (PDF)
{{E-mail clients}}

1 : Internet mail protocols

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/12 11:22:20