<?xml version="1.0" encoding="utf-8"?>
<!-- name="GENERATOR" content="github.com/mmarkdown/mmark Mmark Markdown Processor - mmark.miek.nl" -->
<rfc version="3" ipr="trust200902" docName="draft-ietf-dmarc-aggregate-reporting-32" submissionType="IETF" category="std" xml:lang="en" xmlns:xi="http://www.w3.org/2001/XInclude" obsoletes="7489" indexInclude="true" consensus="true">

<front>
<title abbrev="DMARC Aggregate Reporting">Domain-based Message Authentication, Reporting, and Conformance (DMARC) Aggregate Reporting</title><seriesInfo value="draft-ietf-dmarc-aggregate-reporting-32" stream="IETF" status="standard" name="Internet-Draft"></seriesInfo>
<author initials="A." surname="Brotman (ed)" fullname="Alex Brotman"><organization>Comcast, Inc.</organization><address><postal><street></street>
</postal><email>alex_brotman@comcast.com</email>
</address></author><date year="2025" month="March" day="17"></date>
<area>Application</area>
<workgroup>DMARC</workgroup>

<abstract>
<t>Domain-based Message Authentication, Reporting, and Conformance
(DMARC) allows for Domain Owners to request aggregate reports from receivers.
This report is an XML document, and contains extensible elements that allow for
other types of data to be specified later.  The aggregate reports can be
submitted by the receiver to the Domain Owner's specified destination as
declared in the associated DNS record.</t>
</abstract>

</front>

<middle>

<section anchor="introduction"><name>Introduction</name>
<t>A key component of DMARC <xref target="I-D.ietf-dmarc-dmarcbis"></xref> (Domain-based Message
Authentication, Reporting, and Conformance) is the ability for Domain Owners to
request that Mail Receivers provide various types of reports.  These reports allow
Domain Owners to have insight into which IP addresses are sending on their
behalf, and some insight into whether or not the volume may be legitimate.<br />
These reports expose information relating to the DMARC policy, as well as
the outcome of SPF (Sender Policy Framework) <xref target="RFC7208"></xref> &amp; DKIM
(DomainKeys Identified Mail) <xref target="RFC6376"></xref> validation.</t>

<section anchor="terminology"><name>Terminology</name>
<t>The key words &quot;MUST&quot;, &quot;MUST NOT&quot;, &quot;REQUIRED&quot;, &quot;SHALL&quot;, &quot;SHALL
NOT&quot;, &quot;SHOULD&quot;, &quot;SHOULD NOT&quot;, &quot;RECOMMENDED&quot;, &quot;NOT RECOMMENDED&quot;,
&quot;MAY&quot;, and &quot;OPTIONAL&quot; in this document are to be interpreted as
described in BCP 14 <xref target="RFC2119"></xref> <xref target="RFC8174"></xref> when, and only when, they
appear in all capitals, as shown here.</t>

<section anchor="notation"><name>Notation</name>
<t>Certain properties of mail messages described in this document are
referenced using notation found in <xref target="RFC5598"></xref> (e.g., &quot;RFC5322.From&quot;).</t>
<t>This specification uses the Augmented Backus-Naur Form (ABNF)
notation of <xref target="RFC5234"></xref> and <xref target="RFC7405"></xref>.</t>
</section>

<section anchor="dmarc-terminology"><name>DMARC Terminology</name>
<t>There are a number of terms defined in <xref target="I-D.ietf-dmarc-dmarcbis"></xref> that are used
within this document.  Understanding those definitions will aid in reading
this document. The terms below are of noted interest:</t>

<ul spacing="compact">
<li>Author Domain</li>
<li>DMARC Policy Record</li>
<li>Domain Owner</li>
<li>Mail Receiver</li>
<li>Organizational Domain</li>
<li>Report Consumer</li>
</ul>
</section>
</section>
</section>

<section anchor="document-status"><name>Document Status</name>
<t>This document, in part, along with DMARCbis <xref target="I-D.ietf-dmarc-dmarcbis"></xref> DMARCbis
Failure Reporting <xref target="I-D.ietf-dmarc-failure-reporting"></xref>, obsoletes and replaces
DMARC <xref target="RFC7489"></xref>.</t>
</section>

<section anchor="dmarc-feedback"><name>DMARC Feedback</name>
<t>Providing Domain Owners with visibility into how Mail Receivers implement
and enforce the DMARC mechanism in the form of feedback is critical to
establishing and maintaining accurate authentication deployments.  When
Domain Owners can see what effect their policies and practices are having,
they are better willing and able to use quarantine and reject policies.</t>

<section anchor="aggregate-reports"><name>Aggregate Reports</name>
<t>The DMARC aggregate feedback report is designed to provide Domain
Owners with precise insight into:</t>

<ul spacing="compact">
<li>authentication results,</li>
<li>corrective action that needs to be taken by Domain Owners, and</li>
<li>the effect of Domain Owner DMARC policy on mail streams processed
by Mail Receivers.</li>
</ul>
<t>Aggregate DMARC feedback provides visibility into real-world mail
streams that Domain Owners need in order to make informed decisions
regarding the publication of a DMARC policy.  When Domain Owners know what
legitimate mail they are sending, what the authentication results are
on that mail, and what forged mail receivers are getting, they can
make better decisions about the policies they need and the steps they
need to take to enable those policies.  When Domain Owners set
policies appropriately and understand their effects, Mail Receivers
can act on them confidently.</t>
<t>Visibility comes in the form of daily (or more frequent) Mail
Receiver-originated feedback reports that contain aggregate data on
message streams relevant to the Domain Owner.  This information
includes data about messages that passed DMARC authentication as well
as those that did not.</t>
<t>A separate report <bcp14>MUST</bcp14> be generated for each DMARC Policy Domain encountered
during the reporting period. See below for further explanation in
<xref target="handling"></xref>, &quot;Handling Domains in Reports&quot;.</t>
<t>The report may include the following data:</t>

<ul spacing="compact">
<li>The DMARC policy discovered and applied, if any</li>
<li>The selected message disposition</li>
<li>The identifier evaluated by SPF and the SPF result, if any</li>
<li>The identifier evaluated by DKIM and the DKIM result, if any</li>
<li>For both DKIM and SPF, an indication of whether the identifier was
in DMARC alignment (see <xref target="I-D.ietf-dmarc-dmarcbis" sectionFormat="of" relative="#" section="3.2.10"></xref>)</li>
<li>Sending and receiving domains</li>
<li>The number of successful authentications</li>
<li>The counts of messages based on all messages received, even if
their delivery is ultimately blocked by other filtering agents.</li>
</ul>
<t>Each report <bcp14>MUST</bcp14> contain data for only one DMARC Policy Domain. A single
report <bcp14>MUST</bcp14> contain data for one policy configuration.  If multiple
configurations were observed during a single reporting period, a
reporting entity MAY choose to send multiple reports, otherwise the
reporting entity SHOULD note only the final configuration observed
during the period. See below for further information.</t>

<section anchor="description-of-the-content-xml-file"><name>Description of the content XML file</name>
<t>NOTE TO RFC EDITOR: We tried a few various formats for these tables.  If you
would like to see those other formats, we can send over those attempts at
your request.  Please remove this comment before publishing.</t>
<t>The format for these reports is defined in the XML Schema Definition
(XSD) in <xref target="xsd"></xref>. The XSD includes the possible
values for some of the elements below.  Most of these values have a definition
tied to <xref target="I-D.ietf-dmarc-dmarcbis"></xref>.</t>
<t>The format is also described in the following sections.  Each section
describes a collection of sibling elements in the XML hierarchy.
There are pointers to where in the hierarchy each table fits.</t>
<t>If a document does not match the the specified format, the document
evaluator SHOULD discard the report. The evaluator MAY choose to try to utilize
some of the data, though if the format is in question, so may be the data. The
report evaluator MAY choose to contact the report generator so
that they may be alerted to an issue with the report format.</t>
<t>The column &quot;#&quot; specifies how many times an element may appear, this
is sometimes referred to as multiplicity. The possible values are:</t>

<dl spacing="compact">
<dt>O:</dt>
<dd><bcp14>OPTIONAL</bcp14>, zero or one element</dd>
<dt>R:</dt>
<dd><bcp14>REQUIRED</bcp14>, exactly one element</dd>
<dt>*:</dt>
<dd><bcp14>OPTIONAL</bcp14>, zero or more elements</dd>
<dt>+:</dt>
<dd><bcp14>REQUIRED</bcp14>, one or more elements</dd>
</dl>
<t>Some elements contain text meant for humans and support an optional
&quot;lang&quot; attribute whose value indicate the language of its contents.
The default value is &quot;en&quot;.
Elements supporting this optional attribute is marked with &quot;[@lang]&quot;
at the start of their content description in the following tables.</t>

<section anchor="xml-root-element"><name>XML root element</name>
<t>DMARC aggregate feedback reports have the root element &quot;feedback&quot;
with its XML namespace set to the DMARC namespace.</t>
<table align="left"><name>The XML root element.
</name>
<thead>
<tr>
<th>Element name</th>
<th>#</th>
<th>Content</th>
</tr>
</thead>

<tbody>
<tr>
<td>feedback</td>
<td>R</td>
<td>First level elements, see <xref target="xml-first-level"></xref></td>
</tr>
</tbody>
</table></section>

<section anchor="xml-first-level"><name>First Level Elements</name>
<t>The elements in this table <bcp14>MUST</bcp14> appear in the order listed.</t>
<table align="left"><name>First level elements of the Aggregate Feedback Report.
</name>
<thead>
<tr>
<th>Element name</th>
<th>#</th>
<th>Content</th>
</tr>
</thead>

