2384
PROPOSED STANDARD

POP URL Scheme

Authors: R. Gellens
Date: August 1998
Stream: Legacy

Abstract

This memo defines a URL scheme for referencing a POP mailbox. [STANDARDS-TRACK]

RFC 2384: POP URL Scheme [RFC Home] [TEXT|PDF|HTML] [Tracker] [IPR] [Errata] [Info page]

PROPOSED STANDARD
Errata Exist
Network Working Group                                        R. Gellens
Request for Comments: 2384                       QUALCOMM, Incorporated
Category: Standards Track                                   August 1998


                             <span class="h1">POP URL Scheme</span>

Status of this Memo

   This document specifies an Internet standards track protocol for the
   Internet community, and requests discussion and suggestions for
   improvements.  Please refer to the current edition of the "Internet
   Official Protocol Standards" (STD 1) for the standardization state
   and status of this protocol.  Distribution of this memo is unlimited.

Copyright Notice

   Copyright (C) The Internet Society (1998).  All Rights Reserved.

<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>.  Introduction</span>

   [<a id="ref-POP3">POP3</a>] is a widely-deployed mail access protocol.  Many programs
   access POP3 message stores, and thus need POP3 configuration
   information.  Since there are multiple configuration elements which
   are required in order to access a mailbox, a single string
   representation is convenient.

   A POP3 mailbox (like an [<a href="#ref-IMAP4" title=""Internet Message Access Protocol - Version 4rev1"">IMAP4</a>] mailbox) is a network resource, and
   URLs are a widely-supported generalized representation of network
   resources.

   A means of specifying a POP3 mailbox as a URL will likely be useful
   in many programs and protocols. [<a href="#ref-ACAP" title=""ACAP -- Application Configuration Access Protocol"">ACAP</a>] is one case where a string
   encapsulation of elements required to access network services is
   needed.  For example, an [<a href="#ref-IMAP4" title=""Internet Message Access Protocol - Version 4rev1"">IMAP4</a>] message store is usually specified
   in ACAP datasets as an [<a href="#ref-IMAP-URL" title=""IMAP URL Scheme"">IMAP-URL</a>].

   This memo defines a URL scheme for referencing a POP mailbox.

<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>.  Conventions Used in this Document</span>

   The key words "MUST", "MUST NOT", "SHOULD", "SHOULD NOT", and "MAY"
   in this document are to be interpreted as defined in "Key words for
   use in RFCs to Indicate Requirement Levels" [<a href="#ref-KEYWORDS" title=""Key words for use in RFCs to Indicate Requirement Levels"">KEYWORDS</a>].







<span class="grey">Gellens                     Standards Track                     [Page 1]</span>

<span id="page-2" ></span>
<span class="grey"><a href="./rfc2384">RFC 2384</a>                     POP URL Scheme                  August 1998</span>


<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>.  POP Scheme</span>

   The POP URL scheme designates a POP server, and optionally a port
   number, authentication mechanism, authentication ID, and/or
   authorization ID.

   The POP URL follows the common Internet scheme syntax as defined in
   <a href="./rfc1738">RFC 1738</a> [<a href="#ref-BASIC-URL" title=""Uniform Resource Locators (URL)"">BASIC-URL</a>] except that clear text passwords are not
   permitted.  If :<port> is omitted, the port defaults to 110.

   The POP URL is described using [<a href="#ref-ABNF" title=""Augmented BNF for Syntax Specifications: ABNF"">ABNF</a>] in <a href="#section-8">Section 8</a>.

   A POP URL is of the general form:

        pop://<user>;auth=<auth>@<host>:<port>

   Where <user>, <host>, and <port> are as defined in <a href="./rfc1738">RFC 1738</a>, and some
   or all of the elements, except "pop://" and <host>, may be omitted.

<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>.  POP User Name and Authentication Mechanism</span>

   An authorization (which mailbox to access) and authentication (whose
   password to check against) identity (referred to as "user name" for
   simplicity) and/or authentication mechanism name may be supplied.
   These are used in a "USER", "APOP", "AUTH" [<a href="#ref-POP-AUTH" title=""POP3 AUTHentication command"">POP-AUTH</a>], or extension
   command after making the connection to the POP server.  If the URL
   doesn't supply an authentication identifier, the program interpreting
   the POP URL SHOULD request one from the user.

   An authentication mechanism can be expressed by adding ";AUTH=<enc-
   auth-type>" to the end of the user name.  If the authentication
   mechanism name is not preceded by a "+", it is a SASL POP [<a href="#ref-SASL" title=""Simple Authentication and Security Layer (SASL)"">SASL</a>]
   mechanism.  If it is preceded by a "+", it is either "APOP" or an
   extension mechanism.

   When an <enc-auth-type> is specified, the client SHOULD request
   appropriate credentials from that mechanism and use the "AUTH",
   "APOP", or extension command instead of the "USER" command.  If no
   user name is specified, one SHOULD be obtained from the mechanism or
   requested from the user as appropriate.

   The string ";AUTH=*" indicates that the client SHOULD select an
   appropriate authentication mechanism.  It MAY use any mechanism
   supported by the POP server.

   If an <enc-auth-type> other than ";AUTH=*" is specified, the client
   SHOULD NOT use a different mechanism without explicit user
   permission.



<span class="grey">Gellens                     Standards Track                     [Page 2]</span>

<span id="page-3" ></span>
<span class="grey"><a href="./rfc2384">RFC 2384</a>                     POP URL Scheme                  August 1998</span>


   If a user name is included with no authentication mechanism, then
   ";AUTH=*" is assumed.

   Since URLs can easily come from untrusted sources, care must be taken
   when resolving a URL which requires or requests any sort of
   authentication.  If authentication credentials are supplied to the
   wrong server, it may compromise the security of the user's account.
   The program resolving the URL should make sure it meets at least one
   of the following criteria in this case:

   (1) The URL comes from a trusted source, such as a referral server
   which the client has validated and trusts according to site policy.
   Note that user entry of the URL may or may not count as a trusted
   source, depending on the experience level of the user and site
   policy.

   (2) Explicit local site policy permits the client to connect to the
   server in the URL.  For example, if the client knows the site domain
   name, site policy may dictate that any hostname ending in that domain
   is trusted.

   (3) The user confirms that connecting to that domain name with the
   specified credentials and/or mechanism is permitted.

   (4) A mechanism is used which validates the server before passing
   potentially compromising client credentials.

   (5) An authentication mechanism is used which will not reveal
   information to the server which could be used to compromise future
   connections.

   A URL containing ";AUTH=*" should be treated with extra care since it
   might fall back on a weaker security mechanism. Finally, clients are
   discouraged from using a plain text password as a fallback with
   ";AUTH=*" unless the connection has strong encryption (e.g., a key
   length of greater than 56 bits).

   Note that if unsafe or reserved characters such as " " or ";" are
   present in the user name or authentication mechanism, they MUST be
   encoded as described in <a href="./rfc1738">RFC 1738</a> [<a href="#ref-BASIC-URL" title=""Uniform Resource Locators (URL)"">BASIC-URL</a>].

<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>.  Relative POP URLs</span>

   Relative POP URLs are not permitted.







<span class="grey">Gellens                     Standards Track                     [Page 3]</span>

<span id="page-4" ></span>
<span class="grey"><a href="./rfc2384">RFC 2384</a>                     POP URL Scheme                  August 1998</span>


<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>.  Multinational Considerations</span>

   Since 8-bit characters are not permitted in URLs, [<a href="#ref-UTF8" title=""UTF-8, a transformation format of ISO 10646"">UTF8</a>] characters
   are encoded as required by the URL specification [<a href="#ref-BASIC-URL" title=""Uniform Resource Locators (URL)"">BASIC-URL</a>].

