Skip to content

DMARC Weekly Summary: email who sends as innersourcecommons.org every Monday - #10

Draft
rrrutledge wants to merge 4 commits into
mainfrom
dmarc-weekly-summary
Draft

rrrutledge wants to merge 4 commits into
mainfrom
dmarc-weekly-summary

Conversation

@rrrutledge

Copy link
Copy Markdown
Contributor

Builds the weekly DMARC summary planned in #9.

Every Monday a new n8n workflow, "DMARC Weekly Summary", reads the DMARC reports that arrived at dmarc-reports@innersourcecommons.org over the past 7 days.
It emails the dmarc@innersourcecommons.org group one table with a row per sender: messages, whether DMARC passed them, and whether that sender needs checking.
Mail that fails DKIM and SPF shows as its server's IP address, so forged mail stands out.
A week with no reports, or with attachments that couldn't be read, still sends an email that says so.

nodes/DMARC_WEEKLY_SUMMARY.md covers how it works and the setup.

Setup after merge

The workflow already exists on n8n Cloud, inactive, so merging publishes it there and leaves it off.
These steps turn it on:

  1. Create the dmarc@ group with Jeff, Raimund, and Russ.
  2. Make dmarc-reports@ deliver to a Workspace mailbox.
  3. Create a Gmail OAuth2 credential in n8n for that mailbox, and put its id on both Gmail nodes in a follow-up PR.
  4. Add rua=mailto:dmarc-reports@innersourcecommons.org to the _dmarc TXT record.
  5. Activate the workflow.

Review notes

Three review findings were rejected:

  • Publish step will 404 (rejected twice). The workflow was created on n8n Cloud under that id before this PR, and it answers 200.
  • Remove the number-formatting helper. It is used in three places, and removing it would save about one line.
  • A row with no message count shows "yes". A well-formed report always has a count.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AEavKHdiU4rafbx7VXzxqx

rrrutledge and others added 4 commits November 25, 2026 21:14
… Monday

Reads the week's DMARC aggregate reports from dmarc-reports@, unzips them, and emails the dmarc@ group one table with a row per sender, as planned in #9.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AEavKHdiU4rafbx7VXzxqx
Read whole days and Spam too, skip an attachment that won't unzip, name SPF-only servers and own-selector mail better, accept namespaced tags, and document that the Gmail credential id belongs in the JSON.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AEavKHdiU4rafbx7VXzxqx
…t unreadable attachments

Second pre-PR review round: forged mail now shows as its server's IP instead of borrowing a real sender's name, empty domains no longer make a blank row, and the email says when attachments arrived but couldn't be read. The naming order lives in one place, the summarize-reports.js header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AEavKHdiU4rafbx7VXzxqx
…chments, leave out Trash

Third pre-PR review round.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AEavKHdiU4rafbx7VXzxqx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant