WorkflowSlackOpen

Parse DMARC reports

Triggered manually or by an app event. Connects Compression, Condition, Date Time, Email, Extract From File, MySQL, Rename Keys, Slack. How it works - monitor postmaster email for DKIM reprots - unpack report and parse XML - map and format fields for DB input - input into database - send notification on DKIM or SPF failure Remember to set up - email input mailbox - notification channels Preparatio

Front matter
name: Parse DMARC reports
description: Triggered manually or by an app event. Connects Compression, Condition, Date Time, Email, Extract From File, MySQL, Rename Keys, Slack. ## How it works - monitor postmaster email for DKIM reprots - unpack report and parse XML - map and format fields for DB input - input into database - send notification on DKIM or SPF failure ## Remember to set up - email input mailbox - notification channels ## Preparation This line is responsible for taking data from email and parsing it into JSON understandable by n8n ## Mapping This line is responsible for treating cases when XML has multiple info for domain. One DMARC report can contain
category: Automation
kind: Workflow
software: Compression|Condition|Date Time|Email|Extract From File|MySQL|Rename Keys|Slack|Split Out|Xml

Parse DMARC reports

Triggered manually or by an app event. Connects Compression, Condition, Date Time, Email, Extract From File, MySQL, Rename Keys, Slack. ## How it works

  • monitor postmaster email for DKIM reprots
  • unpack report and parse XML
  • map and format fields for DB input
  • input into database
  • send notification on DKIM or SPF failure

Remember to set up

  • email input mailbox
  • notification channels ## Preparation

This line is responsible for taking data from email and parsing it into JSON understandable by n8n ## Mapping This line is responsible for treating cases when XML has multiple info for domain. One DMARC report can contain

Steps

  • Manual Trigger (manualTrigger)
  • Email Trigger (IMAP) (emailReadImap)
  • End date format (dateTime)
  • If multiple records to parse (if)
  • Map fields for DB input and parse (set)
  • Begin format date (dateTime)
  • Input into database (mySql)
  • If issue with DKIM or SPF (if)
  • Rename Keys (renameKeys)
  • Rename column for consistency (set)
  • Sticky Note (stickyNote)
  • Unzip File (compression)
  • Extract XML data (extractFromFile)
  • Parse XML data to JSON (xml)
  • Sticky Note1 (stickyNote)
  • Sticky Note2 (stickyNote)
  • Split Out For Separate Entries (splitOut)
  • Sticky Note3 (stickyNote)
  • Sticky Note4 (stickyNote)
  • Slack Post Message On Channel (slack)
  • Send Error Notification Email (emailSend)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source: https://github.com/Zie619/n8n-workflows/blob/main/Datetime/1296_Datetime_Splitout_Process.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.