<tbody>
<tr>
<td>version</td>
<td>O</td>
<td><bcp14>MUST</bcp14> have the value 1.0.</td>
</tr>

<tr>
<td>report_metadata</td>
<td>R</td>
<td>Report generator metadata, see <xref target="xml-report-metadata"></xref>.</td>
</tr>

<tr>
<td>policy_published</td>
<td>R</td>
<td>The DMARC policy configuration observed by the receiving system, see <xref target="xml-policy-published"></xref>.</td>
</tr>

<tr>
<td>extension</td>
<td>O</td>
<td>Allows for future extensibility, see <xref target="xml-extension"></xref></td>
</tr>

<tr>
<td>record</td>
<td>+</td>
<td>Record(s) of the feedback from the report generator, see <xref target="xml-record"></xref>.</td>
</tr>
</tbody>
</table><t>There <bcp14>MUST</bcp14> be at least one &quot;record&quot; element, they contain data
stating which IP addresses were seen to have delivered messages for
the Author Domain to the receiving system.  For each IP address that
is being reported, there will be at least one &quot;record&quot; element.</t>
</section>

<section anchor="xml-report-metadata"><name>Report generator metadata</name>
<table align="left"><name>Report generator metadata
</name>
<thead>
<tr>
<th>Element name</th>
<th>#</th>
<th>Content</th>
</tr>
</thead>

<tbody>
<tr>
<td>org_name</td>
<td>R</td>
<td>Name of the Reporting Organization.</td>
</tr>

<tr>
<td>email</td>
<td>R</td>
<td>Contact to use when contacting the Reporting Organization.</td>
</tr>

<tr>
<td>extra_contact_info</td>
<td>O</td>
<td>[@lang] Additional contact details.</td>
</tr>

<tr>
<td>report_id</td>
<td>R</td>
<td>Unique Report-ID, see <xref target="report-id"></xref>.</td>
</tr>

<tr>
<td>date_range</td>
<td>R</td>
<td>The reporting period, see <xref target="xml-date-range"></xref>.</td>
</tr>

<tr>
<td>error</td>
<td>O</td>
<td>[@lang] Error messages encountered when processing the DMARC Policy Record, see <xref target="error"></xref>.</td>
</tr>

<tr>
<td>generator</td>
<td>O</td>
<td>The name and version of the report generator; this can help the Report Consumer find out where to report bugs.</td>
</tr>
</tbody>
</table></section>

<section anchor="xml-date-range"><name>Contents of the &quot;date_range&quot; element</name>
<t>The time range in UTC defining the reporting period of this report.</t>
<table align="left"><name>Contents of the &quot;date_range&quot; element
</name>
<thead>
<tr>
<th>Element name</th>
<th>#</th>
<th>Content</th>
</tr>
</thead>

<tbody>
<tr>
<td>begin</td>
<td>R</td>
<td>Start of the reporting period.</td>
</tr>

<tr>
<td>end</td>
<td>R</td>
<td>End of the reporting period.</td>
</tr>
</tbody>
</table>
<ul spacing="compact">
<li>&quot;begin&quot; and &quot;end&quot; contain the number of seconds since epoch.</li>
</ul>
<t>The &quot;begin&quot; and &quot;end&quot; are meant to denote the reporting period, and not
the first/last observed message from the reporting period.  When generating
reports, these reporting periods SHOULD NOT overlap.  Typically, the
reporting period will encompass a single UTC day, beginning at 0000UTC.</t>
</section>

<section anchor="xml-policy-published"><name>Contents of the &quot;policy_published&quot; element</name>
<t>Information on the DMARC Policy Record published for the Author Domain.
The elements from &quot;p&quot; and onwards contain the discovered or default
value for the DMARC policy applied.</t>
<t>Unspecified tags have their default values.</t>
<table align="left"><name>Contents of the &quot;policy_published&quot; element
</name>
<thead>
<tr>
<th>Element name</th>
<th>#</th>
<th>Content</th>
</tr>
</thead>

<tbody>
<tr>
<td>domain</td>
<td>R</td>
<td>The DMARC Policy Domain.</td>
</tr>

<tr>
<td>discovery_method</td>
<td>O</td>
<td>The method used to discover the DMARC Policy Record used during evaluation.</td>
</tr>

<tr>
<td>p</td>
<td>R</td>
<td>A Domain Owner Assessment Policy.</td>
</tr>

<tr>
<td>sp</td>
<td>O</td>
<td>A Domain Owner Assessment Policy.</td>
</tr>

<tr>
<td>np</td>
<td>O</td>
<td>A Domain Owner Assessment Policy.</td>
</tr>

<tr>
<td>fo</td>
<td>O</td>
<td>The value for the failure reporting options.</td>
</tr>

<tr>
<td>adkim</td>
<td>O</td>
<td>The DKIM Identifier Alignment mode.</td>
</tr>

<tr>
<td>aspf</td>
<td>O</td>
<td>The SPF Identifier Alignment mode.</td>
</tr>

<tr>
<td>testing</td>
<td>O</td>
<td>The value of the &quot;t&quot; tag.</td>
</tr>
</tbody>
</table>
<ul>
<li><t>&quot;discovery_method&quot; can have the value &quot;psl&quot; or &quot;treewalk&quot;, where
&quot;psl&quot; is the method from <xref target="RFC7489"></xref> and &quot;treewalk&quot; is described
in <xref target="I-D.ietf-dmarc-dmarcbis"></xref>.</t>
</li>
<li><t>Many of the items above (p, sp, etc.) are defined in
the <xref target="I-D.ietf-dmarc-dmarcbis"></xref> document.</t>
</li>
</ul>
</section>

<section anchor="xml-extension"><name>Contents of the &quot;extension&quot; element</name>
<t>Use of extensions may cause elements to be added here.
These elements <bcp14>MUST</bcp14> be namespaced.</t>
<table align="left"><name>Contents of the &quot;extension&quot; element
</name>
<thead>
<tr>
<th>Element name</th>
<th>#</th>
<th>Content</th>
</tr>
</thead>

<tbody>
<tr>
<td>&lt;any namespaced element&gt;</td>
<td>*</td>
<td>File level elements defined by an extension.</td>
</tr>
</tbody>
</table>
<ul>
<li><t>&quot;&lt;any namespaced element&gt;&quot;</t>
<t>Zero or more elements in the namespace of the related
extension declared in the XML root element.</t>
</li>
</ul>
</section>

<section anchor="xml-record"><name>Contents of the &quot;record&quot; element</name>
<t>The report <bcp14>MUST</bcp14> contain record(s) stating which IP addresses were
seen to have delivered messages for the Author Domain to the
receiving system.  For each IP address that is being reported,
there will be at least one &quot;record&quot; element.</t>
<t>This element contains all the authentication results that were
evaluated by the receiving system for the given set of messages.</t>
<t>An unlimited number of &quot;record&quot; elements may be specified.</t>
<t>Use of extensions may cause other elements to be added to the end of
the record, such elements <bcp14>MUST</bcp14> be namespaced.</t>
<t>One record per (IP, result, authenitication identifiers) tuples.</t>
<t>The elements in this table <bcp14>MUST</bcp14> appear in the order listed.</t>
<table align="left"><name>Contents of the &quot;record&quot; element
</name>
<thead>
<tr>
<th>Element name</th>
<th>#</th>
<th>Content</th>
</tr>
</thead>

<tbody>
<tr>
<td>row</td>
<td>R</td>
<td>See <xref target="xml-row"></xref>.</td>
</tr>

<tr>
<td>identifiers</td>
<td>R</td>
<td>The data that was used to apply policy for the given &quot;row&quot;, see <xref target="xml-identifiers"></xref>.</td>
</tr>

<tr>
<td>auth_results</td>
<td>R</td>
<td>The data related to authenticating the messages associated with this sending IP address, see <xref target="xml-auth-results"></xref>.</td>
</tr>

<tr>
<td>&lt;any namespaced element&gt;</td>
<td>*</td>
<td>Record level elements defined by an extension.</td>
</tr>
</tbody>
</table>
<ul>
<li><t>&quot;&lt;any namespaced element&gt;&quot;</t>
<t>Zero or more elements in the namespace of the related
extension declared in the XML root element.</t>
</li>
</ul>
</section>

<section anchor="xml-row"><name>Contents of the &quot;row&quot; element</name>
<t>A &quot;row&quot; element contains the details of the connecting system, and
how many mails were received from it, for the particular combination
of the policy evaluated.</t>
<table align="left"><name>Contents of the &quot;row&quot; element
</name>
<thead>
<tr>
<th>Element name</th>
<th>#</th>
<th>Content</th>
</tr>
</thead>

<tbody>
<tr>
<td>source_ip</td>
<td>R</td>
<td>The connecting IP address. IPv4address or IPv6address as defined in <xref target="RFC3986" sectionFormat="of" relative="#" section="3.2.2"></xref></td>
</tr>

<tr>
<td>count</td>
<td>R</td>
<td>Number of messages for which the &quot;policy_evaluated&quot; was applied.</td>
</tr>

<tr>
<td>policy_evaluated</td>
<td>R</td>
<td>The DMARC disposition applied to matching messages, see <xref target="xml-policy-evaluated"></xref>.</td>
</tr>
</tbody>
</table></section>

<section anchor="xml-policy-evaluated"><name>Contents of the &quot;policy_evaluated&quot; element</name>
<t>The results of applying the DMARC policy.  If alignment fails and the
policy applied does not match the DMARC Policy Domain's configured policy,
the &quot;reason&quot; element <bcp14>MUST</bcp14> be included.</t>
<t>The elements in this table <bcp14>MUST</bcp14> appear in the order listed.</t>
<table align="left"><name>Contents of the &quot;policy_evaluated&quot; element
</name>
<thead>
<tr>
<th>Element name</th>
<th>#</th>
<th>Content</th>
</tr>
</thead>

