Menu

We drop DMARC reports by looking for "dmarc" in the subject, and the spec's own subject line does not contain the word
📰

We drop DMARC reports by looking for "dmarc" in the subject, and the spec's own subject line does not contain the word

DEV Community: typescript·Daniel Pertu·15 days ago
#rjQYwDjU
#devtotypescript#devto#dev#subject#report
Reading 0:00
15s threshold

Notifio sends you email when a new rental listing appears, so the domain has to be able to receive email too: licence questions, replies to alerts, and whatever else lands on a domain that publishes addresses on its help page .

Receiving is a 179 line webhook. Resend takes delivery, posts an email.received event to /api/webhooks/resend , and the route forwards the message to one personal mailbox with replyTo set to whoever wrote in. Two weeks ago it got one more guard, in a commit called "Skip DMARC reports in email forwarding":

// DMARC reports stay in Resend rather than being forwarded if ( /dmarc/i . test ( String ( subject ?? "" ))) { console . log ( " [resend-webhook] Not forwarding a DMARC report " ); return ; }

Enter fullscreen mode

Exit fullscreen mode

I went to check that against the specification this week, and the specification is not on my side.

What a DMARC report's subject actually says

RFC 7489, section 7.2.1.1, gives an ABNF for the subject of an aggregate report.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.