middle.network · Outside-in Use Case Brief AI & SecOps Automation · https://middle.network/use-cases/automated-dmarc-xml-report-pipeline/
AI & SecOps Automation Email SecOps · Binary XML Pipeline

Turn emailed DMARC .zip and .gz reports into daily Slack digests automatically

Connect an IMAP or Gmail inbox in n8n straight to our native binary DMARC attachment parser so unauthorized senders surface automatically without manual uploads.

The problem

DMARC rua mailboxes fill up with hundreds of compressed .xml.gz and .zip reports from Google, Microsoft and Yahoo that nobody ever opens.

Why internal tools miss it

Standard email-automation tools cannot decompress gzip/zip XML reports, correlate sending IPs to ASNs and summarise alignment pass rates cleanly.

How middle.network solves it

Our official n8n node reads binary email attachments directly, decompresses and parses DMARC XML via middle.network, and outputs clean pass/fail sender summaries.

Hypothetical scenario Example target: company-demo.com

Eliminating a third-party DMARC SaaS subscription with one n8n workflow

Security Ops manages 12 domains sending aggregate reports to dmarc@company.com and wants clean failure alerts without paying per-domain DMARC SaaS fees.

Without outside-in verification

Hundreds of unread XML attachments pile up in a shared mailbox while a forgotten third-party billing sender silently fails DKIM.

With middle.network
  1. Step 1
    Trigger n8n on New RUA Email Attachment

    Gmail/IMAP trigger downloads incoming .xml, .gz or .zip DMARC attachments automatically.

  2. Step 2
    Parse via Official Middle Network Node

    The DMARC Report Analyzer operation unpacks the binary attachment and returns per-IP SPF/DKIM alignment counts plus a plain-English verdict.

  3. Step 3
    Enrich Failing IPs & Post to Slack

    Any failing sender IP is automatically enriched with Reverse DNS and ASN Lookup, posting a clean daily summary to #email-security.

Outside-in tool playbook

Run these exact live checks in order - free on the website with zero sign-up.

Email delivery and reputation
1. Parse binary XML/.gz/.zip

DMARC report analyser

Which IPs passed or failed SPF and DKIM alignment yesterday?

Try live
DNS records
2. Resolve failing sender PTR

Reverse DNS lookup

Which mail provider owns the failing sending IP?

Try live
Network and routing
3. Identify sender network

BGP / ASN lookup

Is the failing IP a known SaaS mailer or an unknown spoofer?

Try live
Email authentication
4. Verify live policy readiness

DMARC checker

Is the domain ready to promote from p=none to p=reject?

Try live

One run, two audiences: Plain English and Technical proof

Every check outputs executive-ready wording alongside raw technical verification so teams never waste time translating findings.

Plain English (Daily #email-security Digest)Stakeholder-ready

Yesterday’s Google and Microsoft DMARC reports covered 14,280 messages: 99.6% passed. One legitimate CRM IP (54 messages) failed DKIM alignment and 12 spoofed attempts were flagged.

Next step: Enable DKIM signing in the CRM before advancing DMARC to p=reject.
Technical Detail (n8n Parsed Payload)Engineer view
dmarc-reports: total=14280 | aligned=14214 (99.6%) | unaligned=66
unaligned IP 198.51.100.44 -> reverse-dns: mail.crm-vendor.net (legit, needs DKIM)
unaligned IP 203.0.113.99 -> asn: unknown residential ISP (spoof attempt)
Scale from ad-hoc check to automation

Built-in binary attachment support in n8n and REST API

DMARC Report Analyzer, Reverse DNS, ASN Lookup and DMARC Checker are all passive endpoints available on free self-serve API keys and the official n8n node today.

More AI & Automation use cases

Common questions

Connect an IMAP or Gmail inbox in n8n straight to our native binary DMARC attachment parser so unauthorized senders surface automatically without manual uploads.

Try DMARC Report Analyzer live
Does the n8n node handle .gz and .zip attachments without extra decompress nodes?
Yes. The official n8n-nodes-middle-network node reads binary email attachments directly and handles .xml, .gz and .zip formats cleanly.
How much does parsing a DMARC report cost in API units?
It is a lightweight local/parser operation costing just 1 unit per call on your free 1,000-unit daily allowance.
Can we also test a report manually in the browser first?
Yes. Drop any .xml, .gz or .zip file straight into /email-delivery/dmarc-report-analyzer/ to inspect the output immediately.