<tbody>
<tr>
<td>disposition</td>
<td>R</td>
<td>The result of applying the DMARC policy.</td>
</tr>

<tr>
<td>dkim</td>
<td>R</td>
<td>The result of the DKIM DMARC Identifier alignment test.</td>
</tr>

<tr>
<td>spf</td>
<td>R</td>
<td>The result of the SPF DMARC Identifier alignment test.</td>
</tr>

<tr>
<td>reason</td>
<td>*</td>
<td>Policy override reason, see <xref target="xml-reason"></xref>.</td>
</tr>
</tbody>
</table>
<ul>
<li><t>&quot;spf&quot; and &quot;dkim&quot; <bcp14>MUST</bcp14> be the evaluated values as they relate to
DMARC, not the values the receiver may have used when overriding the
policy.</t>
</li>
<li><t>&quot;reason&quot; elements are meant to include any notes the reporter might
want to include as to why the &quot;disposition&quot; policy does not match the
&quot;policy_published&quot;, such as a local policy override.</t>
</li>
</ul>
</section>

<section anchor="xml-identifiers"><name>Contents of the &quot;identifiers&quot; element</name>
<table align="left"><name>Contents of the &quot;identifiers&quot; element
</name>
<thead>
<tr>
<th>Element name</th>
<th>#</th>
<th>Content</th>
</tr>
</thead>

<tbody>
<tr>
<td>header_from</td>
<td>R</td>
<td>The RFC5322.From domain from the message.</td>
</tr>

<tr>
<td>envelope_from</td>
<td>O</td>
<td>The RFC5321.MailFrom domain that the SPF check has been applied to.</td>
</tr>

<tr>
<td>envelope_to</td>
<td>O</td>
<td>The RFC5321.RcptTo domain from the message.</td>
</tr>
</tbody>
</table>
<ul spacing="compact">
<li>&quot;envelope_from&quot; <bcp14>MAY</bcp14> be existing but empty if the message had a
null reverse-path (see <xref target="RFC5321" sectionFormat="of" relative="#" section="4.5.5"></xref>).</li>
</ul>
</section>

<section anchor="xml-auth-results"><name>Contents of the &quot;auth_results&quot; element</name>
<t>Contains DKIM and SPF results, uninterpreted with respect to DMARC.</t>
<t>If validation is attempted for any DKIM signature, the results
<bcp14>MUST</bcp14> be included in the report (within reason, see
<xref target="dkim-signatures"></xref>, &quot;DKIM Signatures in Aggregate Reports&quot;, below for
handling numerous signatures).</t>
<t>The elements in this table <bcp14>MUST</bcp14> appear in the order listed.</t>
<table align="left"><name>Contents of the &quot;auth_results&quot; element
</name>
<thead>
<tr>
<th>Element name</th>
<th>#</th>
<th>Content</th>
</tr>
</thead>

<tbody>
<tr>
<td>dkim</td>
<td>*</td>
<td>DKIM authentication result, see <xref target="xml-dkim"></xref>.</td>
</tr>

<tr>
<td>spf</td>
<td>O</td>
<td>SPF authentication result, see <xref target="xml-spf"></xref>.</td>
</tr>
</tbody>
</table></section>

<section anchor="xml-dkim"><name>Contents of the &quot;dkim&quot; element</name>
<table align="left"><name>Contents of the &quot;dkim&quot; element
</name>
<thead>
<tr>
<th>Element name</th>
<th>#</th>
<th>Content</th>
</tr>
</thead>

<tbody>
<tr>
<td>domain</td>
<td>R</td>
<td>The domain that was used during validation (the &quot;d=&quot; tag in the signature).</td>
</tr>

<tr>
<td>selector</td>
<td>R</td>
<td>The selector that was used during validation (the &quot;s=&quot; tag in the signature).</td>
</tr>

<tr>
<td>result</td>
<td>R</td>
<td>DKIM verification result, see below.</td>
</tr>

<tr>
<td>human_result</td>
<td>O</td>
<td>[@lang] More descriptive information to the Domain Owner relating to evaluation failures.</td>
</tr>
</tbody>
</table>
<ul spacing="compact">
<li>&quot;result&quot; is a lower-case string where the value is one of the results
defined in <xref target="RFC8601" sectionFormat="of" relative="#" section="2.7.1"></xref>.</li>
</ul>
</section>

<section anchor="xml-spf"><name>Contents of the &quot;spf&quot; element</name>
<t>Only the &quot;MAIL FROM&quot; identity (see <xref target="RFC7208" sectionFormat="of" relative="#" section="2.4"></xref>)
is used in DMARC.</t>
<table align="left"><name>Contents of the &quot;spf&quot; element
</name>
<thead>
<tr>
<th>Element name</th>
<th>#</th>
<th>Content</th>
</tr>
</thead>

<tbody>
<tr>
<td>domain</td>
<td>R</td>
<td>The domain that was used during validation.</td>
</tr>

<tr>
<td>scope</td>
<td>O</td>
<td>The source of the domain used during validation.</td>
</tr>

<tr>
<td>result</td>
<td>R</td>
<td>SPF verification result, see below.</td>
</tr>

<tr>
<td>human_result</td>
<td>O</td>
<td>[@lang] More descriptive information to the Domain Owner relating to evaluation failures.</td>
</tr>
</tbody>
</table>
<ul>
<li><t>The only valid value for the &quot;scope&quot; element is &quot;mfrom&quot;.</t>
</li>
<li><t>&quot;result&quot; is a lower-case string where the value is one of the results
defined in <xref target="RFC8601" sectionFormat="of" relative="#" section="2.7.2"></xref>.</t>
</li>
</ul>
</section>

<section anchor="xml-reason"><name>Contents of the &quot;reason&quot; element</name>
<t>The policy override reason consists of a pre-defined override type
and free-text comment, see <xref target="policy-override-reason"></xref></t>
<table align="left"><name>Contents of the &quot;reason&quot; element
</name>
<thead>
<tr>
<th>Element name</th>
<th>#</th>
<th>Content</th>
</tr>
</thead>

<tbody>
<tr>
<td>type</td>
<td>R</td>
<td>The reason the DMARC policy was overridden</td>
</tr>

<tr>
<td>comment</td>
<td>O</td>
<td>[@lang] Further details, if available.</td>
</tr>
</tbody>
</table></section>
</section>

<section anchor="handling"><name>Handling Domains in Reports</name>
<t>In the same report, there <bcp14>MUST</bcp14> be a single DMARC Policy Domain, though there could be
multiple RFC5322.From Domains.  Each RFC5322.From domain will create its own &quot;record&quot;
within the report.  Consider the case where there are three domains with traffic
volume to report: example.com, foo.example.com, and bar.example.com.  There will be
explicit DMARC Policy Records for example.com and bar.example.com, with distinct policies.  There
is no explicit DMARC Policy Record for foo.example.com, so it will be reliant on the
policy described for example.com.  For a report period, there would now be two reports.<br />
The first will be for bar.example.com, and contain only one &quot;record&quot;, for
bar.example.com.  The second report would be for example.com and contain multiple
&quot;record&quot; elements, one for example.com and one for foo.example.com (and extensibly,
other &quot;record&quot; elements for subdomains which likewise did not have an explicit
DMARC Policy Record).</t>
</section>

<section anchor="dkim-signatures"><name>DKIM Signatures in Aggregate Reports</name>
<t>Within a single message, the possibility exists that there could be multiple DKIM
signatures. When validation of the message occurs, some signatures may pass,
while some may not.  As these pertain to DMARC, and especially to aggregate
reporting, reporters may not find it clear which DKIM signatures they should include
in a report. Signatures, regardless of outcome, could help the report ingester
determine the source of a message. However, there is a preference as to which
signatures are included.</t>

<ol spacing="compact">
<li>A signature that passes DKIM, in strict alignment with the RFC5322.From domain</li>
<li>A signature that passes DKIM, in relaxed alignment with the RFC5322.From domain</li>
<li>Any other DKIM signatures that pass</li>
<li>DKIM signatures that do not pass</li>
</ol>
<t>A report <bcp14>SHOULD</bcp14> contain no more than 100 signatures for a given &quot;row&quot;, in
decreasing priority.</t>
</section>

<section anchor="unique-identifiers-in-aggregate-reporting"><name>Unique Identifiers in Aggregate Reporting</name>
<t>There are a few places where a unique identifier is specified as part of the
body of the report, the subject, and so on.  These unique identifiers should be
consistent per each report.  Specified below, the reader will see a
&quot;Report-ID&quot; and &quot;unique-id&quot;.  These are the fields that <bcp14>MUST</bcp14> be identical when used.</t>
</section>

<section anchor="error"><name>Error element</name>
<t>A few examples of information contained within the &quot;error&quot; element(s):</t>

<ul spacing="compact">
<li>DMARC Policy Record evaluation errors (invalid &quot;rua&quot; or &quot;sp&quot;, etc.)</li>
<li>Multiple DMARC Policy Records at a given location</li>
</ul>
<t>Be mindful that the &quot;error&quot; element is an unbounded string, but should not contain
an extremely large body.  Provide enough information to assist the Domain Owner
with understanding some issues with their authentication or DMARC Policy Record.</t>
</section>

<section anchor="policy-override-reason"><name>Policy Override Reason</name>
<t>The &quot;reason&quot; element, indicating an override of the DMARC policy, consists of a
mandatory &quot;type&quot; element and an optional &quot;comment&quot; element. The &quot;type&quot; element
<bcp14>MUST</bcp14> have one of the pre-defined values listed below. The &quot;comment&quot; element
is an unbounded string for providing further details.</t>
<t>Possible values for the policy override type:</t>
<t>&quot;local_policy&quot;: The Mail Receiver's local policy exempted the message
     from being subjected to the Domain Owner's requested policy
     action.</t>
