﻿<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rfc SYSTEM "RFC2629.dtd"[]>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc strict="no"?>
<?rfc toc="yes"?>
<?rfc tocdepth="2"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>
<?rfc inline="yes"?>
<?rfc topblock="yes" ?>
<?rfc autobreaks="yes" ?>

<rfc  category="exp" docName="draft-ietf-dmarc-sender-00"
    ipr="trust200902" submissionType="IETF" updates="7489">

    <front>
        <title abbrev="DMARC">DMARC Use of the RFC5322.Sender Header
            Field</title>
        <author fullname="Dave Crocker" initials="D." surname="Crocker" >
            <organization>Brandenburg InternetWorking</organization>
            <address>
                <email>dcrocker@bbiw.net</email>
            </address>
        </author>
        <date year="2020"/>
        <area>Applications and Real-Time</area>
        <workgroup>DMARC</workgroup>
        <keyword>domain</keyword>
        <keyword>email</keyword>
        <keyword>security</keyword>
        <keyword>messaging</keyword>
        <keyword>dkim</keyword>
        <keyword>spf</keyword>
        <keyword>authentication</keyword>
        <keyword>reporting</keyword>
        <keyword>conformance</keyword>
        <abstract>
            <t>Internet mail defines the RFC5322.From field to indicate the
                author of the message's content and the RFC5322.Sender field to
                indicate who initially handled the message. The RFC5322.Sender
                field is optional, if it has the same information as the
                RFC5322.From field. That is, when the RFC5322.Sender field is
                absent, the RFC5322.From field has conflated semantics, with
                both a handling identifier and a content creator identifier.
                This was not a problem, until development of stringent
                protections on use of the RFC5322.From field. It has prompted
                Mediators, such as mailing lists, to modify the RFC5322.From
                field, to circumvent mail rejection caused by those protections. </t>

            <t>This affects end-to-end behavior of email, between the author and
                the final recipients, because mail from the same author is not
                treated the same, depending on what path it followed. In effect,
                the RFC5322.From field has become dominated by its role as a
                handling identifier. </t>

            <t>The current specification augments use of the RFC5322.From field,
                by enhancing DMARC to also use the RFC5322.Sender field. This
                preserves the utility of RFC5322.From field while also
                preserving the utility of DMARC.</t>
        </abstract>
    </front>

    <middle>
        <section title="Introduction">
            <t>Internet mail conducts asynchronous communication from an author
                to one or more recipients, and is used for ongoing dialogue
                amongst them. Email has a long history of serving a wide range
                of human uses and styles, within that simple framework, and the
                mechanisms for making email robust and safe serve that sole
                purpose.</t>

            <t> Internet mail defines the RFC5322.From field to indicate the
                author of the message's content and the RFC5322.Sender field to
                indicate who initially handled the message. <xref
                    target="Mail-Fmt"/> The RFC5322.Sender field is optional, if
                it has the same information as the RFC5322.From field. That is,
                when the RFC5322.Sender field is absent, the RFC5322.From field
                has conflated semantics, as both a handling identifier and a
                content creator identifier. These fields were initially defined
                in <xref target="RFC733"/> and making the redundant
                RFC5322.Sender field optional was a small, obvious optimization,
                in the days of slower communications, expensive storage and less
                powerful computers.</t>

            <t>The dual semantics of the RFC5322.From field was not a problem,
                until development of stringent protections were put in place, on
                the use of the RFC5322.From field. It has prompted Mediators,
                such as mailing lists, to modify the RFC5322.From field, to
                circumvent mail rejection caused by those protections. This
                affects end-to-end usability of email, between the author and
                the final recipients. If the mailing list does not modify the
                RFC5322.From field, there is the risk that the message will be
                rejected or quarantined by the receiving system. However, if the
                mailing list does modify the RFC5322.From field, mail received
                from the same author will be treated differently by the
                recipient's software, depending on what path the message
                followed. </t>

            <t>By way of example, mail by: <figure>
                    <artwork align="left">Author Name &lt;user@example.com&gt;</artwork>
                </figure> which is sent directly to a recipient, will show the
                user's display name correctly and can correctly analyze and
                aggregate mail from that user, based on their email address.
                However if the user sends through a mailing list, and the
                mailing list conducts a common form of RFC5322.From
                modification, needed to bypass enforcement of stringent
                authentication policies, then the received message might have a
                RFC5322.From field along the lines of <figure>
                    <artwork align="left">Author Name via Listname &lt;listname@list.example.com&gt;</artwork>
                </figure> The change inserts an operational address, for the
                Mediator, into the RFC5322.From field, and distorts the field's
                display-name, as a means of recording the modification. The
                result is that the recipient's software will see the message as
                being from an entirely different author and will handle it
                separately. Mediators might create a Reply-To: field, with the
                original RFC5322.From field email address. While this
                facilitates a recipient's responding to the original author, it
                does nothing to aid other processing done by the recipient's MUA
                based on what it believes is the author's address or original
                display-name.</t>

            <t>Because the current email protection behavior involves the
                RFC5322.From field, and pertain to the human author, it is
                common to think that the issue, in protecting the field's
                content, is behavior of the human recipient. However there is no
                indication that the enforced values in the RFC5322.From field
                alter end-user behavior. In fact there is a long train of
                indication that it does not. Rather, the meaningful protections
                actually operate at the level of the receiving system's mail
                filtering engine, which decides on the dispostion of received
                mail. </t>

            <t>In effect, the RFC5322.From field has become dominated by its
                role as a handling identifier. This specification defines
                enhancement for use of the RFC5322.Sender field by <xref
                    target="DMARC"/>. It is designed with the view that
                enhancement of standards works best as incremental additions.
                DMARC functionality is preserved, as is long-standing recipient
                email usability..</t>

            <t>Teminology and architectural details in this document are
                incorporated from <xref target="Mail-Arch"/>.</t>

            <t>Discussion of this draft is directed to the dmarc@ietf.org
                mailing list.</t>

            <t><list style="hanging">
                    <t hangText="COMMENT:  ">The original version of this
                        specification essentially sought to have the Sender:
                        header field treated as an alternative to the From:
                        header field. Unfortunately this suffers a fatal
                        problem, in the face of established DMARC use. </t>
                    <t>If: <list style="symbols">
                            <t>the original From: field is covered by DMARC,
                                and</t>
                            <t>the message goes through a Mediator that breaks
                                aligned authentication, and </t>
                            <t>the receiving DMARC engine only uses the original
                                version of DMARC,</t>
                        </list>then it will produce a DMARC fail. </t>
                    <t>It does not appear to be possible to handle this case
                        safely, except by modifying the From: header field so
                        that it does not trigger an alignment failure. Unless
                        there comes a time at which concern for this case is
                        eliminated, Mediators will continue to have to deal with
                        this, such as by modifying the From: field. </t>
                    <t>To that end, this version of the specification has been
                        modified, to make Sender: an <spanx>additional</spanx>
                        DMARC alignment possibility, rather than an alternative
                        one. </t>
                </list></t>

        </section>

        <section title="Overview">
            <t>This specification defines modifications to DMARC, to add use of
                the RFC5322.Sender header field, as a possible second source of
                DMARC validation and policy information. The changes are:<list
                    style="symbols">
                    <t>A tag is added to the DMARC DNS record, to flag support
                        for this enhancement, indicating that valid mail
                        originating from this domain will have an aligned
                        RFC5322.Sender field. </t>
                    <t>The message originator creates a RFC5322.Sender field
                        that is identical to the RFC5322.From field, and
                        therefore provides DMARC alignment. This can permit
                        DMARC to validate, even when it fails to validate, based
                        on the From: field.</t>
                    <t>Receiving systems supporting the enhancement check for
                        the RFC5322.Sender domain's DNS DMARC record. <list
                            style="symbols">
                            <t>If there is a record and it contains the
                                enhancement flag, DMARC evaluation is performed
                                on that domain name.</t>
                            <t>DMARC evaluation is also performed, as before,
                                using the RFC5322.From domain name.</t>
                        </list></t>
                </list></t>

            <t>The enhancement preserves existing DMARC operation, but permits
                DMARC success in some scenarios that either used to fail or that
                produce Mediator actions to bypass DMARC. The following table
                shows DMARC interactions between original vs. enhanced
                originators and receivers: </t>

            <texttable style="full" title="DMARC Original/Enhanced Interactions">
                <ttcol>\Originate/ || - Receive --></ttcol>
                <ttcol align="center">Original</ttcol>
                <ttcol align="center">Enhanced</ttcol>
                <c>RFC5322.From</c>
                <c>RFC5322.From</c>
                <c>RFC5322.From</c>
                <c>RFC5322.From + RFC5322.Sender</c>
                <c>RFC5322.From</c>
                <c>RFC5322.Sender</c>

            </texttable>
        </section>

        <section title="Domain Owner Actions">
            <t>For a domain that supports the use of RFC5322.Sender field
                evaluation for DMARC, the owner specifies an additional DMARC
                Policy Record tag:<list style="hanging">
                    <t hangText="snd: ">When present, this tag signals that mail
                        originated by the domain owner MAY have a RFC5322.Sender
                        field, as well as a RFC5322.From field and that
                        evaluation MAY be based on the domain name in the
                        RFC5322.Sender field.</t>
                </list></t>
        </section>

        <section title="Mail Originator Actions">
            <t>Mail originators, for domains supporting enhanced DMARC, can
                create a RFC5322.Sender field that is a duplicate of the
                RFC5322.From field. They can, instead, create one that has a
                separate address, such as when the originator is an independent
                agent, acting on behalf of the content creator. </t>
        </section>

        <section title="Mail Mediator Actions">
            <t>Mediators, such as mailings lists, are independent agents, acting
                on behalf of authors and recipients. They take delivery of
                messages and then repost them, typically with modification. In
                response to the use of DMARC, they often modify the RFC
                5332.From field. They can use this Sender-based mechanism to
                generate their own DMARC-aligned authentication, based on the
                RFC5322.Sender field.</t>
        </section>

        <section title="Mail Receiver Actions">
            <section title="Extract RFC5322.Sender and RFC5322.From Domains">
                <t>The domain in the RFC5322.Sender field and the domain in the
                    RFC5322.From field are extracted as the domains to be
                    evaluated by DMARC. </t>
            </section>

            <section title="Determine Handling Policy">

                <t>The following procedure can result in DMARC policy
                    information based on the rfc5322.From, or the
                    rfc5322.Sender, or based on both header fields. The final
                    choice for using this information to determine message
                    disposition resides with the receiving system.</t>

                <t>To arrive at a policy for an individual message, Mail
                    Receivers MUST perform the following actions or their
                    semantic equivalents. Steps 2-3 MAY be done in parallel,
                    whereas steps 4 and 5 require input from previous steps.</t>

                <t>The steps are as follows:<list style="numbers">

                        <t>
                            <list style="hanging">

                                <t hangText="Sender: ">Extract the
                                    RFC5322.Sender domain from the message.</t>
                                <t>Query the DNS for a DMARC policy record.</t>
                                <t>Perform remaining, numbered steps, if one is
                                    found and it contains an "snd" tag. </t>
                                <t hangText="AND"/>
                                <t hangText="From: ">Extract the RFC5322.From
                                    domain from the message.</t>
                                <t>Query the DNS for a DMARC policy record </t>
                                <t>Perform remaining, numbered steps, if one is
                                    found.</t>
                                <t hangText="Terminate: ">Otherwise terminate
                                    DMARC evaluation.</t>
                            </list>
                        </t>

                        <t>Perform DKIM signature verification checks. A single
                            email could contain multiple DKIM signatures. The
                            results of this step are passed to the remainder of
                            the algorithm and MUST include the value of the "d="
                            tag from each checked DKIM signature.</t>

                        <t>Perform SPF validation checks. The results of this
                            step are passed to the remainder of the algorithm
                            and MUST include the domain name used to complete
                            the SPF check.</t>

                        <t>Conduct Identifier Alignment checks. With
                            authentication checks and policy discovery
                            performed, the Mail Receiver checks to see if
                            Authenticated Identifiers fall into alignment. If
                            one or more of the Authenticated Identifiers align
                            with the RFC5322.From (or with the RFC5322.Sender
                            field, if permitted by the domain owner) domain, the
                            message is considered to pass the DMARC mechanism
                            check. All other conditions (authentication
                            failures, identifier mismatches) are considered to
                            be DMARC mechanism check failures.</t>

                        <t>Apply policy. Emails that fail the DMARC mechanism
                            check MAY be disposed of in accordance with the
                            discovered DMARC policy of the Domain Owner.
                            Broadly, however, receivers typically do not
                            automatically follow such directives. Rather, they
                            apply complex evaluation rules, for which DMARC is
                            merely one (or more) sets of input data. To that
                            end, having a DMARC assessment for the RFC5322.From
                            field and another for the RFC5322.Sender field
                            merely add to their pool of data to consider.</t>
                    </list></t>

            </section>

        </section>

        <section title="Security Considerations">
            <t>This enhancement entails the same security issues as the basic
                DMARC service.</t>

        </section>

        <section title="IANA Considerations" toc="default">

            <t>None.</t>

        </section>

    </middle>

    <back>
        <references title="Normative References">
            <reference anchor="Mail-Fmt">
                <front>
                    <title>Internet Message Format</title>

                    <author fullname="Peter W.  Resnick" initials="P."
                        role="editor" surname="Resnick">
                        <organization> Qualcomm Incorporated</organization>
                    </author>

                    <date month="October" year="2008"/>
                </front>

                <seriesInfo name="RFC" value="5322"/>
            </reference>

            <reference anchor="Mail-Arch">
                <front>
                    <title>Internet Mail Architecture</title>
                    <author fullname="D. Crocker" initials="D."
                        surname="Crocker">
                        <organization>Brandenburg InternetWorking</organization>
                    </author>
                    <date year="2009" month="July"/>
                </front>
                <seriesInfo name="RFC" value="5598"/>
            </reference>

            <reference anchor="DMARC">
                <front>
                    <title>Domain-based Message Authentication, Reporting, and
                        Conformance (DMARC)</title>
                    <author fullname="M. Kucherawy" initials="M." role="editor"
                        surname="Kucherawy"/>
                    <author fullname="E. Zwicky" initials="E." role="editor"
                        surname="Zwicky"/>
                    <date month="March" year="2015"/>
                </front>
                <seriesInfo name="RFC" value="7489"/>
            </reference>

            <!--            <reference anchor="IANA">
                <front>
                    <title>Guidelines for Writing an IANA Considerations Section
                        in RFCs</title>
                    <author fullname="M. Cotton" initials="" surname="M. Cotton"/>
                    <author fullname="B. Leiba" initials="" surname="B. Leiba"/>
                    <author fullname="T. Narten" initials="" surname="T. Narten"/>
                    <date year="2017"/>
                </front>
                <seriesInfo name="I-D"
                    value="draft-leiba-cotton-iana-5226bis-11"/>
            </reference>-->

        </references>

        <references title="Informative References">

            <reference anchor="RFC733">
                <front>
                    <title>Standard for the Format of ARPA Network Text
                        Messages</title>
                    <author fullname="D. Crocker" initials="D."
                        surname="Crocker">
                        <organization>The Rand Corporation</organization>
                    </author>
                    <author fullname="J. J. Vittal" initials="J.J."
                        surname="Vittal">
                        <organization>Bolt Beranek and Newman
                            Inc.</organization>
                    </author>
                    <author fullname="Kenneth T. Pogran" initials="K.T."
                        surname="Pogran">
                        <organization>Massachusets Institute of
                            Technology</organization>
                    </author>
                    <author fullname="D. Austin Henderson, Jr." initials="D.A."
                        surname="Henderson">
                        <organization>Bolt Beranek and Newman
                            Inc.</organization>
                    </author>
                    <date day="21" month="November" year="1977"/>
                </front>
                <seriesInfo name="RFC" value="733"/>
            </reference>

        </references>

    </back>

</rfc>