<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>.  Examples</span>

   The following examples demonstrate how a POP client program might
   translate various POP URLs into a series of POP commands. Commands
   sent from the client to the server are prefixed with "C:", and
   responses sent from the server to the client are prefixed with "S:".

   The URL:

        <pop://[email protected]>

   Results in the following client commands:

        <request password from user>
        <connect to mailsrv.qualcomm.com, port 110>
        S: +OK POP3 server ready <1896.697170952@mailsrv.qualcomm.com>
        C: USER rg
        S: +OK
        C: PASS secret
        S: +OK rg's mailbox has 2 messages (320 octets)

   The URL:

        <pop://rg;[email protected]:8110>

   Results in the following client commands:

        <client requests password from user>
        <connect to mail.eudora.com, port 8110>
        S: +OK POP3 server ready <1896.697170952@mail.eudora.com>
        C: APOP rg c4c9334bac560ecc979e58001b3e22fb
        S: +OK mailbox has 1 message (369 octets)

   The URL:

        <pop://baz;[email protected]>

   Results in the following client commands:

        <connect to foo.bar, port 110>

        S: +OK POP3 server ready <1896.697170952@foo.bar>
        C: AUTH SCRAM-MD5 AGNocmlzADx0NG40UGFiOUhCMEFtL1FMWEI3MmVnQGVsZW



<span class="grey">Gellens                     Standards Track                     [Page 4]</span>

<span id="page-5" ></span>
<span class="grey"><a href="./rfc2384">RFC 2384</a>                     POP URL Scheme                  August 1998</span>


           Fub3IuaW5ub3NvZnQuY29tPg==
        S: + dGVzdHNhbHQBAAAAaW1hcEBlbGVhbm9yLmlubm9zb2Z0LmNvbQBq
           aGNOWmxSdVBiemlGcCt2TFYrTkN3
        C: AQAAAMg9jU8CeB4KOfk7sUhSQPs=
        S: + U0odqYw3B7XIIW0oSz65OQ==
        C:
        S: +OK mailbox has 1 message (369 octets)

<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>.  ABNF for POP URL scheme</span>

   The POP URL scheme is described using [<a href="#ref-ABNF" title=""Augmented BNF for Syntax Specifications: ABNF"">ABNF</a>]:

        achar            = uchar / "&" / "=" / "~"
                                ; see [<a href="#ref-BASIC-URL" title=""Uniform Resource Locators (URL)"">BASIC-URL</a>] for "uchar" definition

        auth             = ";AUTH=" ( "*" / enc-auth-type )

        enc-auth-type    = enc-sasl / enc-ext

        enc-ext          = "+" ("APOP" / 1*achar)
                              ;APOP or encoded extension mechanism name

        enc-sasl         = 1*achar
                              ;encoded version of [<a href="#ref-SASL" title=""Simple Authentication and Security Layer (SASL)"">SASL</a>] "auth_type"

        enc-user         = 1*achar
                              ;encoded version of [<a href="#ref-POP3" title=""Post Office Protocol -- Version 3"">POP3</a>] mailbox

        pop-url          = "pop://" server

        server           = [user-auth "@"] hostport
                              ;See [<a href="#ref-BASIC-URL" title=""Uniform Resource Locators (URL)"">BASIC-URL</a>] for "hostport" definition

        user-auth        = enc-user [auth]

<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>.  Security Considerations</span>

   Security considerations discussed in the [<a href="#ref-POP3" title=""Post Office Protocol -- Version 3"">POP3</a>] specification and the
   [<a href="#ref-BASIC-URL" title=""Uniform Resource Locators (URL)"">BASIC-URL</a>] specification are relevant.  Security considerations
   related to authenticated URLs are discussed in <a href="#section-4">section 4</a> of this
   document.

   Many email clients store the plain text password for later use after
   logging into a POP server.  Such clients MUST NOT use a stored
   password in response to a POP URL without explicit permission from
   the user to supply that password to the specified host name.





<span class="grey">Gellens                     Standards Track                     [Page 5]</span>

<span id="page-6" ></span>
<span class="grey"><a href="./rfc2384">RFC 2384</a>                     POP URL Scheme                  August 1998</span>


<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>.  Acknowledgements</span>

   This document borrows heavily from Chris Newman's [<a href="#ref-IMAP-URL" title=""IMAP URL Scheme"">IMAP-URL</a>]
   specification, and has attempted to follow the advice in [URL-
   GUIDELINES].