<t>&quot;mailing_list&quot;: Local heuristics determined that the message arrived
     via a mailing list, and thus authentication of the original
     message was not expected to succeed.</t>
<t>&quot;other&quot;: Some policy exception not covered by the other entries in
     this list occurred.  Additional detail can be found in the
     &quot;comment&quot; element.</t>
<t>&quot;policy_test_mode&quot;: The message was exempted from application of policy by
     the testing mode (&quot;t&quot; tag) in the DMARC Policy Record.</t>
<t>&quot;trusted_forwarder&quot;: Message authentication failure was anticipated by
     other evidence linking the message to a locally maintained list of
     known and trusted forwarders.</t>
</section>
</section>

<section anchor="extensions"><name>Extensions</name>
<t>The document format supports optional elements for extensions.
The absence or existence of this section <bcp14>SHOULD NOT</bcp14> create an error when
processing reports. This will be covered in a separate
section, Extensible Reporting, <xref target="extensible"></xref>.</t>
</section>

<section anchor="changes-in-policy-during-reporting-period"><name>Changes in Policy During Reporting Period</name>
<t>Note that Domain Owners or their agents may change the published
DMARC Policy Record for a domain or subdomain at any time.  From a Mail
Receiver's perspective, this will occur during a reporting period and
may be noticed during that period, at the end of that period when
reports are generated, or during a subsequent reporting period, all
depending on the Mail Receiver's implementation.  Under these
conditions, it is possible that a Mail Receiver could do any of the
following:</t>

<ul spacing="compact">
<li>generate for such a reporting period a single aggregate report
that includes message dispositions based on the old policy, or a
mix of the two policies, even though the report only contains a
single &quot;policy_published&quot; element;</li>
<li>generate multiple reports for the same period, one for each
published policy occurring during the reporting period;</li>
</ul>
<t>Such policy changes are expected to be infrequent for any given
domain, whereas more stringent policy monitoring requirements on the
Mail Receiver would produce a very large burden at Internet scale.
Therefore, it is the responsibility of Report Consumers (i.e., vendors)
and Domain Owners to be aware of this situation and expect such mixed
reports during the propagation of the new policy to Mail Receivers.</t>
</section>

<section anchor="report-request-discovery"><name>Report Request Discovery</name>
<t>A Mail Receiver discovers reporting requests when it looks up a DMARC
Policy Record that corresponds to an RFC5322.From domain on received
mail.  The presence of the &quot;rua&quot; tag specifies where to send
feedback.</t>
</section>

<section anchor="report-delivery"><name>Report Delivery</name>
<t>The Mail Receiver, after preparing a report, <bcp14>MUST</bcp14> evaluate the
provided reporting URIs (See <xref target="I-D.ietf-dmarc-dmarcbis"></xref>) in the order
given.  If any of the URIs are malformed, they SHOULD be ignored.  An
attempt <bcp14>MUST</bcp14> be made to deliver an aggregate report to
every remaining URI, up to the Receiver's limits on supported URIs.</t>
<t>If delivery is not possible because the services advertised by the
published URIs are not able to accept reports (e.g., the URI refers
to a service that is unreachable), the Mail Receiver <bcp14>MAY</bcp14>
cache that data and try again later, or <bcp14>MAY</bcp14> discard data that
could not be sent.</t>
<t>Where the URI specified in a &quot;rua&quot; tag does not specify otherwise, a
Mail Receiver generating a feedback report <bcp14>SHOULD</bcp14> employ a secure
transport mechanism, meaning the report should be delivered over a channel
employing TLS (SMTP+STARTTLS).</t>

<section anchor="report-id"><name>Definition of Report-ID</name>
<t>This identifier <bcp14>MUST</bcp14> be unique among reports to the same domain to
aid receivers in identifying duplicate reports should they happen.
The Report-ID value should be constructed using the following ABNF:</t>

<artwork>  ridfmt =  (dot-atom-text [&quot;@&quot; dot-atom-text]) ; from RFC 5322

  ridtxt =  (&quot;&lt;&quot; ridfmt &quot;&gt;&quot;) / ridfmt
</artwork>
<t>The format specified here is not very strict as the key goal is uniqueness. In
order to create this uniqueness, the Mail Receiver may wish to use elements
such as the receiving domain, sending domain, and a timestamp in combination.
An example string might be &quot;1721054318-example.com@example.org&quot;. An alternate
could use a date string such as &quot;2024-03-27_example.com@example.org&quot;.</t>
</section>

<section anchor="email"><name>Email</name>
<t>The message generated by the Mail Receiver <bcp14>MUST</bcp14> be a <xref target="RFC5322"></xref> message
formatted per <xref target="RFC2045"></xref>.  The aggregate report itself <bcp14>MUST</bcp14> be included
in one of the parts of the message, as an attachment with a corresponding
media type from below.  A human-readable annotation <bcp14>MAY</bcp14> be included as a body
part (with a human-friendly content-type, such as &quot;text/plain&quot; or
&quot;text/html&quot;).</t>
<t>The aggregate data <bcp14>MUST</bcp14> be an XML file that <bcp14>SHOULD</bcp14> be subjected to
GZIP <xref target="RFC1952"></xref> compression.  Declining to apply compression can cause the
report to be too large for a receiver to process (the total message size
could exceed the receiver SMTP size limit); doing the compression increases
the chances of acceptance of the report at some compute cost.  The
aggregate data <bcp14>MUST</bcp14> be present using the media type &quot;application/gzip&quot; if
compressed (see <xref target="RFC6713"></xref>), and &quot;text/xml&quot; otherwise.  The attachment
filename <bcp14>MUST</bcp14> be constructed using the following ABNF:</t>

<artwork>  filename = receiver &quot;!&quot; policy-domain &quot;!&quot; begin-timestamp
             &quot;!&quot; end-timestamp [ &quot;!&quot; unique-id ] &quot;.&quot; extension

  receiver = domain-name
             ; imported from RFC 6376

  policy-domain   = domain-name

  begin-timestamp = 1*DIGIT
                    ; seconds since 00:00:00 UTC January 1, 1970
                    ; indicating start of the time range contained
                    ; in the report

  end-timestamp = 1*DIGIT
                  ; seconds since 00:00:00 UTC January 1, 1970
                  ; indicating end of the time range contained
                  ; in the report

  unique-id = 1*(ALPHA / DIGIT)

  extension = &quot;xml&quot; / &quot;xml.gz&quot;
</artwork>
<t>The following primitive tokens that are used but otherwise unspecified
are taken from the &quot;Core Rules&quot; of <xref target="RFC5234"></xref>: DIGIT, ALPHA.</t>
<t>The extension <bcp14>MUST</bcp14> be &quot;xml&quot; for a plain XML file, or &quot;xml.gz&quot; for an
XML file compressed using GZIP.</t>
<t>&quot;unique-id&quot; allows an optional unique ID generated by the Mail
Receiver to distinguish among multiple reports generated
simultaneously by different sources within the same Domain Owner.  A
viable option may be to explore UUIDs <xref target="RFC9562"></xref>.</t>
<t>If a report generator needs to re-send a report, the system <bcp14>MUST</bcp14>
use the same filename as the original report.  This would
allow the receiver to overwrite the data from the original, or discard
second instance of the report.</t>
<t>For example, this is a sample filename for the gzip file of a
report to the Domain Owner &quot;example.com&quot; from the Mail Receiver
&quot;mail.receiver.example&quot;:</t>
<t>mail.receiver.example!example.com!1013662812!1013749130.xml.gz</t>
<t>No specific MIME message structure is required for the message body.  It
is presumed that the aggregate reporting address will be equipped to extract
body parts with the prescribed media type and filename and ignore the rest.</t>
<t>Mail streams carrying DMARC feedback data <bcp14>MUST</bcp14> conform to the DMARC
mechanism, thereby resulting in an aligned &quot;pass&quot; (see
<xref target="I-D.ietf-dmarc-dmarcbis" sectionFormat="of" relative="#" section="4.4"></xref>).
This practice minimizes the risk of Report Consumers processing
fraudulent reports.</t>
<t>The RFC5322.Subject field for individual report submissions <bcp14>MUST</bcp14>
conform to the following ABNF:</t>

<artwork>  ; FWS is imported from RFC 5322
  dmarc-subject = %s&quot;Report&quot; 1*FWS %s&quot;Domain:&quot;
                  1*FWS domain-name 1*FWS         ; policy domain
                  %s&quot;Submitter:&quot; 1*FWS
                  domain-name 1*FWS               ; report generator
                  [ %s&quot;Report-ID:&quot; 1*FWS ridtxt ] ; defined above
</artwork>
<t>The first domain-name indicates the DNS domain name about which the
report was generated.  The second domain-name indicates the DNS
domain name representing the Mail Receiver generating the report.
The purpose of the Report-ID: portion of the field is to enable the
Domain Owner to identify and ignore duplicate reports that might be
sent by a Mail Receiver.</t>
<t>For instance, this is a possible Subject field for a report to the
Domain Owner &quot;example.com&quot; from the Mail Receiver
&quot;mail.receiver.example&quot;.  It is folded as allowed by <xref target="RFC5322"></xref>:</t>

<artwork>  Subject: Report Domain: example.com
      Submitter: mail.receiver.example
      Report-ID: &lt;sample-ridtxt@example.com&gt;
</artwork>
<t>This transport mechanism potentially encounters a problem when
feedback data size exceeds maximum allowable attachment sizes for
either the generator or the consumer.</t>
<t>Optionally, the report sender <bcp14>MAY</bcp14> choose to use the same &quot;ridtxt&quot;
as a part or whole of the RFC5322.Message-Id header included with the report.
Doing so may help receivers distinguish when a message is a re-transmission
or duplicate report.</t>
</section>

