Sending DMARC reports is somewhat hazardous
29 points
by zdw
3 hours ago
| 3 comments
| utcc.utoronto.ca
| HN
ZeroConcerns
1 hour ago
[-]
DMARC is a relatively recent addition to the email security space, and while it seems a bit superfluous at first, is actually quite useful! Sending and receiving the reports (which, should be noted, is entirely optional) might indeed be helped by a setup separate from the main mail handling workflow, as the 'best effort' nature and the fact that lots of systems sending DMARC reports have no business delivering mail for the sender domain in the first place are quite distinct.

Both Microsoft and Google seem to do it just fine using their main infrastructure though, so there's that. And apart from (performing or hopefully kickstarting) troubleshooting of SPF and (especially) DKIM failures, going through the forensic reports (which not everyone sends, even if they do summaries, due to message privacy concerns) will definitely satisfy your 'WTF-quota' for the day, since you get to see some spoofed messages that are usually just blackholed, and some of those are truly bizarre...

reply
flowerthoughts
1 hour ago
[-]
I also don't see why the DMARC reporting would retry sending. If the receiver isn't receiving right away, surely it's okay to just drop that report to keep the queue small.
reply
ZeroConcerns
1 hour ago
[-]
We already had 'low effort' mail queues (for things like password reset emails: these are retried 1/2/4/8 minutes apart and don't generate bounces, other than an API flag and a metrics record), to which we added 'least effort' for DMARC reports. Retry once, then forget about the entire thing other than incrementing a counter for the destination domain.
reply
mmsc
48 minutes ago
[-]
>I assume that putting a 'rua=' into your DMARC record makes it look more legitimate to (some) receiving systems.

Yes, Gmail for example will drop emails from mass-senders that don't implement both SPF and DKIM.

reply
ZeroConcerns
43 minutes ago
[-]
Still the 'r' parameters (reporting) in the DMARC record are optional, and there is no indication their presence bestows additional legitimacy to a sender.

(For me, it's sort-of the opposite: there are fun spam patterns to be found in DMARC records with reporting addresses!)

reply
elric
35 minutes ago
[-]
Receiving DMARC reports is just as hazardous. I frequently receive spam, phishing, malware, etc on my DMARC reporting addresses. I'm somewhat surprised I haven't seen any zip-bombs in DMARC reports yet.

Rejecting DMARC reports from any sender that doesn't have a correct SPF/DKIM/DMARC setup is the bare minimum.

reply