view Side-By-Side changes
Individual submission M. Kucherawy Internet-Draft Sendmail, Inc. Intended status: Standards TrackMay 19,July 26, 2007 Expires:November 20, 2007January 27, 2008 Message Header Field for Indicating Sender Authentication Statusdraft-kucherawy-sender-auth-header-05draft-kucherawy-sender-auth-header-06 Status of this Memo By submitting this Internet-Draft, each author represents that any applicable patent or other IPR claims of which he or she is aware have been or will be disclosed, and any of which he or she becomes aware will be disclosed, in accordance with Section 6 of BCP 79. This document may not be modified, and derivative works of it may not be created. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet- Drafts. 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." The list of current Internet-Drafts can be accessed at http://www.ietf.org/ietf/1id-abstracts.txt. The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html. This Internet-Draft will expire onNovember 20, 2007.January 27, 2008. Copyright Notice Copyright (C) The IETF Trust (2007). Kucherawy ExpiresNovember 20, 2007January 27, 2008 [Page 1] Internet-Draft Authentication-Results HeaderMayJuly 2007 Abstract This memo defines a new message header field for use with electronic mail messages to indicate the results of sender authentication efforts. Mail user agents (MUAs) may use this message header field to relay that information in a convenient way to users or to make sorting and filtering decisions. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.1. Purpose . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.2. Requirements . . . . . . . . . . . . . . . . . . . . . . . 4 1.3. Definitions . . . . . . . . . . . . . . . . . . . . . . . 4 2. Definition and Format of the Header . . . . . . . . . . . . . 6 2.1. General Description . . . . . . . . . . . . . . . . . . . 6 2.2. Formal Definition . . . . . . . . . . . . . . . . . . . . 6 2.3. Authentication Identifier Fields . . . . . . . . . . . . . 8 2.4. Result Values . . . . . . . . . . . . . . . . . . . . . . 9 2.5. Definition Of Initial Methods . . . . . . . . . . . . . . 9 2.6. Extension Fields . . . . . . . . . . . . . . . . . . . . . 10 3. Adding The Header To A Message . . . . . . . . . . . . . . . . 11 3.1. Header Position and Interpretation . . . . . . . . . . . . 11 4. Discussion . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.1. Removing The Header . . . . . . . . . . . . . . . . . . . 13 5. Conformance and Usage Requirements . . . . . . . . . . . . . . 14 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 15 6.1. The Authentication-Results: header . . . . . . . . . . . . 15 6.2. Method Registry . . . . . . . . . . . . . . . . . . . . . 15 7. Security Considerations . . . . . . . . . . . . . . . . . . . 16 7.1. Non-conformant MTAs . . . . . . . . . . . . . . . . . . . 16 7.2. Header Position . . . . . . . . . . . . . . . . . . . . . 16 8. References . . . . . . . . . . . . . . . . . . . . . . . . . . 17 8.1. Normative References . . . . . . . . . . . . . . . . . . . 17 8.2. Informative References . . . . . . . . . . . . . . . . . . 17 Appendix A. Acknowledgements . . . . . . . . . . . . . . . . . . 19 Appendix B. Legacy MUAs . . . . . . . . . . . . . . . . . . . . . 20 Appendix C. Authentication-Results Examples . . . . . . . . . . . 21 C.1. Trivial case; header field not present . . . . . . . . . . 21 C.2. Nearly-trivial case; service provided, but no authentication done . . . . . . . . . . . . . . . . . . . 22 C.3. Service provided, authentication done . . . . . . . . . . 22 C.4. Service provided, several authentications done, single MTA . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 C.5. Service provided, several authentications done, different MTAs . . . . . . . . . . . . . . . . . . . . . . 24 Appendix D. Public Discussion . . . . . . . . . . . . . . . . . . 26 Kucherawy ExpiresNovember 20, 2007January 27, 2008 [Page 2] Internet-Draft Authentication-Results HeaderMayJuly 2007 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . . 27 Intellectual Property and Copyright Statements . . . . . . . . . . 28 Kucherawy Expires January 27, 2008 [Page 3] Internet-Draft Authentication-Results Header July 2007 1. Introduction This memo defines a new message header field for electronic mail messages which presents the results of a sender authentication effort in a machine-readable format. The intent is to create a place to collect such data when sender authentication mechanisms are in use so thatan MUAa Mail User Agent (MUA) can provide a recommendation to the user as to the trustworthiness of the message's origin and content. This memo defines both the format of this newheader,header field, and discusses the implications of its presence or absence.[REMOVE OR REWORD[UPDATE PRIOR TO FINAL VERSION] At the time of publication of this draft, [AUTH],[SENDERID], [SPF][DKIM], [DOMAINKEYS], [SENDERID] and[DKIM][SPF] are the published e-mail authentication methods in common use. As various methods emerge, it is necessary to prepare for their appearance and encourage convergence in the area of interfacing these filters to MUAs. 1.1. Purpose The header field defined in this memo is expected to serve several purposes: 1. Convey to MUAs from filters andMTAsMail Transfer Agents (MTAs) the results of various sender authentication checks being applied; 2. Provide a common location for the presentation of this data; 3. Create an extensible framework for specifying new authentication methods as such emerge; 4. Convey the results of sender authentication tests to later filtering agents within the same "trust domain", as such agents might apply more or less stringent checks based on sender authentication results. 1.2. Requirements This memo establishes no new requirements on existing protocols or servers, as there is currently no standard place for the described data to be collected or presented. 1.3. DefinitionsThis document occasionally uses terms that appear in capital letters. When the termsThe key words "MUST","SHOULD", "RECOMMENDED","MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and"MAY" appear capitalized, they"OPTIONAL" in this document arebeing usedtoindicate particular requirements of this specification. A discussion of thebe interpreted as described in RFC2119. Kucherawy ExpiresNovember 20, 2007January 27, 2008 [Page3]4] Internet-Draft Authentication-Results HeaderMayJuly 2007meanings of these terms appears in RFC2119. Generally itA "border MTA" isassumed that the work of applying sender authentication schemes takes place at a border MTA, that is,an MTA which acts as a gateway between the general Internet and the users within an organizational boundary.This specificationA "delivery MTA" (or Mail Delivery Agent or MDA) iswritten with that assumption in mind. However, therean MTA which actually enacts delivery of a message to a user's inbox or other final delivery. Generally it is assumed that the work of applying sender authentication schemes takes place at a border MTA or a delivery MTA. This specification is written with that assumption in mind. However, there are some sites at which the entire mail infrastructure consists of a single host. In such cases, such terms as "border MTA" and "delivery MTA" may well apply to the same machine or even the very same agent. See [I-D.DRAFT-CROCKER-EMAIL-ARCH] for further discussion on e-mail system architecture. Kucherawy ExpiresNovember 20, 2007January 27, 2008 [Page4]5] Internet-Draft Authentication-Results HeaderMayJuly 2007 2. Definition and Format of the Header This section gives a general overview of the format of the header field being defined, and then provides more formal specification. 2.1. General Description The new header field being defined here is called"Authentication-Results"."Authentication- Results". Itqualifies in [MAIL] [6] terms asis a Structured HeaderField,Field as defined in [MAIL] and thus all of the related definitions in that document apply. This new headerSHOULDfield MUST be added at the top of the message as it transits MTAs which do authentication checks sothatsome idea of how far away the checks were done can be inferred. It thereforealso qualifies in [MAIL] [6] termsshould be treated as a Trace HeaderField,Field as defined in [MAIL] and thus all of the related definitions in that document apply. The decommented value of the header field consists ofa hostname,an authentication identifier, some whitespace, a "property=value" statement indicating which property was selected to determine who sent the message and what value was extracted from that property, followed by zero or more authentication method names and a result associated with each, returned by the code that implements the method.As it is currently a matter of some debate, theThe header field MAY appear more than once in a single message, or more than one result MAY be represented in a singleheader,header field, or a combination of these MAY be applied. 2.2. Formal Definition Formally, the header field is specified as follows: header = "Authentication-Results:"hostname CFWS headerspec *(CFWS[CFWS] authres-id *([CFWS] ";"CFWS method CFWS "=" CFWS result) CFWS hostnamemethodspec propspec ) authres-id =domaindot-atom-text ;assee below for a description of this element; ; "dot-atom-text" is defined in section3.4.13.2.4 of [MAIL] methodspec = [CFWS] method [CFWS] "=" [CFWS] result [CFWS] ; indicates which authentication method was evaluated Kucherawy Expires January 27, 2008 [Page 6] Internet-Draft Authentication-Results Header July 2007 propspec = ptype [CFWS] "." [CFWS] property [CFWS] "=" value ; an indication of which property of the message ; was evaluated by the authentication scheme being ; applied to yield the reported result method = token ["-""/" version ] ; a method indicates which method's result is ; is represented by "value", and is one of the methods ; explicitly defined as valid in this document ; or is an extension method as defined below version =(1*( ALPHA / DIGIT )1*(0*( "." 1*( ALPHA / DIGIT ) ) ; indicates which version of the method was appliedKucherawy Expires November 20, 2007 [Page 5] Internet-Draft Authentication-Results Header May 2007result = "pass" /"fail""hardfail" / "softfail" / "neutral" / "temperror" / "permerror" ; an indication of the results of the attempt to ; authenticate the senderheaderspec = ptype CWFS "." CWFS property CWFS "=" CFWS value ; an indication of which property of the message ; was evaluated by the authentication scheme being ; applied to yield the reported resultptype = "smtp" / "header" / "body" / "policy" ; indicates whether the property being evaluated was ; a parameter to an [SMTP] command, or was a value taken ; from a messageheader,header field, or was some property ofthe; the message body, or some other property evaluated by ; the receiving MTA property = token ; if "ptype" is "smtp", this indicates which [SMTP] ; command provided the value which was evaluated by the ; authentication scheme being applied; if "ptype" is ; "header", this indicates from which header field thevalue; value being evaluated was extracted; if "ptype" is ; "body", this indicates the offset into the body at which ; content of interest was detected; if "ptype" is "policy" ; then this indicates the name of the policy which caused ; this header field to be added (see below) value = [CFWS] token [CFWS] / mailbox ; the value extracted from the message property defined ; by the "ptype.property" construction; if the valueis;intended ; to identifyidentifies a mailbox, then it is a "mailbox" ; as defined in section 3.4 of[MAIL] The "token" is as defined in[MAIL]; Kucherawy Expires January 27, 2008 [Page 7] Internet-Draft Authentication-Results Header July 2007 ; "mailbox" allows CFWS The "token" is as defined in Appendix A of[MIME] [7].[MIME]. See Section 2.3 for a description of the "authres-id" element. The list of commands eligible for use with the "smtp" ptype can be found in [SMTP][9]and subsequent amendments. "CFWS" is as defined in section 3.2.3 of[MAIL] [6].[MAIL]. The "ptype" and "property" values used by each authentication method should be defined in the specification for that method (or its amendments).Kucherawy Expires November 20, 2007 [Page 6] Internet-Draft Authentication-Results Header May 2007The "ptype" and "property" are case-insensitive. A "ptype" value of "policy" indicates a policy decision about the message not specific to a property of the message that could be extracted. For example, if a method would normally report a "ptype.property" of "header.From" and no From: header field was present, the method can use "policy" to indicate that no conclusion about the authenticity of the message could be reached. If the parsed "ptype.property" construction clearly identifies a mailbox (in particular, smtp.mail, smtp.rcpt, header.from, header.sender), then the "value" MUST be a "mailbox". Other properties (e.g. smtp.helo) may be evaluated, but the property MUST still be expressed as a "token" for simplified parsing. 2.3. Authentication Identifier Fields Every Authentication-Results header field MUST have an authentication identifier field ("authres-id" above) which is a single result identifier. This is similar in syntax to a fully-qualified domain name. The authentication identifier field provides a unique identifier that refers to the authenticating service within a given mail administrative domain. The uniqueness of the identifier is guaranteed by the mail administrative domain that generates it and must pertain to exactly that one mail administrative domain. This identifier is intended to be machine-readable and not necessarily meaningful to users. MUAs may use this identifier to determine whether or not the data contained in an Authentication-Results header field can be trusted. The mail administrative domain's unique domain name MUST be used as Kucherawy Expires January 27, 2008 [Page 8] Internet-Draft Authentication-Results Header July 2007 the last portion of the identifier. Examples of valid authentication identifiers are mail.example.org, engineering.example.edu and ms1.newyork.example.com. 2.4. Result Values The six possible values of the "result" are: pass: The message passed the authentication tests. (This may require accessing an authentication policy of some kind published by the sending domain.)fail:hardfail: The message failed the authentication tests. (This may require accessing an authentication policy of some kind published by the sending domain.) softfail: The message failed the authentication tests, and the authentication method has either an explicit (published by the sending domain) or implicit policy, but the policy being used doesn't require successful authentication of all messages from thatdomain, and the message failed the authentication tests.domain. neutral: The authentication method completed without errors, but was unable to reach either a positive or negative result about the message. temperror: A temporary (recoverable) error occurred attempting to authenticate the sender; either the process couldn't be completed locally, or (for methods requiring a policy to be accessed) there was a temporary failure retrieving the sending domain's policy. A later retry may produce a more final result. permerror: A permanent (unrecoverable) error occurred attempting to authenticate the sender; either the process couldn't be completed locally, or (for methods requiring a policy to be accessed) there was a permanent failure retrieving the sending domain's policy. A later retry is unlikely to yield a final result. New methods not specified in this document MUST indicate which of these should be returned when exceptions such as syntax errors areKucherawy Expires November 20, 2007 [Page 7] Internet-Draft Authentication-Results Header May 2007detected.Kucherawy Expires November 20, 2007 [Page 8] Internet-Draft Authentication-Results Header May 2007 3.2.5. Definition Of Initial Methods As they are currently existing specifications for sender authentication, it is appropriate to define an authentication method identifier for each of[AUTH] [1], [DKIM] [3], [SPF] [10] and[AUTH], [DKIM], [DOMAINKEYS], [SENDERID][8].and Kucherawy Expires January 27, 2008 [Page 9] Internet-Draft Authentication-Results Header July 2007 [SPF]. Therefore, the authentication method identifiers "auth", "dkim","spf" and"domainkeys", "senderid" and "spf" respectively are hereby defined for MTAs applying those specifications for e-mail sender authentication.Kucherawy Expires November 20, 2007 [Page 9] Internet-Draft Authentication-Results Header May 2007 4. Adding The Header To A Message This specification makes no attempt to evaluate the relative strengths of various senderSee Section 6 for details. 2.6. Extension Fields Additional authenticationmethodsmethod identifiers may be defined in the future by later revisions or extensions to this specification. Extension identifiers beginning with "x-" will never be defined as standard fields; such names are reserved for experimental use. Method identifiers NOT beginning with "x-" MUST be registered with the Internet Assigned Numbers Authority (IANA) and published in an RFC. See Section 6 for further details. Extension identifiers may be defined for the following reasons: 1. To allow additional information from emergent authentication systems to be communicated to MUAs. The names of such identifiers should reflect the name of the method being defined, but should not be needlessly long. 2. To allow the creation of "sub-identifiers" which indicate different levels of authentication and differentiate between their relative strengths, e.g. "auth1-weak" and "auth1-strong". Authentication method implementors are encouraged to provide adequate information, via [MAIL] comments if necessary, to allow an MUA developer to understand or relay ancilliary details of authentication results. For example, if it might be of interest to relay what data was used to perform an evaluation, such information could be relayed as a comment in the header field, such as: Authentication-Results: mx.example.com; foo=pass bar.baz=blob (2 of 3 tests OK) Kucherawy Expires January 27, 2008 [Page 10] Internet-Draft Authentication-Results Header July 2007 3. Adding The Header To A Message This specification makes no attempt to evaluate the relative strengths of various sender authentication methods that may become available. As such, the order of the presented authentication methods and resultsare not relevant since ultimatelyMUST NOT be used to determine the importanceonor strength of any given method overanother is the decision ofanother. Instead, the MUAthat is interpretingmust interpret thevalueresult ofthe header. The "method" MUST refer to an authenticationeach methoddeclared in this memo, or in a subsequent one, orbased on its knowledge of what that method evaluates. The "method" MUST refer to an authentication methodname assigned by IANA.declared in the IANA registry. See Section 6 for further information. An MTA compliant with this specification MUST add this header field (after performing one or more sender authentication tests) to indicate at which host the test was done, which test got applied and what the result was. If an MTA applies more than one such test, it MUST either add this header field once per test, or one header field indicating all of the results. An MTA MUST NOT add a result to an existing header.An MTA adding this header in either form MUST use its own hostname only. It MUST be a fully-qualified domain name.For security reasons,ana border MTA conforming to this specification MUSTremove any discovered instance of this header for which the "hostname" is its own, i.e. headers which claim to be from the MTA but were added before the mail arrived at the MTA for processing. A border MTA SHOULD alsodelete any discovered instance of this header field which claims to have been added within its trust boundary. For example, a border MTAat mx.example.comfor example.com receiving a message from outside of its mail domain MUST delete any instance of this headerclaiming to come from mx.example.com and SHOULD delete any instance of thisfield bearing an authentication identifier indicating the headerclaiming to come from any host infield was added within example.com prior to adding its ownheaders. This applies in both directions so that hosts outside the domain cannot claim results MUAs inside the domain might trust.header fields. However, care must be taken not to removeheadersheader fields added on messageswhichthat remain entirely within the originator's trust boundary(i.e. local-to-local(e.g. local- to-local mail). A "border MTA" in this discussion is considered to be the first MTA which is listed as a mail exchanger (MX) for the recipient domain. An MTA MAY add this header field containing only the"hostname"authentication identifier portion toexplicitlyindicate explicitly that no sender authentication schemes were applied prior to delivery of this message.4.1.3.1. Header Position and Interpretation In order to ensure non-ambiguous results and avoid the impact of falseheaders,header fields, an MUA SHOULD NOT interpret this header field unless specifically instructed to do so by the user. That is, this interpretation should not be "on by default". Naturally then, users would not activateKucherawy Expires November 20, 2007 [Page 10] Internet-Draft Authentication-Results Header May 2007such a feature unless they are certain the header field will be added by the receiving MTA that accepts the mailwhichthat Kucherawy Expires January 27, 2008 [Page 11] Internet-Draft Authentication-Results Header July 2007 is ultimately read by the MUA, and instances of the header field appearing to be from within the trust domain but actually added by foreign MTAs will be removed before delivery. Furthermore, an MUASHOULD NOT interpret this header unless the hostname it bears appears to be one within its own trust domain as configured by the user. This header field SHOULD be treated as though it were a trace header field as defined in section 3.6 of [MAIL] [6], and hence SHOULD not be reordered and SHOULD be prepended to the message, so that there is generally some indication upon delivery of where in the chain of handling MTAs the sender authentcation was done. Further discussion of this can be found in the Security Considerations section below. 4.2. Extension Fields Additional authentication method identifiers may be defined in the future by later revisions or extensions to this specification. Extension identifiers beginning with "x-" will never be defined as standard fields; such names are reserved for experimental use. Method identifiers NOT beginning with "x-" MUST be registered with the Internet Assigned Numbers Authority (IANA) and published in an RFC. Extension identifiers may be defined for the following reasons: 1. To allow additional information from emergent authentication systems to be communicated to MUAs. The names of such identifiers should reflect the name of the method being defined, but should not be needlessly long. 2. To allow the creation of "sub-identifiers" which indicate different levels of authentication and differentiate between their relative strengths, e.g. "auth1-weak" and "auth1-strong". Authentication method implementors are encouraged to provide adequate information, via [MAIL] comments if necessary, to allow an MUA developer to understand or relay ancilliary details of authentication results. For example, ifSHOULD NOT interpret this header field unless the hostname itmightbears appears to beof interestone within its own trust domain as configured by the user. An MUA should not reveal these results torelay whatnaive end users unless the results are accompanied by, at a minimum, some associated reputation data about the sender that wasused to perform an evaluation, such information couldauthenticated. As stated in Section 2.1, this header field SHOULD berelayedtreated as though it were acommenttrace header field as defined in section 3.6 of [MAIL], and hence MUST not be reordered and MUST be prepended to the message, so that there is generally some indication upon delivery of where in theheader, such as: Authentication-Results: mx.example.com; foo=pass (2chain of3 tests OK)handling MTAs the sender authentcation was done. Further discussion of this can be found in the Security Considerations section below. Kucherawy ExpiresNovember 20, 2007January 27, 2008 [Page11]12] Internet-Draft Authentication-Results HeaderMayJuly 20075.4. Discussion This section discusses various implementation issues not specifically related to security. Security issues are discussed in a later section.5.1. Legacy MUAs Implementors4.1. Removing The Header As specified in Section 3, instances of thisproposal should be awareheader field added by outside MTAs thatmany MUAs are unlikelyappear to come from inside an MTA's trust boundary must beretrofit to support the new header and its semantics.removed. In theinterests of convenience and quicker adaptation, a delivery MTA might want to consider adding things that are processed by existing MUAs as well as the header defined by this specification. One suggestion is to provide a Priority: header with a value that reflects the strengthcase ofthe authentication that was accomplished, e.g. "low" for weakmessages signed using [DKIM] orno authentication, "normal"other message signing methods that sign headers, this may invalidate one or"high" for good authentication. Certainly some modern MUAs can filter basedmore signature on thecontentmessage if they included the header field to be removed at the time ofthis header, but as theresigning. This behaviour iskeen interestdesirable since there's no value inhaving MUAs make some kind of graphical representation of this header's meaning, other interim means of doing so may be necessary whilevalidating the signature on a message with forged headers. However, signing agents MAY elect to omit these header fields from signing to avoid thisproposal is adopted.situation. Kucherawy ExpiresNovember 20, 2007January 27, 2008 [Page12]13] Internet-Draft Authentication-Results HeaderMayJuly 20076.5. Conformance and Usage Requirements An MTA or gateway conforms to this specification if it applies one or more sender authentication mechanisms and inserts a header field corresponding to this specification after doing so and prior to delivery. MTAs that are relaying mail rather than deliveringitit, i.e. are not part of an intended recipient's trust boundary, MAY perform sender authentication or even take actions based on the results found, butMUSTSHOULD NOT addaan "Authentication-Results" header field if relayingrather(rather than rejecting or discarding at thegateway.gateway). Conversely, an MTA doing local delivery and some form of sender authentication MUST add this header field prior to delivery the message in order to be compliant. A minimal implementationwhichthat does at least one sender authentication check will add the header field defined by this memo prior to invoking local delivery procedures. This specification places no restrictions on the processing of theheader'sheader field's contents by user agents or distribution lists. It is presented to those packages solely for their own information. Kucherawy ExpiresNovember 20, 2007January 27, 2008 [Page13]14] Internet-Draft Authentication-Results HeaderMayJuly 20077.6. IANA Considerations7.1.This specification introduces some new namespaces that will be registered with IANA. In all cases, new entries are assigned only for values that have been documented in a published RFC that has IETF Consensus, per [IANA-CONSIDERATIONS]. 6.1. The Authentication-Results: header Per[IANA-HEADERS] [5],[IANA-HEADERS], the "Authentication-Results:" header field is added to the IANA Permanent Message Header Field Registry. The following is the registration template: Header field name: Authentication-Results Applicable protocol: mail ([RFC2822]) Status: Standard Author/Change controller: IETF Specification document(s): [TBD] Related information: Requesting review of any proposed changes and additions to this field is recommended.7.2.6.2. Method RegistryFollowing the policies outlined in [IANA-CONSIDERATIONS] [4],As stated above, names of sender authentication methods supported by this specification must be registered withIANA under the IETF Consensus method,IANA, with the exception of experimental names as described above. Each method must register a name, theRFC whichspecification that defines it,whichone or more "ptype"isvalues appropriate for use with that method, and which "property" value(s) should be reported by that method. The initial set of entries in this registry is as follows:+------------+------+--------+----------------------------++------------+---------+--------+----------------------------------+ | Method |RFCdefined | ptype | property |+------------+------+--------+----------------------------++------------+---------+--------+----------------------------------+ | auth |2554RFC2554 | smtp | auth |+------------+------+--------+----------------------------++------------+---------+--------+----------------------------------+ |domainkeysdkim |TBDRFC4871 | header |From or Sendervalue of signature "i" tag |+------------+------+--------+----------------------------++------------+---------+--------+----------------------------------+ |dkimdomainkeys |4871RFC4870 | header |iFrom or Sender |+------------+------+--------+----------------------------++------------+---------+--------+----------------------------------+ | senderid |4406RFC4406 | header | name of header field used by PRA |+------------+------+--------+----------------------------+| | | smtp | from (envelope sender) | +------------+---------+--------+----------------------------------+ | spf |4408RFC4408 | smtp | from |+------------+------+--------+----------------------------++------------+---------+--------+----------------------------------+ Kucherawy ExpiresNovember 20, 2007January 27, 2008 [Page14]15] Internet-Draft Authentication-Results HeaderMayJuly 20078.7. Security Considerations The following security considerations apply when applying or processing the "Authentication-Results"header: 8.1.header field: 7.1. Non-conformant MTAs An MUA thatis aware of this specification whichaccesses a mailbox whose mail is handled by anon-conformant MTA is in a position tonon- conformant MTA, and understands Authentication-Results header fields, could potentially make false conclusions based on forgedheaders.header fields. A malicious user or agent could forge a header field using the destination MX for a receiving domain as the hostname token in the value of the header, and with the rest of the value claim that the sender was properly authenticated. The non-conformant MTA would fail to strip the forgedheader,header field, and the MUA could inappropriately trust it. It is for this reason an MUA SHOULD NOT have processing of the "Authentication-Results" header field enabled by default; instead itmustSHOULD be ignored, at least for the purposes of enacting filtering decisions, unless specifically enabled by the user after verifying that the MTA is compliant. It is acceptable to have an MUA aware of this standard, but have an explicit list of hostnames whose "Authentication-Results"headersheader fields aretrustworthy, howevertrustworthy; however, this list SHOULD initially be empty. Proposed alternate solutions to this problem are nascent. Possibly the simplest is a digital signature on the headerwhichfield that can be verified by a posted public key. Another would be a means to interrogate the MTA that added the header field to see if it is actually providing any sender authentication services and saw the message inquestion.question, but this isn't especially palatable. In either case, a method needs to exist to verify that the hostwhichthat appears to have added the header field (a) actually did so, and (b) is legitimately adding that header field for this delivery.8.2.7.2. Header Position Despite the requirements of[MAIL] [6], headers[MAIL], header fields can sometimes be reordered enroute by intermediate MTAs. The goal of requiring header field addition only at the top of a message is an acknowledgement that some MTAs do reorderheaders,header fields, but most do not. Thus, in the general case, there will be some indication of which MTAs (if any) handled the message after the addition of the header field defined here. Kucherawy ExpiresNovember 20, 2007January 27, 2008 [Page15]16] Internet-Draft Authentication-Results HeaderMayJuly 20079.8. References 8.1. Normative References [MAIL] Resnick, P., "Internet Message Format", RFC 2822, April 2001. [MIME] Freed, N. and N. Borenstein, "Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies", RFC 2045, November 1996. 8.2. Informative References[1][AUTH] Myers, J., "SMTP Service Extension for Authentication", RFC 2554, March 1999.[2] Delany, M., "Domain-based Email Authentication Using Public Keys Advertised in the DNS (DomainKeys)", RFC RFC-DK, May 2007. [3][DKIM] Allman, E., Callas, J., Delany, M., Libbey, M., Fenton, J., and M. Thomas, "DomainKeys Identified Mail (DKIM) Signatures", RFC 4817, May 2007.[4][DOMAINKEYS] Delany, M., "Domain-based Email Authentication Using Public Keys Advertised in the DNS (DomainKeys)", RFC 4870, May 2007. [I-D.DRAFT-CROCKER-EMAIL-ARCH] Crocker, D., "Internet Mail Architecture", I-D draft-crocker-email-arch, May 2007. [IANA-CONSIDERATIONS] Alvestrand, H. and T. Narten, "Guidelines for Writing an IANA Considerations Section in RFCs", RFC 2434, October 1998.[5][IANA-HEADERS] Klyne, G., Nottingham, M., and J. Mogul, "Registration Procedures for Message Header Fields", RFC 2434, September 2004.[6] Resnick, P., "Internet Message Format", RFC 2822, April 2001. [7] Freed, N. and N. Borenstein, "Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies", RFC 2045, November 1996. [8][SENDERID] Lyon, J. and M. Wong, "Sender ID: Authenticating E-Mail", RFC 4406, April 2006.[9][SMTP] Klensin, J., "Simple Mail Transfer Protocol", RFC 2821, April 2001.[10][SPF] Wong, M. and W. Schlitt, "Sender Policy Framework (SPF) for Authorizing Use of Domains in E-Mail, Version 1", Kucherawy Expires January 27, 2008 [Page 17] Internet-Draft Authentication-Results Header July 2007 RFC 4408, April 2006. Kucherawy ExpiresNovember 20, 2007January 27, 2008 [Page16]18] Internet-Draft Authentication-Results HeaderMayJuly 2007 Appendix A. Acknowledgements The author wishes to acknowledge the following for their review and constructive criticism of thisproposal: Tony Hansen of AT&T, Mark Delany and Miles Libbey of Yahoo! Inc., Jim Fentonproposal: Eric Allman, Mark Delany, Jim Fenton, Tony Hansen, Paul Hoffman, John Levine, Miles Libbey, S. Moonesamy, Michael Thomas. Kucherawy Expires January 27, 2008 [Page 19] Internet-Draft Authentication-Results Header July 2007 Appendix B. Legacy MUAs Implementors of this proposal should be aware that many MUAs are unlikely to be retrofit to support the new header field and its semantics. In the interests of convenience and quicker adaptation, a delivery MTA might want to consider adding things that are processed by existing MUAs in addition to the Authentication-Results header field. One suggestion is to include a Priority: header field, on messages that don't already have such a header field, containing a value that reflects the strength of the authentication that was accomplished, e.g. "low" for weak or no authentication, "normal" or "high" for good or strong authentication. Certainly some modern MUAs can filter based on the content of this header field, but as there is keen interest in having MUAs make some kind ofCisco, and Eric Allmangraphical representation ofSendmail, Inc. Kucherawy Expires November 20, 2007 [Page 17] Internet-Draft Authentication-Results Header May 2007 Appendix B. Public Discussion Public discussionthis header field's meaning, other interim means of doing so may be necessary while thisproposed specification is handled via the mail-vet-discuss@mipassoc.org mailing list. The listproposal isopen. Access to subscription forms and to list archives can be found at http://mipassoc.org/mailman/listinfo/mail-vet-discuss.adopted. Kucherawy ExpiresNovember 20, 2007January 27, 2008 [Page18]20] Internet-Draft Authentication-Results HeaderMayJuly 2007 Appendix C. Authentication-Results Examples This section presents some examples of the use of this header field to indicate authentication results. C.1. Trivial case; header field not present The trivial case: From: sender@example.com Received: from mail-router.example.com (mail-router.example.com [1.2.3.4]) by server.sendmail.com (8.11.6/8.11.6) with ESMTP id g1G0r1kA003489; Fri, Feb 15 2002 17:19:07 -0800 Date: Fri, Feb 15 2002 16:54:30 -0800 To: receiver@sendmail.com Message-Id: <12345.abc@example.com> Subject: here's a sample Hello! Goodbye! Example 1: Trivial case The "Authentication-Results" header field is completely absent. The MUA may make no conclusion about the validity of the message. This could be the case because the sender authentication services were not available at the time of delivery, or no service is provided, or the MTA is not in compliance with this specification. Kucherawy ExpiresNovember 20, 2007January 27, 2008 [Page19]21] Internet-Draft Authentication-Results HeaderMayJuly 2007 C.2. Nearly-trivial case; service provided, but no authentication done A message that was delivered by an MTAwhichthat conforms to this standard but provides no actual sender authentication service: Authentication-Results: mail-router.example.com From: sender@example.com Received: from mail-router.example.com (mail-router.example.com [1.2.3.4]) by server.sendmail.com (8.11.6/8.11.6) with ESMTP id g1G0r1kA003489; Fri, Feb 15 2002 17:19:07 -0800 Date: Fri, Feb 15 2002 16:54:30 -0800 To: receiver@sendmail.com Message-Id: <12345.abc@example.com> Subject: here's a sample Hello! Goodbye! Example 2: Header present but no authentication done The "Authentication-Results" header field is present, indicating that the delivering MTA (which is named in the value of theheader)header field) conforms to this specification. The absence of any method and result tokens indicates that no sender authentication was done. C.3. Service provided, authentication done A message that was delivered by an MTAwhichthat conforms to this standard and applied some sender authentication: Authentication-Results:mail-router.example.com smtp.auth=sender@example.com;mail-router.example.com; auth=pass (cram-md5) smtp.auth=sender@example.com From: sender@example.com Received: from dialup-1-2-3-4.example-isp.com (dialup-1-2-3-4.example-isp.com [1.2.3.4]) by mail-router.example.com (8.11.6/8.11.6) with ESMTP id g1G0r1kA003489; Fri, Feb 15 2002 17:19:07 -0800 Date: Fri, Feb 15 2002 16:54:30 -0800 To: receiver@sendmail.com Message-Id: <12345.abc@example.com> Subject: here's a sample Hello! Goodbye! Example 3: Header reporting results Kucherawy ExpiresNovember 20, 2007January 27, 2008 [Page20]22] Internet-Draft Authentication-Results HeaderMayJuly 2007 The "Authentication-Results" header field is present, indicating that the delivering MTA (which isnamedidentified in the value of theheader)header field) conforms to this specification. Furthermore, the sender authenticated herself/himself to the MTA via a method specified in [AUTH]. The actual method is identified in a header field comment after the method's result is indicated. The MUA could extract and relay this extra information if desired. C.4. Service provided, several authentications done, single MTA A message that was relayed inbound via a single MTAwhichthat conforms to thisstandardspecification and appliedtwothree different sender authentication checks: Authentication-Results:mail-router.example.com smtp.mail=sender@example.com;mail-router.example.com; auth=pass(cram-md5);(cram-md5) smtp.mail=sender@example.com; spf=pass smtp.mail=sender@example.com Authentication-Results:mail-router.example.com header.from=sender@example.com;mail-router.example.com; sender-id=pass header.from=sender@example.com From: sender@example.com Received: from mail-router.example.com (mail-router.example.com [1.2.3.4]) by dialup-1-2-3-4.example-isp.com (8.11.6/8.11.6) with ESMTP id g1G0r1kA003489; Fri, Feb 15 2002 17:19:07 -0800 Date: Fri, Feb 15 2002 16:54:30 -0800 To: receiver@sendmail.com Message-Id: <12345.abc@example.com> Subject: here's a sample Hello! Goodbye! Example 4: Headers reporting results from one MTA The "Authentication-Results" header field is present, indicating the delivering MTA (which isnamedidentified in the value of theheader)header field) conforms to this specification. Furthermore, the sender authenticated herself/himself to the MTA via a method specified in [AUTH], and bothSPF[SPF] andSender-ID[SENDERID] checks were done and passed. The MUA could extract and relay this extra information if desired. Two "Authentication-Results"headersheader fields are not requiredbecausesince themethods appliedsame host didnotallbase their results on the same propertyof themessage.checking. The authenticating agent could have consolidated all the results into one header field. Kucherawy ExpiresNovember 20, 2007January 27, 2008 [Page21]23] Internet-Draft Authentication-Results HeaderMayJuly 2007 C.5. Service provided, several authentications done, different MTAs A message that was relayed inbound by two different MTAswhichthat conform to thisstandardspecification and applied multiple sender authentication checks: Authentication-Results:auth-checker.example.comauth-checker.example.com; sender-id=pass header.from=sender@example.com;sender-id=pass; domainkeys=passdkim=pass (good signature) header.i=sender@example.com Received: from mail-router.example.com (mail-router.example.com [10.11.12.13]) by auth-checker.example.com (8.11.6/8.11.6) with ESMTP id i7PK0sH7021929; Fri, Feb 15 2002 17:19:22 -0800 Authentication-Results:mail-router.example.com smtp.mail=sender@example.com;mail-router.example.com; auth=pass(cram-md5);(cram-md5) smtp.mail=sender@example.com; spf=fail smtp.mail=sender@example.com Received: from dialup-1-2-3-4.example-isp.com (dialup-1-2-3-4.example-isp.com [1.2.3.4]) by mail-router.example.com (8.11.6/8.11.6) with ESMTP id g1G0r1kA003489; Fri, Feb 15 2002 17:19:07 -0800DomainKey-Signature:DKIM-Signature: a=rsa-sha1; s=gatsby;d=sendmail.com;d=example.com; c=simple; q=dns; b=EToRSuvUfQVP3Bkz ... rTB0t0gYnBVCM= From: sender@example.com Date: Fri, Feb 15 2002 16:54:30 -0800 To: receiver@sendmail.com Message-Id: <12345.abc@example.com> Subject: here's a sample Hello! Goodbye! Example 5: Headers reporting results from multiple MTAs The "Authentication-Results" header field is present, indicating conformance to this specification. It is present twice because two different MTAs in the chain of delivery did authentication tests. The first, "mail-router.example.com" reports that [AUTH] andSPF[SPF] were bothusedused, and [AUTH] passed butSPF[SPF] failed. In the [AUTH] case, additional data is provided in the comment field, which the MUA can choose to render if desired. The second MTA,"auth- checker.example.com",identifying itself as "auth-checker.example.com", reports that it did aSender-ID[SENDERID] test and aDomainKeys [2][DKIM] test, both of which passed. Again, additional data about one of the tests is provided as a comment, which the MUA may choose to render. Kucherawy ExpiresNovember 20,January 27, 2008 [Page 24] Internet-Draft Authentication-Results Header July 2007 Since different hosts did the two sets of authentication checks, the header fields cannot be consolidated in this example. Kucherawy Expires January 27, 2008 [Page 25] Internet-Draft Authentication-Results Header July 2007 Appendix D. Public Discussion [REMOVE BEFORE PUBLICATION] Public discussion of this proposed specification is handled via the mail-vet-discuss@mipassoc.org mailing list. The list is open. Access to subscription forms and to list archives can be found at http://mipassoc.org/mailman/listinfo/mail-vet-discuss. Kucherawy Expires January 27, 2008 [Page22]26] Internet-Draft Authentication-Results HeaderMayJuly 2007 Author's Address Murray S. Kucherawy Sendmail, Inc.64256475 Christie Ave., Suite400350 Emeryville, CA 94608 US Phone: +1 510 594 5400 Email: msk+ietf@sendmail.com Kucherawy ExpiresNovember 20, 2007January 27, 2008 [Page23]27] Internet-Draft Authentication-Results HeaderMayJuly 2007 Full Copyright Statement Copyright (C) The IETF Trust (2007). This document is subject to the rights, licenses and restrictions contained in BCP 78, and except as set forth therein, the authors retain all their rights. This document and the information contained herein are provided on an "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM 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. Intellectual Property The IETF takes no position regarding the validity or scope of any Intellectual Property Rights or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; nor does it represent that it has made any independent effort to identify any such rights. Information on the procedures with respect to rights in RFC documents can be found in BCP 78 and BCP 79. Copies of IPR disclosures made to the IETF Secretariat and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this specification can be obtained from the IETF on-line IPR repository at http://www.ietf.org/ipr. The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights that may cover technology that may be required to implement this standard. Please address the information to the IETF at ietf-ipr@ietf.org. Acknowledgment Funding for the RFC Editor function is provided by the IETF Administrative Support Activity (IASA). Kucherawy ExpiresNovember 20, 2007January 27, 2008 [Page24]28] ----