<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>.  References</span>

   [<a id="ref-ABNF">ABNF</a>]           Crocker, D., and P. Overell, "Augmented BNF for
                    Syntax Specifications: ABNF", <a href="./rfc2234">RFC 2234</a>, November
                    1997.

   [<a id="ref-ACAP">ACAP</a>]           Newman, C., and J. Myers, "ACAP -- Application
                    Configuration Access Protocol", <a href="./rfc2244">RFC 2244</a>, November
                    1997.

   [<a id="ref-BASIC-URL">BASIC-URL</a>]      Berners-Lee, T., Masinter, L., and M. McCahill,
                    "Uniform Resource Locators (URL)", <a href="./rfc1738">RFC 1738</a>,
                    December 1994.

   [<a id="ref-IMAP-URL">IMAP-URL</a>]       Newman, C., "IMAP URL Scheme", <a href="./rfc2192">RFC 2192</a>, September
                    1997.

   [<a id="ref-IMAP4">IMAP4</a>]          Crispin, M., "Internet Message Access Protocol -
                    Version 4rev1", <a href="./rfc2060">RFC 2060</a>, December 1996.

   [<a id="ref-KEYWORDS">KEYWORDS</a>]       Bradner, S., "Key words for use in RFCs to Indicate
                    Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.

   [<a id="ref-POP-AUTH">POP-AUTH</a>]       Myers, J., "POP3 AUTHentication command", <a href="./rfc1734">RFC 1734</a>,
                    December 1994.

   [<a id="ref-POP3">POP3</a>]           Myers, J., and M. Rose, "Post Office Protocol --
                    Version 3", STD 53, <a href="./rfc1939">RFC 1939</a>, May 1996.

   [<a id="ref-SASL">SASL</a>]           Myers, J., "Simple Authentication and Security Layer
                    (SASL)", <a href="./rfc2222">RFC 2222</a>, October 1997.

   [<a id="ref-URL-GUIDELINES">URL-GUIDELINES</a>] Masinter, Alvestrand, Zigmond, "Guidelines for new
                    URL Schemes", Work in Progress.

   [<a id="ref-UTF8">UTF8</a>]           Yergeau, F., "UTF-8, a transformation format of ISO
                    10646", <a href="./rfc2279">RFC 2279</a>, January 1998.








<span class="grey">Gellens                     Standards Track                     [Page 6]</span>

<span id="page-7" ></span>
<span class="grey"><a href="./rfc2384">RFC 2384</a>                     POP URL Scheme                  August 1998</span>


<span class="h2"><a class="selflink" id="section-12" href="#section-12">12</a>.  Author's Address</span>

   Randall Gellens
   QUALCOMM, Incorporated
   6455 Lusk Blvd.
   San Diego, CA  92121-2779
   U.S.A.

   Phone: +1 619 651 5115
   Fax:   +1 619 651 5334
   EMail: [email protected]








































<span class="grey">Gellens                     Standards Track                     [Page 7]</span>

<span id="page-8" ></span>
<span class="grey"><a href="./rfc2384">RFC 2384</a>                     POP URL Scheme                  August 1998</span>


<span class="h2"><a class="selflink" id="section-13" href="#section-13">13</a>.  Full Copyright Statement</span>

   Copyright (C) The Internet Society (1998).  All Rights Reserved.

   This document and translations of it may be copied and furnished to
   others, and derivative works that comment on or otherwise explain it
   or assist in its implementation may be prepared, copied, published
   and distributed, in whole or in part, without restriction of any
   kind, provided that the above copyright notice and this paragraph are
   included on all such copies and derivative works.  However, this
   document itself may not be modified in any way, such as by removing
   the copyright notice or references to the Internet Society or other
   Internet organizations, except as needed for the purpose of
   developing Internet standards in which case the procedures for
   copyrights defined in the Internet Standards process must be
   followed, or as required to translate it into languages other than
   English.

   The limited permissions granted above are perpetual and will not be
   revoked by the Internet Society or its successors or assigns.

   This document and the information contained herein is provided on an
   "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
   TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
   BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
   HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
   MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
























Gellens                     Standards Track                     [Page 8]

Additional Resources