<section anchor="other-methods"><name>Other Methods</name>
<t>The specification as written allows for the addition of other
registered URI schemes to be supported in later versions.</t>
</section>

<section anchor="handling-of-duplicates"><name>Handling of Duplicates</name>
<t>There may be a situation where the report generator attempts to deliver
duplicate information to the receiver.  This may manifest as an exact
duplicate of the report, or as duplicate information between two reports.
In these situations, the decision of how to handle the duplicate data
lies with the receiver.  As noted above, the sender <bcp14>MUST</bcp14> use the same
unique identifiers when sending the report.  This allows the receiver to
better understand when duplicates happen.  A few options on how to
handle that duplicate information:</t>

<ul spacing="compact">
<li>Reject back to sender, ideally with a permfail error noting
the duplicate receipt</li>
<li>Discard upon receipt</li>
<li>Inspect the contents to evaluate the timestamps and reported data,
act as appropriate</li>
<li>Accept the duplicate data</li>
</ul>
<t>When accepting the data, that's likely in a situation where it's not
yet noticed, or a one-off experience.  Long term, duplicate data
is not ideal.  In the situation of a partial time frame overlap, there is
no clear way to distinguish the impact of the overlap.  The receiver would
need to accept or reject the duplicate data in whole.</t>
</section>
</section>
</section>

<section anchor="verifying-external-destinations"><name>Verifying External Destinations</name>
<t>It is possible to specify destinations for the different reports that
are outside the authority of the Domain Owner making the request.
This allows domains that do not operate mail servers to request
reports and have them go someplace that is able to receive and
process them.</t>
<t>Without checks, this would allow a bad actor to publish a DMARC
Policy Record that requests that reports be sent to a victim address,
and then send a large volume of mail that will fail both DKIM and SPF
checks to a wide variety of destinations; the victim will in turn be
flooded with unwanted reports.  Therefore, a verification mechanism
is included.</t>
<t>When a Mail Receiver discovers a DMARC Policy Record in the DNS, and the
Organizational Domain at which that record was discovered is not
identical to the Organizational Domain of the host part of the
authority component of a <xref target="RFC3986"></xref> specified in the &quot;rua&quot; tag,
the following verification steps <bcp14>MUST</bcp14> be taken:</t>

<ol>
<li><t>Extract the host portion of the authority component of the URI.
Call this the &quot;destination host&quot;, as it refers to a Report
Receiver.</t>
</li>
<li><t>Prepend the string &quot;_report._dmarc&quot;.</t>
</li>
<li><t>Prepend the domain name from which the policy was retrieved,
after conversion to an A-label <xref target="RFC5890"></xref> if needed.</t>
</li>
<li><t>If the length of the constructed name exceed DNS limits,
a positive determination of the external reporting
relationship cannot be made; stop.</t>
</li>
<li><t>Query the DNS for a TXT record at the constructed name.  If the
result of this request is a temporary DNS error of some kind
(e.g., a timeout), the Mail Receiver <bcp14>MAY</bcp14> elect to temporarily
fail the delivery so the verification test can be repeated later.</t>
</li>
<li><t>For each record returned, parse the result as a series of
&quot;tag=value&quot; pairs, i.e., the same overall format as the DMARC Policy
Record (see <xref target="I-D.ietf-dmarc-dmarcbis" sectionFormat="of" relative="#" section="4.7"></xref>).  In
particular, the &quot;v=DMARC1&quot; tag is mandatory and <bcp14>MUST</bcp14> appear
first in the list.  Discard any that do not pass this test. A
trailing &quot;;&quot; is optional.</t>
</li>
<li><t>If the result includes no TXT resource records that pass basic
parsing, a positive determination of the external reporting
relationship cannot be made; stop.</t>
</li>
<li><t>If at least one TXT resource record remains in the set after
parsing, then the external reporting arrangement was authorized
by the Report Consumer.</t>
</li>
<li><t>If a &quot;rua&quot; tag is thus discovered, replace the
corresponding value extracted from the domain's DMARC Policy
Record with the one found in this record.  This permits the
Report Consumer to override the report destination.  However, to
prevent loops or indirect abuse, the overriding URI <bcp14>MUST</bcp14> use the
same destination host from the first step.</t>
</li>
</ol>
<t>For example, if the DMARC Policy Record for &quot;blue.example.com&quot; contained
<tt>&quot;rua=mailto:reports@red.example.net&quot;</tt>, the Organizational Domain host
extracted from the latter (&quot;red.example.net&quot;) does not match
&quot;blue.example.com&quot;, so this procedure is enacted.  A TXT query for
&quot;blue.example.com._report._dmarc.red.example.net&quot; is issued.  If a
single reply comes back containing a tag of &quot;v=DMARC1&quot;, then the
relationship between the two is confirmed.  Moreover,
&quot;red.example.net&quot; has the opportunity to override the report
destination requested by &quot;blue.example.com&quot; if needed.</t>
<t>Where the above algorithm fails to confirm that the external
reporting was authorized by the Report Consumer, the URI <bcp14>MUST</bcp14> be
ignored by the Mail Receiver generating the report.  Further, if the
confirming record includes a URI whose host is again different than
the domain publishing that override, the Mail Receiver generating the
report <bcp14>MUST NOT</bcp14> generate a report to either the original or the
override URI.
A Report Consumer publishes such a record in its DNS if it wishes to
receive reports for other domains.</t>
<t>A Report Consumer that is willing to receive reports for any domain
can use a wildcard DNS record.  For example, a TXT resource record at
&quot;*._report._dmarc.example.com&quot; containing at least &quot;v=DMARC1&quot;
confirms that example.com is willing to receive DMARC reports for any
domain.</t>
<t>If the Report Consumer is overcome by volume, it can simply remove
the confirming DNS record.  However, due to positive caching, the
change could take as long as the time-to-live (TTL) on the record to
go into effect.</t>
<t>If the length of the DNS query is excessively long (Step 4 above), the
Domain Owner may need to reconsider the domain being used to be shorter,
or reach out to another party that may allow for a shorter DNS label.</t>
</section>

<section anchor="extensible"><name>Extensible Reporting</name>
<t>DMARC reports allow for some extensibility, as defined by future
documents that utilize DMARC as a foundation.  These extensions
<bcp14>MUST</bcp14> be properly formatted XML and meant to exist within the structure
of a DMARC report.  Two positions of type &quot;&lt;any&gt;&quot; are provided in the
existing DMARC structure, one at file level, in an &quot;&lt;extension&gt;&quot; element
after &quot;&lt;policy_published&gt;&quot; and one at record level, after &quot;&lt;auth_results&gt;&quot;.
In either case, the extensions <bcp14>MUST</bcp14> contain a URI to the definition of
the extension so that the receiver understands how to interpret the data.</t>
<t>At file level:</t>

<sourcecode type="xml">&lt;feedback xmlns=&quot;urn:ietf:params:xml:ns:dmarc-2.0&quot;
          xmlns:ext=&quot;URI for an extension-supplied name space&quot;&gt;
  ...
  &lt;policy_published&gt;
    &lt;domain&gt;example.com&lt;/domain&gt;
    &lt;p&gt;quarantine&lt;/p&gt;
    &lt;sp&gt;none&lt;/sp&gt;
    &lt;testing&gt;n&lt;/testing&gt;
  &lt;/policy_published&gt;
  &lt;extension&gt;
    &lt;ext:arc-override&gt;never&lt;/ext:arc-override&gt;
  &lt;/extension&gt;
</sourcecode>
<t>Within the &quot;record&quot; element:</t>

<sourcecode type="xml">  &lt;record&gt;
    &lt;row&gt;
       ...
    &lt;/row&gt;
    &lt;identifiers&gt;
       ...
    &lt;/identifiers&gt;
    &lt;auth_results&gt;
       ...
    &lt;/auth_results&gt;
    &lt;ext:arc-results&gt;
       ...
    &lt;/ext:arc-results&gt;
  &lt;/record&gt;
  &lt;record&gt;
     ...
</sourcecode>
<t>Here &quot;arc-override&quot; and &quot;arc-results&quot; are hypothetical element names
defined in the extension's name space.</t>
<t>Extension elements are optional.  Any number of extensions is allowed.
If a processor is unable to handle an extension in a report, it <bcp14>SHOULD</bcp14>
ignore the data and continue to the next extension.</t>
</section>

<section anchor="iana-considerations"><name>IANA Considerations</name>
<t>This document uses URNs to describe XML namespaces and XML schemas
conforming to a registry mechanism described in <xref target="RFC3688"></xref>.  Two URI
assignments will be registered by the IANA.</t>

<section anchor="registration-request-for-the-dmarc-namespace"><name>Registration request for the DMARC namespace:</name>
<t>URI: urn:ietf:params:xml:ns:dmarc-2.0</t>
<t>Registrant Contact: Internet Engineering Task Force (iesg@ietf.org)</t>
<t>XML: None.  Namespace URIs do not represent an XML specification.</t>
</section>

<section anchor="registration-request-for-the-dmarc-xml-schema"><name>Registration request for the DMARC XML schema:</name>
<t>URI: urn:ietf:params:xml:schema:dmarc-2.0</t>
<t>Registrant Contact: Internet Engineering Task Force (iesg@ietf.org)</t>
<t>XML: See Appendix A. DMARC XML Schema (<xref target="W3C.REC-xmlschema-1"></xref> and
<xref target="W3C.REC-xmlschema-2"></xref>) in this document.</t>
</section>
</section>

<section anchor="privacy-considerations"><name>Privacy Considerations</name>
<t>This section will discuss exposure related to DMARC aggregate reporting.</t>

