← All N8N workflows
Data & databasesCompressionDate TimeEmail Read ImapEmail SendExtract From File

Parse DMARC reports

Configured with Compression, Date Time, Email Read Imap, Email Send, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
MessagingEmail Trigger (IMAP)Email Read ImapTransformEnd date formatDate TimeRoutingIf multiple records toparseIfTransformMap fields for DB inputand parseEdit FieldsTransformBegin format dateDate TimeData storeInput into databaseMy SqlRoutingIf issue with DKIM orSPFIfTransformRename KeysRename KeysTransformRename column forconsistencyEdit FieldsTransformUnzip FileCompressionTransformExtract XML dataExtract From FileTransformParse XML data to JSONXmlTransformSplit Out For SeparateEntriesSplit OutMessagingSlack Post Message OnChannelSlackMessagingSend Error NotificationEmailEmail Send

Node categories in this workflow

  • Messaging
  • Transform
  • Routing
  • Data store

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Email Trigger (IMAP)MessagingEmail Read ImapSee node parameters
End date formatTransformDate TimeformatDate
If multiple records to parseRoutingIfSee node parameters
Map fields for DB input and parseTransformEdit FieldsSee node parameters
Begin format dateTransformDate TimeformatDate
Input into databaseData storeMy SqlSee node parameters
If issue with DKIM or SPFRoutingIfSee node parameters
Rename KeysTransformRename KeysSee node parameters
Rename column for consistencyTransformEdit FieldsSee node parameters
Unzip FileTransformCompressionSee node parameters
Extract XML dataTransformExtract From Filexml
Parse XML data to JSONTransformXmlSee node parameters
Split Out For Separate EntriesTransformSplit OutSee node parameters
Slack Post Message On ChannelMessagingSlackSee node parameters
Send Error Notification EmailMessagingEmail SendSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • imap
  • mySql
  • slackOAuth2Api

Workflow notes

How it works

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

Preparation

This line is responsible for taking data from email and parsing it into JSON understandable by n8n

Mapping

Mapping

This line is responsible for treating cases when XML has multiple info for domain. One DMARC report can contain more than one entries.

Last node is responsible for matching data with database structure

Date translate

Date translate

This line is responsible for translating date format into understandable by MySQL/MariaDB

In next node data is being input into MySQL/MariaDB

Notifications

Notifications

Last two nodes are responsible for sending notifications in case IF inside DMARC report is reported any issue with SPF or DKIM

Parse DMARC reports

Parse DMARC reports

Purpose and structure

This folder contains the Parse DMARC reports workflow. Its executable nodes use compression, dateTime, emailReadImap, emailSend, extractFromFile, if, mySql, renameKeys, set, slack, splitOut, xml. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Inspect connections; no recognized trigger.

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Datetime/1296_Datetime_Splitout_Process.json MIT; preserve source notices.

More in Data & databases