FM
FlowMarket
Email & Outreach Advanced ⚡ 20 n8n Nodes

Parse DMARC reports save them in database and notify on DKIM or

Who is it for If you are a postmaster or you manage email server, you can set up DKIM and SPF records to ensure that spoofing your email address is hard. On ...

🔌 Nodes & Integrations Used (9)

Email Read Imap Date Time My Sql Rename Keys Compression Extract From File Xml Slack Email Send

📖 Implementation & Setup Guide

Who is it for If you are a postmaster or you manage email server, you can set up DKIM and SPF records to ensure that spoofing your email address is hard. On your domain you can also set up DMARC record to receive XML reports from email providers (rua tag). Those reports contain data if email they received passed DKIM and SPF verifications.

Since DMARC email is public, you will receive a lot of emails from email providers, not only if DKIM/SPF fail. There is no need for it - you probably only need to know if SPF/DKIM failed.

So this script is intended to automatically parse all DMARC reports that come from email providers, but ONLY send you notification if SPF or DKIM failed - meaning that either someone tries to spoof your email or your DKIM/SPF is improperly set up.

How it works - script monitors postmaster email for DMARC reprots (rua) - unpacks report and parses XML into JSON - maps JSON and formats fields for MySQL/MariaDB input - inputs into database - sends notification on DKIM or SPF failure

Remember to set up - email input mailbox - notification channels - for slack - for email

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Parse_DMARC_reports_save_them_in_database_and_notify_on_DKIM_or.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related Email & Outreach Workflows

View All in Email & Outreach →