<section anchor="report-recipients"><name>Report Recipients</name>
<t>A DMARC Policy Record can specify that reports should be sent to an
intermediary operating on behalf of the Domain Owner.  This is done
when the Domain Owner contracts with an entity to monitor mail
streams for abuse and performance issues.  Receipt by third parties
of such data may or may not be permitted by the Mail Receiver's
privacy policy, terms of use, or other similar governing document.
Domain Owners and Mail Receivers should both review and understand if
their own internal policies constrain the use and transmission of
DMARC reporting.</t>
<t>Some potential exists for report recipients to perform traffic
analysis, making it possible to obtain metadata about the Receiver's
traffic.  In addition to verifying compliance with policies,
Receivers need to consider that before sending reports to a third
party.</t>
</section>

<section anchor="data-contained-within-reports"><name>Data Contained Within Reports</name>
<t>Aggregate feedback reports contain aggregated data relating to
messages purportedly originating from the Domain Owner. The data
does not contain any identifying characteristics about individual
users. No personal information such as individual mail addresses,
IP addresses of individuals, or the content of any messages, is
included in reports.</t>
<t>Mail Receivers should have no concerns in sending reports as they
do not contain personal information. In all cases, the data within
the reports relates to the domain-level authentication information
provided by mail servers sending messages on behalf of the Domain
Owner. This information is necessary to assist Domain Owners in
implementing and maintaining DMARC.</t>
<t>Domain Owners should have no concerns in receiving reports as
they do not contain personal information. The reports only contain
aggregated data related to the domain-level authentication details
of messages claiming to originate from their domain. This information
is essential for the proper implementation and operation of DMARC.
Domain Owners who are unable to receive reports for organizational
reasons, can choose to exclusively direct the reports to an
external processor.</t>
</section>

<section anchor="leakage"><name>Feedback Leakage</name>
<t>Providing feedback reporting to PSOs (Public Suffix Operator) for a
PSD (Public Suffix Domain) <xref target="I-D.ietf-dmarc-dmarcbis"></xref> can, in some
cases, cause information to leak out of an organization to the PSO.  This
leakage could potentially be utilized as part of a program of pervasive
surveillance (see <xref target="RFC7624"></xref>).  There are roughly three cases to consider:</t>

<ul>
<li><t>Single Organization PSDs (e.g., &quot;.mil&quot;)</t>
<t>Aggregate reports based on PSD DMARC have the potential to
contain information about mails related to entities managed by
the organization.  Since both the PSO and the Organizational
Domain Owners are common, there is no additional privacy risk for
either normal or non-existent domain reporting due to PSD DMARC.</t>
</li>
<li><t>Multi-organization PSDs requiring DMARC usage (e.g., &quot;.bank&quot;)</t>
<t>Aggregate reports based on PSD DMARC will only be generated for domains that
do not publish a DMARC Policy Record at the Organizational Domain or host level.
For domains that do publish the required DMARC Policy Records, the
feedback reporting addresses of the Organizational Domain (or
hosts) will be used.  The only direct risk of feedback leakage for
these PSDs are for Organizational Domains that are out of
compliance with PSD policy.  Data on non-existent domains
would be sent to the PSO.</t>
</li>
<li><t>Multi-organization PSDs not requiring DMARC usage (e.g., &quot;.com&quot;)</t>
<t>Privacy risks for Organizational Domains that have not deployed DMARC
within such PSDs can be significant.  For non-DMARC Organizational
Domains, all DMARC feedback will be directed to the PSO if that PSO
itself has a DMARC Policy Record that specifies a &quot;rua&quot; tag.  Any non-DMARC
Organizational Domain would have its Feedback Reports redirected to
the PSO.  The content of such reports, particularly for existing
domains, is privacy sensitive.</t>
</li>
</ul>
<t>PSOs will receive feedback on non-existent domains, which may be
similar to existing Organizational Domains.  Feedback related to such
domains have a small risk of carrying information related to
an actual Organizational Domain.  To minimize this potential concern,
PSD DMARC feedback <bcp14>MUST</bcp14> be limited to aggregate reports.  Failure
reports carry more detailed information and present a greater risk.</t>
</section>
</section>

<section anchor="security-considerations"><name>Security Considerations</name>
<t>While reviewing this document and its Security Considerations, it is ideal
that the reader would also review Privacy Considerations above, as well as
the Privacy Considerations and Security Considerations in section
<xref target="I-D.ietf-dmarc-dmarcbis" sectionFormat="bare" relative="#" section="9"></xref> and <xref target="I-D.ietf-dmarc-dmarcbis" sectionFormat="bare" relative="#" section="10"></xref> of
<xref target="I-D.ietf-dmarc-dmarcbis"></xref>.</t>

<section anchor="report-contents-as-an-attack"><name>Report Contents as an Attack</name>
<t>Aggregate reports are supposed to be processed automatically. An attacker
might attempt to compromise the integrity or availability of the report
processor by sending malformed reports. In particular, the archive
decompressor and XML parser are at risk to resource exhaustion
attacks (zip bomb or XML bomb).</t>
</section>

<section anchor="false-information"><name>False Information</name>
<t>The data contained within aggregate reports may be forged. An attacker might
attempt to interfere with or influence policy decisions by submitting false
reports in large volume. The attacker could also be attempting to influence
platform architecture decisions. A volume-based attack may also impact the
ability for a report receiver to accept reports from other entities.</t>
</section>

<section anchor="disclosure-of-filtering-information"><name>Disclosure of Filtering Information</name>
<t>While not specified in this document itself, the availability of extensions
could enable the report generator to disclose information about message
placement (Inbox/Spam/etc).  This is very much discouraged as it could
relay this information to a malicious party, allowing them to understand
more about filtering methodologies at a receiving entity.</t>
</section>
</section>

<section anchor="operational-considerations"><name>Operational Considerations</name>

<section anchor="report-generation"><name>Report Generation</name>

<ul spacing="compact">
<li>The error fields should be reasonably terse and usable.</li>
<li>If reports cannot be generator, the system should ideally log a useful error
that helps troubleshoot the issue.</li>
</ul>
</section>

<section anchor="report-evaluation"><name>Report Evaluation</name>
<t>As noted above, if a report does not match the specified format, the
evaluator will likely find the contents to be in question. Alternately,
the evaluator may decide to sideline those reports so they can more easily
collaborate with the report generator to identify where the issues are
happening.</t>
<t>It's quite likely that the data contained within the reports will be extracted and
stored in a system that allows for easy reporting, dashboarding, and/or
monitoring. The XML reports themselves are not human readable in bulk, and a
system such as the above may aid the Domain Owner with identifying issues.</t>
</section>

<section anchor="report-storage"><name>Report Storage</name>
<t>Once a report is accepted and properly parsed by the report evaluator, it is
entirely up to that evaluator what they wish to do with the XML documents. For
some domains, the quantity of reports could be fairly high, or the size of the
reports themselves could be large.  Once the data from the reports has been
extracted and indexed, the reports seemingly have little value in most
situations.</t>
</section>
</section>

</middle>

<back>
<references><name>Normative References</name>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml-ids/reference.I-D.ietf-dmarc-dmarcbis.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.1952.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2045.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.3688.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.3986.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5234.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5321.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5322.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5890.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6376.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6713.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7208.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7405.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7489.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8601.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml-w3c/reference.W3C.REC-xmlschema-1.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml-w3c/reference.W3C.REC-xmlschema-2.xml"/>
</references>
<references><name>Informative References</name>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml-ids/reference.I-D.ietf-dmarc-failure-reporting.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5598.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7624.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.9562.xml"/>
</references>

<section anchor="xsd"><name>DMARC XML Schema</name>

<sourcecode type="xsd">&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;
 targetNamespace=&quot;urn:ietf:params:xml:ns:dmarc-2.0&quot;
 xmlns=&quot;urn:ietf:params:xml:ns:dmarc-2.0&quot;
 elementFormDefault=&quot;qualified&quot;&gt;

&lt;!-- Elements with an optional &quot;lang&quot; attribute. --&gt;
&lt;xs:complexType name=&quot;langAttrString&quot;&gt;
 &lt;xs:simpleContent&gt;
  &lt;xs:extension base=&quot;xs:string&quot;&gt;
   &lt;xs:attribute name=&quot;lang&quot; type=&quot;xs:language&quot;
                 use=&quot;optional&quot; default=&quot;en&quot;/&gt;
  &lt;/xs:extension&gt;
 &lt;/xs:simpleContent&gt;
&lt;/xs:complexType&gt;

&lt;!-- The time range in UTC defining the reporting period of
     this report, specified in seconds since epoch. --&gt;
&lt;xs:complexType name=&quot;DateRangeType&quot;&gt;
 &lt;xs:all&gt;
  &lt;xs:element name=&quot;begin&quot; type=&quot;xs:integer&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;xs:element name=&quot;end&quot; type=&quot;xs:integer&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
 &lt;/xs:all&gt;
&lt;/xs:complexType&gt;

&lt;!-- Report generator metadata. --&gt;
&lt;xs:complexType name=&quot;ReportMetadataType&quot;&gt;
 &lt;xs:all&gt;
  &lt;!-- Reporting Organization --&gt;
  &lt;xs:element name=&quot;org_name&quot; type=&quot;xs:string&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- Contact to use when contacting the Reporting Organization --&gt;
  &lt;xs:element name=&quot;email&quot; type=&quot;xs:string&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- Additional contact details --&gt;
  &lt;xs:element name=&quot;extra_contact_info&quot; type=&quot;langAttrString&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- Unique Report-ID --&gt;
  &lt;xs:element name=&quot;report_id&quot; type=&quot;xs:string&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- Timestamps used when forming report data --&gt;
  &lt;xs:element name=&quot;date_range&quot; type=&quot;DateRangeType&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- Optional error messages when processing DMARC policy --&gt;
  &lt;xs:element name=&quot;error&quot; type=&quot;langAttrString&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- Optional information about the generating software --&gt;
  &lt;xs:element name=&quot;generator&quot; type=&quot;xs:string&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
 &lt;/xs:all&gt;
