-
Notifications
You must be signed in to change notification settings - Fork 3
/
draft-ietf-dmarc-failure-reporting-01.txt
616 lines (406 loc) · 24 KB
/
draft-ietf-dmarc-failure-reporting-01.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
DMARC Working Group S. M. Jones, Ed.
Internet-Draft DMARC.org
Obsoletes: 7489 (if approved) A. Vesely, Ed.
Intended status: Standards Track Tana
Expires: 22 August 2021 18 February 2021
Domain-based Message Authentication, Reporting, and Conformance (DMARC)
Failure Reporting
draft-ietf-dmarc-failure-reporting-01
Abstract
Domain-based Message Authentication, Reporting, and Conformance
(DMARC) is a scalable mechanism by which a domain owner can request
feedback about email messages using their domain in the From: address
field. This document describes "failure reports," or "failed message
reports," which provide details about individual messages that failed
to authenticate according to the DMARC mechanism.
Status of This Memo
This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."
This Internet-Draft will expire on 22 August 2021.
Copyright Notice
Copyright (c) 2021 IETF Trust and the persons identified as the
document authors. All rights reserved.
Jones & Vesely Expires 22 August 2021 [Page 1]
Internet-Draft DMARC Failure Reporting February 2021
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents (https://trustee.ietf.org/
license-info) in effect on the date of publication of this document.
Please review these documents carefully, as they describe your rights
and restrictions with respect to this document. Code Components
extracted from this document must include Simplified BSD License text
as described in Section 4.e of the Trust Legal Provisions and are
provided without warranty as described in the Simplified BSD License.
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Terminology and Definitions . . . . . . . . . . . . . . . . . 3
3. Failure Reports . . . . . . . . . . . . . . . . . . . . . . . 3
3.1. Reporting Format Update . . . . . . . . . . . . . . . . . 4
3.2. Verifying External Destinations . . . . . . . . . . . . . 5
3.3. Transport . . . . . . . . . . . . . . . . . . . . . . . . 5
4. Privacy Considerations . . . . . . . . . . . . . . . . . . . 5
4.1. Data Exposure Considerations . . . . . . . . . . . . . . 5
4.2. Report Recipients . . . . . . . . . . . . . . . . . . . . 6
5. Security Considerations . . . . . . . . . . . . . . . . . . . 6
6. Normative References . . . . . . . . . . . . . . . . . . . . 7
7. Informative References . . . . . . . . . . . . . . . . . . . 7
Appendix A. Examples . . . . . . . . . . . . . . . . . . . . . . 7
A.1. Entire Domain, Monitoring Only, Per-Message Reports . . . 8
A.2. Per-Message Failure Reports Directed to Third Party . . . 9
Appendix B. Change Log . . . . . . . . . . . . . . . . . . . . . 10
Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 11
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 11
1. Introduction
Domain-based Message Authentication, Reporting, and Conformance
(DMARC) [I-D.ietf-dmarc-dmarcbis] is a scalable mechanism by which a
mail-originating organization can express domain-level policies and
preferences for message validation, disposition, and reporting, that
a mail-receiving organization can use to improve mail handling. This
document focuses on one type of reporting that can be requested under
DMARC.
Failure reports provide detailed information about the failure of a
single message or a group of similar messages failing for the same
reason. They are meant to aid in cases where a domain owner is
unable to detect why failures reported in aggregate form did occur.
It is important to note these reports can contain either the header
or the entire content of a failed message, which in turn may contain
personally identifiable information, which should be considered when
deciding whether to generate such reports.
Jones & Vesely Expires 22 August 2021 [Page 2]
Internet-Draft DMARC Failure Reporting February 2021
2. Terminology and Definitions
This section defines terms used in the rest of the document.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in BCP
14 [RFC2119] [RFC8174] when, and only when, they appear in all
capitals, as shown here.
Readers are expected to be familiar with the contents of
[I-D.ietf-dmarc-dmarcbis], specifically the terminology and
definitions section.
3. Failure Reports
Failure reports can supply more detailed information about messages
that failed to authenticate, enabling the Domain Owner to determine
exactly what might be causing those specific failures.
Failure reports are normally generated and sent almost immediately
after the Mail Receiver detects a DMARC failure. Rather than waiting
for an aggregate report, these reports are useful for quickly
notifying the Domain Owners when there is an authentication failure.
Whether the failure is due to an infrastructure problem or the
message is inauthentic, failure reports also provide more information
about the failed message than is available in an aggregate report.
These reports should include as much of the message header and body
as possible, consistent with the reporting party's privacy policies,
to enable the Domain Owner to diagnose the authentication failure.
When a Domain Owner requests failure reports for the purpose of
forensic analysis, and the Mail Receiver is willing to provide such
reports, the Mail Receiver generates and sends a message using the
format described in [RFC6591]; this document updates that reporting
format, as described in Section 3.1.
The destination(s) and nature of the reports are defined by the "ruf"
and "fo" tags as defined in Section 6.3 of [I-D.ietf-dmarc-dmarcbis].
Where multiple URIs are selected to receive failure reports, the
report generator MUST make an attempt to deliver to each of them.
An obvious consideration is the denial-of-service attack that can be
perpetrated by an attacker who sends numerous messages purporting to
be from the intended victim Domain Owner but that fail both SPF and
DKIM; this would cause participating Mail Receivers to send failure
Jones & Vesely Expires 22 August 2021 [Page 3]
Internet-Draft DMARC Failure Reporting February 2021
reports to the Domain Owner or its delegate in potentially huge
volumes. Accordingly, participating Mail Receivers are encouraged to
aggregate these reports as much as is practical, using the Incidents
field of the Abuse Reporting Format ([RFC5965]). Various aggregation
techniques are possible, including the following:
* only send a report to the first recipient of multi-recipient
messages;
* store reports for a period of time before sending them, allowing
detection, collection, and reporting of like incidents;
* apply rate limiting, such as a maximum number of reports per
minute that will be generated (and the remainder discarded).
3.1. Reporting Format Update
Operators implementing this specification also implement an augmented
version of [RFC6591] as follows:
1. A DMARC failure report includes the following ARF header fields,
with the indicated normative requirement levels:
* Identity-Alignment (REQUIRED; defined below)
* Delivery-Result (OPTIONAL)
* DKIM-Domain, DKIM-Identity, DKIM-Selector (REQUIRED if the
message was signed by DKIM)
* DKIM-Canonicalized-Header, DKIM-Canonicalized-Body (OPTIONAL
if the message was signed by DKIM)
* SPF-DNS (REQUIRED)
2. The "Identity-Alignment" field is defined to contain a comma-
separated list of authentication mechanism names that produced an
aligned identity, or the keyword "none" if none did. ABNF:
id-align = "Identity-Alignment:" [CFWS]
( "none" /
dmarc-method *( [CFWS] "," [CFWS] dmarc-method ) )
[CFWS]
dmarc-method = ( "dkim" / "spf" )
; each may appear at most once in an id-align
Jones & Vesely Expires 22 August 2021 [Page 4]
Internet-Draft DMARC Failure Reporting February 2021
3. Authentication Failure Type "dmarc" is defined, which is to be
used when a failure report is generated because some or all of
the authentication mechanisms failed to produce aligned
identifiers. Note that a failure report generator MAY also
independently produce an AFRF message for any or all of the
underlying authentication methods.
3.2. Verifying External Destinations
The procedure described for aggragate reports Section 2.1 of
[I-D.ietf-dmarc-aggregate-reporting] applies to failure reports as
well.
3.3. Transport
Email streams carrying DMARC failure reports SHOULD provide DMARC-
based authentication, so as to produce "dmarc=pass". This
requirement is a MUST in case the report is sent through a host
having a DMARC record with a ruf= tag. Indeed, special care must be
taken of authentication in that case, as failure to authenticate
failure reports may result in mail loops.
Reporters SHOULD rate limit the number of failure reports sent to any
recipient to avoid overloading recipient systems. Again, in case the
reports being sent are in turn at risk of being reported for DMARC
authentication failure, reporters MUST make sure that possible mail
loop are stopped.
4. Privacy Considerations
This section discusses issues specific to private data that may be
included in the DMARC reporting functions.
4.1. Data Exposure Considerations
Failed-message reporting provides message-specific details pertaining
to authentication failures. Individual reports can contain message
content as well as trace header fields. Domain Owners are able to
analyze individual reports and attempt to determine root causes of
authentication mechanism failures, gain insight into
misconfigurations or other problems with email and network
infrastructure, or inspect messages for insight into abusive
practices.
These reports may expose sender and recipient identifiers (e.g.,
RFC5322.From addresses), and although the [RFC6591] format used for
failed-message reporting supports redaction, failed-message reporting
is capable of exposing the entire message to the report recipient.
Jones & Vesely Expires 22 August 2021 [Page 5]
Internet-Draft DMARC Failure Reporting February 2021
Domain Owners requesting reports will receive information about mail
claiming to be from them, which includes mail that was not, in fact,
from them. Information about the final destination of mail where it
might otherwise be obscured by intermediate systems will therefore be
exposed.
When message-forwarding arrangements exist, Domain Owners requesting
reports will also receive information about mail forwarded to domains
that were not originally part of their messages' recipient lists.
This means that destination domains previously unknown to the Domain
Owner may now become visible.
Disclosure of information about the messages is being requested by
the entity generating the email in the first place, i.e., the Domain
Owner and not the Mail Receiver, so this may not fit squarely within
existing privacy policy provisions. For some providers, failed-
message reporting is viewed as a function similar to complaint
reporting about spamming or phishing and is treated similarly under
the privacy policy. Report generators (i.e., Mail Receivers) are
encouraged to review their reporting limitations under such policies
before enabling DMARC reporting.
4.2. Report Recipients
A DMARC 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.
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.
5. Security Considerations
Considerations discussed in Section 11 of [I-D.ietf-dmarc-dmarcbis]
apply.
Jones & Vesely Expires 22 August 2021 [Page 6]
Internet-Draft DMARC Failure Reporting February 2021
In addition, note that Organizational Domains are only an
approximation to actual domain ownership. Therefore, reports may be
sent to someone unrelated to the actual sender or domain owner. That
makes considerations in Section 4.1 all the more relevant.
6. Normative References
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997,
<https://www.rfc-editor.org/info/rfc2119>.
[RFC6591] Fontana, H., "Authentication Failure Reporting Using the
Abuse Reporting Format", RFC 6591, DOI 10.17487/RFC6591,
April 2012, <https://www.rfc-editor.org/info/rfc6591>.
[I-D.ietf-dmarc-dmarcbis]
Gustafsson, E., Herr, T., and J. Levine, "Domain-based
Message Authentication, Reporting, and Conformance
(DMARC)", Work in Progress, Internet-Draft, draft-ietf-
dmarc-dmarcbis-00, 11 November 2020,
<https://tools.ietf.org/html/draft-ietf-dmarc-dmarcbis-
00>.
[I-D.ietf-dmarc-aggregate-reporting]
Brotman, A., "DMARC Aggregate Reporting", Work in
Progress, Internet-Draft, draft-ietf-dmarc-aggregate-
reporting-00, 12 November 2020,
<https://tools.ietf.org/html/draft-ietf-dmarc-aggregate-
reporting-00>.
7. Informative References
[RFC5965] Shafranovich, Y., Levine, J., and M. Kucherawy, "An
Extensible Format for Email Feedback Reports", RFC 5965,
DOI 10.17487/RFC5965, August 2010,
<https://www.rfc-editor.org/info/rfc5965>.
[RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
May 2017, <https://www.rfc-editor.org/info/rfc8174>.
Appendix A. Examples
This section presents some examples related to the use of DMARC
reporting functions.
Jones & Vesely Expires 22 August 2021 [Page 7]
Internet-Draft DMARC Failure Reporting February 2021
A.1. Entire Domain, Monitoring Only, Per-Message Reports
The owners of the domain "example.com" have deployed SPF and DKIM on
their messaging infrastructure. As described in, Appendix B.2.1 of
[I-D.ietf-dmarc-aggregate-reporting] they have used the aggregate
reporting to discover some messaging systems that had not yet
implemented DKIM correctly. However, they are still seeing periodic
authentication failures. In order to diagnose these intermittent
problems, they wish to request per-message failure reports when
authentication failures occur.
Not all Receivers will honor such a request, but the Domain Owner
feels that any reports it does receive will be helpful enough to
justify publishing this record. The default per-message report
format ([RFC6591]) meets the Domain Owner's needs in this scenario.
The Domain Owner accomplishes this by adding the following to its
policy record:
* Per-message failure reports should be sent via email to the
address "[email protected]" ("ruf=mailto:auth-
The updated DMARC policy record might look like this when retrieved
using a common command-line tool (the output shown would appear on a
single line but is wrapped here for publication):
% dig +short TXT _dmarc.example.com.
"v=DMARC1; p=none; rua=mailto:[email protected];
ruf=mailto:[email protected]"
To publish such a record, the DNS administrator for the Domain Owner
might create an entry like the following in the appropriate zone file
(following the conventional zone file format):
; DMARC record for the domain example.com
_dmarc IN TXT ( "v=DMARC1; p=none; "
"rua=mailto:[email protected]; "
"ruf=mailto:[email protected]" )
Jones & Vesely Expires 22 August 2021 [Page 8]
Internet-Draft DMARC Failure Reporting February 2021
A.2. Per-Message Failure Reports Directed to Third Party
The Domain Owner from the previous example is maintaining the same
policy but now wishes to have a third party receive and process the
per-message failure reports. Again, not all Receivers will honor
this request, but those that do may implement additional checks to
validate that the third party wishes to receive the failure reports
for this domain.
The Domain Owner needs to alter its policy record from Appendix A.1
as follows:
* Per-message failure reports should be sent via email to the
address "[email protected]" ("ruf=mailto:auth-
The DMARC policy record might look like this when retrieved using a
common command-line tool (the output shown would appear on a single
line but is wrapped here for publication):
% dig +short TXT _dmarc.example.com.
"v=DMARC1; p=none; rua=mailto:[email protected];
ruf=mailto:[email protected]"
To publish such a record, the DNS administrator for the Domain Owner
might create an entry like the following in the appropriate zone file
(following the conventional zone file format):
; DMARC record for the domain example.com
_dmarc IN TXT ( "v=DMARC1; p=none; "
"rua=mailto:[email protected]; "
"ruf=mailto:[email protected]" )
Because the address used in the "ruf" tag is outside the
Organizational Domain in which this record is published, conforming
Receivers will implement additional checks as described in
Section 3.2 of this document. In order to pass these additional
checks, the third party will need to publish an additional DNS record
as follows:
* Given the DMARC record published by the Domain Owner at
"_dmarc.example.com", the DNS administrator for the third party
will need to publish a TXT resource record at
"example.com._report._dmarc.thirdparty.example.net" with the value
"v=DMARC1;".
Jones & Vesely Expires 22 August 2021 [Page 9]
Internet-Draft DMARC Failure Reporting February 2021
The resulting DNS record might look like this when retrieved using a
common command-line tool (the output shown would appear on a single
line but is wrapped here for publication):
% dig +short TXT example.com._report._dmarc.thirdparty.example.net
"v=DMARC1;"
To publish such a record, the DNS administrator for example.net might
create an entry like the following in the appropriate zone file
(following the conventional zone file format):
; zone file for thirdparty.example.net
; Accept DMARC failure reports on behalf of example.com
example.com._report._dmarc IN TXT "v=DMARC1;"
Intermediaries and other third parties should refer to Section 3.2
for the full details of this mechanism.
Appendix B. Change Log
[RFC Editor: Please remove this section prior to publication.]
00 to 01
* Replace references to RFC7489 with references to I-D.ietf-
dmarc-dmarcbis.
* Replace the 2nd paragraph in the Introduction with the text
proposed by Ned for Ticket #55, which enjoys some consensus:
https://mailarchive.ietf.org/arch/msg/dmarc/
HptVyJ9SgrfxWRbeGwORagPrhCw
* Strike a spurious sentence about criticality of feedback,
which was meant for feedback in general, not failure reports.
In fact, failure reports are not critical to establishing and
maintaining accurate authentication deployments. Still
attributable to Ticket #55.
* Remove the content of section "Verifying External
Destinations" and refer to I-D.ietf-dmarc-aggregate-reporting.
* Remove the content of section "Security Considerations" and
refer to I-D.ietf-dmarc-dmarcbis.
* Slightly tweak the wording of the example in Appendix A.1 so
that it makes sense standing alone.
Jones & Vesely Expires 22 August 2021 [Page 10]
Internet-Draft DMARC Failure Reporting February 2021
* Remove the sentence containing "must include any URI(s)", as
the issue arose https://mailarchive.ietf.org/arch/msg/dmarc/
mFk0qiTCy8tzghRvcxus01W_Blw.
* Add paragraph in Security Considerations, noting that note
that Organizational Domains are only an approximation...
* Add a Transport section, mentioning DMARC conformance and
failure report mail loops (Ticket #28).
Acknowledgements
DMARC and the draft version of this document submitted to the
Independent Submission Editor were the result of lengthy efforts by
an informal industry consortium: DMARC.org (see http://dmarc.org
(http://dmarc.org)). Participating companies included Agari,
American Greetings, AOL, Bank of America, Cloudmark, Comcast,
Facebook, Fidelity Investments, Google, JPMorgan Chase & Company,
LinkedIn, Microsoft, Netease, PayPal, ReturnPath, The Trusted Domain
Project, and Yahoo!. Although the contributors and supporters are
too numerous to mention, notable individual contributions were made
by J. Trent Adams, Michael Adkins, Monica Chew, Dave Crocker, Tim
Draegen, Steve Jones, Franck Martin, Brett McDowell, and Paul Midgen.
The contributors would also like to recognize the invaluable input
and guidance that was provided early on by J.D. Falk.
Additional contributions within the IETF context were made by Kurt
Anderson, Michael Jack Assels, Les Barstow, Anne Bennett, Jim Fenton,
J. Gomez, Mike Jones, Scott Kitterman, Eliot Lear, John Levine, S.
Moonesamy, Rolf Sonneveld, Henry Timmes, and Stephen J. Turnbull.
Authors' Addresses
Steven M Jones (editor)
DMARC.org
Email: [email protected]
Alessandro Vesely (editor)
Tana
Email: [email protected]
Jones & Vesely Expires 22 August 2021 [Page 11]