Network Working Group | C. Daboo |
Internet-Draft | Apple Inc. |
Expires: April 19, 2013 | October 18, 2012 |
Use of SRV records for locating email services
draft-daboo-srv-email-00
This specification describes how SRV records can be used to locate email services.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at http:/⁠/⁠datatracker.ietf.org/⁠drafts/⁠current/⁠.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on April 19, 2013.
Copyright (c) 2012 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http:/⁠/⁠trustee.ietf.org/⁠license-⁠info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
[RFC2782] defines a DNS-based service discovery protocol that has been widely adopted as a means of locating particular services within a local area network and beyond, using SRV RR records.
Internet Email protocols include SMTP [RFC5321], IMAP [RFC3501] and POP3 [RFC1939].
[RFC5321] defines the MX RR record type to locate SMTP services for a domain. However, [RFC4409] defines a "profile" of the SMTP service that is specifically used for message submission - which is of direct relevance to email clients which typically don't use MX records.
Both IMAP and POP3 are mail access protocols used by email clients to manipulate email messages after delivery.
Typically email clients have required users to enter host name and port information for the services they need. This is not ideal as the way in which server information is specified can differ from client to client, and can be confusing to users, leading to errors when inputting the details. A better approach would be to require miniml information to be entered by a user which would result in automatic configuration of appropriate services for that user. The minimal information entered would be the user's email address.
This specification defines new SRV service types for the message submission, IMAP and POP3 services to enable simple autoconfiguration of email clients.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].
This specification adds one SRV service type for message submission [RFC4409]:
Example: service record
_submission._tcp SRV 0 1 587 mail.example.com.
This specification adds two SRV service types for IMAP [RFC3501]:
Example: service record
_imap._tcp SRV 0 1 143 imap.example.com.
This specification adds two SRV service types for POP3 [RFC1939]:
Example: service record
_pop3._tcp SRV 0 1 110 pop3.example.com.
By using SRV records as above, clients need only prompt the user for their email address [RFC5322]. "local-part" and "domain" portions are extracted from the email address by the client. The "local-part" is used for the user identifier (used for authentication with the appropriate service) and the "domain" is used as the service domain.
The client uses the service domain to perform SRV lookups for the services it wants to configure. If the SRV lookup is successful the host name and port for the service can be determined and used to complete client configuration. If an SRV record is not found, the client will need to prompt the user to enter host name and port information directly.
Clients that support both POP3 and IMAP SHOULD check for both services using SRV lookups. If both services are returned the choice of which to configure is up to the client - it could prompt the user to make a choice, or pick one based on local policy.
Clients that support transport layer security SHOULD try the "imaps" or "pop3s" services first before trying the "imap" or "pop3" services. If a user has explicitly requested a connection with transport layer security, the client MUST NOT use any service information returned for the "imap" or "pop3" services.
A malicious attacker with access to the DNS server data can potentially cause clients to connect to any server chosen by the attacker. In the absence of a secure DNS option, clients SHOULD check that the host name returned in the SRV record matches the original service domain that was queried. If the host is not in the queried domain, clients SHOULD verify with the user that the SRV host name is suitable for use before executing any connections to the host.
This document does not require any actions on the part of IANA.
[RFC1939] | Myers, J.G. and M.T. Rose, "Post Office Protocol - Version 3", STD 53, RFC 1939, May 1996. |
[RFC2119] | Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. |
[RFC2595] | Newman, C., "Using TLS with IMAP, POP3 and ACAP", RFC 2595, June 1999. |
[RFC2782] | Gulbrandsen, A., Vixie, P. and L. Esibov, "A DNS RR for specifying the location of services (DNS SRV)", RFC 2782, February 2000. |
[RFC3207] | Hoffman, P., "SMTP Service Extension for Secure SMTP over Transport Layer Security", RFC 3207, February 2002. |
[RFC3501] | Crispin, M., "INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1", RFC 3501, March 2003. |
[RFC4409] | Gellens, R. and J. Klensin, "Message Submission for Mail", RFC 4409, April 2006. |
[RFC5321] | Klensin, J., "Simple Mail Transfer Protocol", RFC 5321, October 2008. |
[RFC5322] | Resnick, P., "Internet Message Format", RFC 5322, October 2008. |