&lt;/xs:complexType&gt;

&lt;!-- Alignment mode (relaxed or strict) for DKIM and SPF. --&gt;
&lt;xs:simpleType name=&quot;AlignmentType&quot;&gt;
 &lt;xs:restriction base=&quot;xs:string&quot;&gt;
  &lt;xs:enumeration value=&quot;r&quot;/&gt;
  &lt;xs:enumeration value=&quot;s&quot;/&gt;
 &lt;/xs:restriction&gt;
&lt;/xs:simpleType&gt;

&lt;!-- The policy actions specified by p, sp and np in the
     DMARC Policy Record. --&gt;
&lt;xs:simpleType name=&quot;DispositionType&quot;&gt;
 &lt;xs:restriction base=&quot;xs:string&quot;&gt;
  &lt;xs:enumeration value=&quot;none&quot;/&gt;
  &lt;xs:enumeration value=&quot;quarantine&quot;/&gt;
  &lt;xs:enumeration value=&quot;reject&quot;/&gt;
 &lt;/xs:restriction&gt;
&lt;/xs:simpleType&gt;

&lt;!-- The policy actions utilized on messages for this record. --&gt;
&lt;!--
     &quot;none&quot;: No action taken
     &quot;pass&quot;: No action, passing DMARC w/enforcing policy
     &quot;quarantine&quot;: Failed DMARC, message marked for quarantine
     &quot;reject&quot;: Failed DMARC, marked as reject
--&gt;
&lt;xs:simpleType name=&quot;ActionDispositionType&quot;&gt;
 &lt;xs:restriction base=&quot;xs:string&quot;&gt;
  &lt;xs:enumeration value=&quot;none&quot;/&gt;
  &lt;xs:enumeration value=&quot;pass&quot;/&gt;
  &lt;xs:enumeration value=&quot;quarantine&quot;/&gt;
  &lt;xs:enumeration value=&quot;reject&quot;/&gt;
 &lt;/xs:restriction&gt;
&lt;/xs:simpleType&gt;

&lt;!-- The method used to discover the DMARC Policy Record used during
     evaluation.  The available values are &quot;psl&quot; and &quot;treewalk&quot;,
     where &quot;psl&quot; is the method from [@?RFC7489] and the &quot;treewalk&quot;
     is described in [@I-D.ietf-dmarc-dmarcbis]. --&gt;
&lt;xs:simpleType name=&quot;DiscoveryType&quot;&gt;
 &lt;xs:restriction base=&quot;xs:string&quot;&gt;
  &lt;xs:enumeration value=&quot;psl&quot;/&gt;
  &lt;xs:enumeration value=&quot;treewalk&quot;/&gt;
 &lt;/xs:restriction&gt;
&lt;/xs:simpleType&gt;

&lt;!-- The published DMARC policy.  Unspecified tags have their
     default values. --&gt;
&lt;xs:complexType name=&quot;PolicyPublishedType&quot;&gt;
 &lt;xs:all&gt;
  &lt;!-- The domain at which the DMARC record was found. --&gt;
  &lt;xs:element name=&quot;domain&quot; type=&quot;xs:string&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- The policy published for messages from: --&gt;
  &lt;!-- * the domain. --&gt;
  &lt;xs:element name=&quot;p&quot; type=&quot;DispositionType&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- * subdomains. --&gt;
  &lt;xs:element name=&quot;sp&quot; type=&quot;DispositionType&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- * non-existent subdomains. --&gt;
  &lt;xs:element name=&quot;np&quot; type=&quot;DispositionType&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- The DKIM alignment mode. --&gt;
  &lt;xs:element name=&quot;adkim&quot; type=&quot;AlignmentType&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- The SPF alignment mode. --&gt;
  &lt;xs:element name=&quot;aspf&quot; type=&quot;AlignmentType&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- Method used to find/obtain DMARC policy --&gt;
  &lt;xs:element name=&quot;discovery_method&quot; type=&quot;DiscoveryType&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- Failure reporting options in effect. --&gt;
  &lt;xs:element name=&quot;fo&quot; type=&quot;xs:string&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- Whether testing mode was declared in the DMARC Record --&gt;
  &lt;xs:element name=&quot;testing&quot; type=&quot;TestingType&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
 &lt;/xs:all&gt;
&lt;/xs:complexType&gt;

&lt;!-- Values for Testing mode attached to policy --&gt;
&lt;xs:simpleType name=&quot;TestingType&quot;&gt;
 &lt;xs:restriction base=&quot;xs:string&quot;&gt;
  &lt;xs:enumeration value=&quot;n&quot;/&gt;
  &lt;xs:enumeration value=&quot;y&quot;/&gt;
 &lt;/xs:restriction&gt;
&lt;/xs:simpleType&gt;

&lt;!-- The DMARC-aligned authentication result. --&gt;
&lt;xs:simpleType name=&quot;DMARCResultType&quot;&gt;
 &lt;xs:restriction base=&quot;xs:string&quot;&gt;
  &lt;xs:enumeration value=&quot;pass&quot;/&gt;
  &lt;xs:enumeration value=&quot;fail&quot;/&gt;
 &lt;/xs:restriction&gt;
&lt;/xs:simpleType&gt;

&lt;!-- Reasons that may affect DMARC disposition or execution. --&gt;
&lt;xs:simpleType name=&quot;PolicyOverrideType&quot;&gt;
 &lt;xs:restriction base=&quot;xs:string&quot;&gt;
  &lt;xs:enumeration value=&quot;local_policy&quot;/&gt;
  &lt;xs:enumeration value=&quot;mailing_list&quot;/&gt;
  &lt;xs:enumeration value=&quot;other&quot;/&gt;
  &lt;xs:enumeration value=&quot;policy_test_mode&quot;/&gt;
  &lt;xs:enumeration value=&quot;trusted_forwarder&quot;/&gt;
 &lt;/xs:restriction&gt;
&lt;/xs:simpleType&gt;

&lt;!-- Override reason consists of pre-defined override type and
     free-text comment. --&gt;
&lt;xs:complexType name=&quot;PolicyOverrideReason&quot;&gt;
 &lt;xs:all&gt;
  &lt;xs:element name=&quot;type&quot; type=&quot;PolicyOverrideType&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;xs:element name=&quot;comment&quot; type=&quot;langAttrString&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
 &lt;/xs:all&gt;
&lt;/xs:complexType&gt;

&lt;!-- Taking into account everything else in the record,
     the results of applying DMARC. If alignment fails
     and the policy applied does not match the domain's
     configured policy, the reason element MUST be specified --&gt;
&lt;xs:complexType name=&quot;PolicyEvaluatedType&quot;&gt;
 &lt;xs:sequence&gt;
  &lt;xs:element name=&quot;disposition&quot; type=&quot;ActionDispositionType&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;xs:element name=&quot;dkim&quot; type=&quot;DMARCResultType&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;xs:element name=&quot;spf&quot; type=&quot;DMARCResultType&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;xs:element name=&quot;reason&quot; type=&quot;PolicyOverrideReason&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
 &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;

&lt;xs:complexType name=&quot;RowType&quot;&gt;
 &lt;xs:all&gt;
  &lt;!-- The connecting IP. IPv4address or IPv6address
       as defined in RFC 3986 section 3.2.2 --&gt;
  &lt;xs:element name=&quot;source_ip&quot; type=&quot;xs:string&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- The number of messages for which the
       PolicyEvaluatedType was applied. --&gt;
  &lt;xs:element name=&quot;count&quot; type=&quot;xs:integer&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- The DMARC disposition applied to matching messages. --&gt;
  &lt;xs:element name=&quot;policy_evaluated&quot; type=&quot;PolicyEvaluatedType&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
 &lt;/xs:all&gt;
&lt;/xs:complexType&gt;

&lt;xs:complexType name=&quot;IdentifierType&quot;&gt;
 &lt;xs:all&gt;
  &lt;!-- The RFC5322.From domain. --&gt;
  &lt;xs:element name=&quot;header_from&quot; type=&quot;xs:string&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- The RFC5321.MailFrom domain --&gt;
  &lt;xs:element name=&quot;envelope_from&quot; type=&quot;xs:string&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- The envelope recipient domain. --&gt;
  &lt;xs:element name=&quot;envelope_to&quot; type=&quot;xs:string&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
 &lt;/xs:all&gt;
&lt;/xs:complexType&gt;

&lt;!-- DKIM verification result, see RFC 8601 Section 2.7.1. --&gt;
&lt;xs:simpleType name=&quot;DKIMResultType&quot;&gt;
 &lt;xs:restriction base=&quot;xs:string&quot;&gt;
  &lt;xs:enumeration value=&quot;none&quot;/&gt;
  &lt;xs:enumeration value=&quot;pass&quot;/&gt;
  &lt;xs:enumeration value=&quot;fail&quot;/&gt;
  &lt;xs:enumeration value=&quot;policy&quot;/&gt;
  &lt;xs:enumeration value=&quot;neutral&quot;/&gt;
  &lt;xs:enumeration value=&quot;temperror&quot;/&gt;
  &lt;xs:enumeration value=&quot;permerror&quot;/&gt;
 &lt;/xs:restriction&gt;
&lt;/xs:simpleType&gt;

&lt;xs:complexType name=&quot;DKIMAuthResultType&quot;&gt;
 &lt;xs:all&gt;
  &lt;!-- The &quot;d=&quot; tag in the signature. --&gt;
  &lt;xs:element name=&quot;domain&quot; type=&quot;xs:string&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- The &quot;s=&quot; tag in the signature. --&gt;
  &lt;xs:element name=&quot;selector&quot; type=&quot;xs:string&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- The DKIM verification result. --&gt;
  &lt;xs:element name=&quot;result&quot; type=&quot;DKIMResultType&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- Any extra information (e.g., from Authentication-Results). --&gt;
  &lt;xs:element name=&quot;human_result&quot; type=&quot;langAttrString&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
 &lt;/xs:all&gt;
&lt;/xs:complexType&gt;

&lt;!-- SPF domain scope. --&gt;
&lt;xs:simpleType name=&quot;SPFDomainScope&quot;&gt;
 &lt;xs:restriction base=&quot;xs:string&quot;&gt;
  &lt;xs:enumeration value=&quot;mfrom&quot;/&gt;
 &lt;/xs:restriction&gt;
&lt;/xs:simpleType&gt;

&lt;!-- SPF verification result, see RFC 8601 Section 2.7.2. --&gt;
&lt;xs:simpleType name=&quot;SPFResultType&quot;&gt;
 &lt;xs:restriction base=&quot;xs:string&quot;&gt;
  &lt;xs:enumeration value=&quot;none&quot;/&gt;
  &lt;xs:enumeration value=&quot;pass&quot;/&gt;
  &lt;xs:enumeration value=&quot;fail&quot;/&gt;
  &lt;xs:enumeration value=&quot;softfail&quot;/&gt;
  &lt;xs:enumeration value=&quot;policy&quot;/&gt;
  &lt;xs:enumeration value=&quot;neutral&quot;/&gt;
  &lt;xs:enumeration value=&quot;temperror&quot;/&gt;
  &lt;xs:enumeration value=&quot;permerror&quot;/&gt;
 &lt;/xs:restriction&gt;
&lt;/xs:simpleType&gt;

&lt;xs:complexType name=&quot;SPFAuthResultType&quot;&gt;
 &lt;xs:all&gt;
  &lt;!-- The checked domain. --&gt;
  &lt;xs:element name=&quot;domain&quot; type=&quot;xs:string&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- The scope of the checked domain. --&gt;
  &lt;xs:element name=&quot;scope&quot; type=&quot;SPFDomainScope&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- The SPF verification result. --&gt;
  &lt;xs:element name=&quot;result&quot; type=&quot;SPFResultType&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- Any extra information (e.g., from Authentication-Results).
       The information in the field below should be for a
       person to be provided with additional information
       that may be useful when debugging SPF authentication
       issues.  This could include broken records, invalid
       DNS responses, etc. --&gt;
  &lt;xs:element name=&quot;human_result&quot; type=&quot;langAttrString&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
 &lt;/xs:all&gt;
&lt;/xs:complexType&gt;

&lt;!-- This element contains DKIM and SPF results, uninterpreted
     with respect to DMARC. --&gt;
&lt;xs:complexType name=&quot;AuthResultType&quot;&gt;
 &lt;xs:sequence&gt;
  &lt;!-- There may be zero or more DKIM signatures. --&gt;
  &lt;xs:element name=&quot;dkim&quot; type=&quot;DKIMAuthResultType&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
  &lt;!-- There may be zero or one SPF result. --&gt;
  &lt;xs:element name=&quot;spf&quot; type=&quot;SPFAuthResultType&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
 &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;

&lt;!-- This element contains all the authentication results that
     were evaluated by the receiving system for the given set of
     messages. --&gt;
&lt;xs:complexType name=&quot;RecordType&quot;&gt;
 &lt;xs:sequence&gt;
  &lt;xs:element name=&quot;row&quot; type=&quot;RowType&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;xs:element name=&quot;identifiers&quot; type=&quot;IdentifierType&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;xs:element name=&quot;auth_results&quot; type=&quot;AuthResultType&quot;
        minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
  &lt;!-- Extension at record level --&gt;
  &lt;xs:any processContents=&quot;lax&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
 &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;

&lt;xs:complexType name=&quot;ExtensionType&quot;&gt;
 &lt;xs:sequence&gt;
  &lt;xs:any processContents=&quot;lax&quot;
        minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
 &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;

&lt;!-- Parent --&gt;
&lt;xs:element name=&quot;feedback&quot;&gt;
 &lt;xs:complexType&gt;
  &lt;xs:sequence&gt;
   &lt;xs:element name=&quot;version&quot; type=&quot;xs:decimal&quot;
         minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
   &lt;xs:element name=&quot;report_metadata&quot; type=&quot;ReportMetadataType&quot;
         minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
   &lt;xs:element name=&quot;policy_published&quot; type=&quot;PolicyPublishedType&quot;
         minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
   &lt;!-- Extension at top level --&gt;
   &lt;xs:element name=&quot;extension&quot; type=&quot;ExtensionType&quot;
         minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
   &lt;!-- One record per (IP, result, IDs Auths) tuples --&gt;
   &lt;xs:element name=&quot;record&quot; type=&quot;RecordType&quot;
         minOccurs=&quot;1&quot; maxOccurs=&quot;unbounded&quot;/&gt;
  &lt;/xs:sequence&gt;
 &lt;/xs:complexType&gt;
&lt;/xs:element&gt;
&lt;/xs:schema&gt;
</sourcecode>
</section>

<section anchor="sample-report"><name>Sample Report</name>

<sourcecode type="xml">&lt;feedback xmlns=&quot;urn:ietf:params:xml:ns:dmarc-2.0&quot;&gt;
  &lt;version&gt;1.0&lt;/version&gt;
  &lt;report_metadata&gt;
    &lt;org_name&gt;Sample Reporter&lt;/org_name&gt;
    &lt;email&gt;report_sender@example-reporter.com&lt;/email&gt;
    &lt;extra_contact_info&gt;...&lt;/extra_contact_info&gt;
    &lt;report_id&gt;3v98abbp8ya9n3va8yr8oa3ya&lt;/report_id&gt;
    &lt;date_range&gt;
      &lt;begin&gt;302832000&lt;/begin&gt;
      &lt;end&gt;302918399&lt;/end&gt;
    &lt;/date_range&gt;
    &lt;generator&gt;Example DMARC Aggregate Reporter v1.2&lt;/generator&gt;
  &lt;/report_metadata&gt;
  &lt;policy_published&gt;
    &lt;domain&gt;example.com&lt;/domain&gt;
    &lt;p&gt;quarantine&lt;/p&gt;
    &lt;sp&gt;none&lt;/sp&gt;
    &lt;np&gt;none&lt;/np&gt;
    &lt;testing&gt;n&lt;/testing&gt;
    &lt;discovery_method&gt;treewalk&lt;/discovery_method&gt;
  &lt;/policy_published&gt;
  &lt;record&gt;
    &lt;row&gt;
      &lt;source_ip&gt;192.0.2.123&lt;/source_ip&gt;
      &lt;count&gt;123&lt;/count&gt;
      &lt;policy_evaluated&gt;
        &lt;disposition&gt;pass&lt;/disposition&gt;
        &lt;dkim&gt;pass&lt;/dkim&gt;
        &lt;spf&gt;fail&lt;/spf&gt;
      &lt;/policy_evaluated&gt;
    &lt;/row&gt;
    &lt;identifiers&gt;
      &lt;envelope_from&gt;example.com&lt;/envelope_from&gt;
      &lt;header_from&gt;example.com&lt;/header_from&gt;
    &lt;/identifiers&gt;
    &lt;auth_results&gt;
      &lt;dkim&gt;
        &lt;domain&gt;example.com&lt;/domain&gt;
        &lt;result&gt;pass&lt;/result&gt;
        &lt;selector&gt;abc123&lt;/selector&gt;
      &lt;/dkim&gt;
      &lt;spf&gt;
        &lt;domain&gt;example.com&lt;/domain&gt;
        &lt;result&gt;fail&lt;/result&gt;
      &lt;/spf&gt;
    &lt;/auth_results&gt;
  &lt;/record&gt;
&lt;/feedback&gt;
</sourcecode>
</section>

<section anchor="differences-from-rfc7489"><name>Differences from RFC7489</name>
<t>A bulleted list of some of the more noticeable/important differences
between DMARC <xref target="RFC7489"></xref> and this document:</t>

<ul spacing="compact">
<li>Many elements of the defining XSD have been clarified, which means the
structure of the report should be more consistent</li>
<li>The report identifier has more structure</li>
<li>Clarification about the number of domains to be addressed per report</li>
<li>The addition of extensions as part of the report structure</li>
<li>PSD is now included as part of the specification</li>
<li>Selector is now required when reporting a DKIM signature</li>
</ul>
<t>Furthermore, the original DMARC specification was contained within a single
document, <xref target="RFC7489"></xref>.  The original document has
been split into three documents, DMARCbis <xref target="I-D.ietf-dmarc-dmarcbis"></xref>, this
document, and DMARCbis Failure
Reporting <xref target="I-D.ietf-dmarc-failure-reporting"></xref>.  This allows these pieces to
potentially be altered in the future without re-opening the entire document,
as well as allowing them to move through the IETF process independently.</t>
<t>Acknowledgements</t>
<t>Many thanks are deserved to those that helped create this document.  Much of
the content was created from the original <xref target="RFC7489"></xref>, and has now been
updated to be more clear and correct some outstanding issues. The IETF
DMARC Working Group has spent much time working to finalize this effort,
and significant contributions were made by Seth Blank, Todd Herr, Steve Jones,
Murray S. Kucherawy, Barry Leiba, John Levine, Scott Kitterman, Daniel Kvål,
Martijn van der Lee, Alessandro Veseley, and Matthäus Wander.</t>
</section>

</back>

</rfc>
