Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Security & Compliance

Security & Compliance

Parse DMARC Reports into MySQL and Alert Slack

When a DMARC report email arrives over IMAP, it unpacks and parses the records, stores them in MySQL and alerts Slack on problems.

What it does

## 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

The steps

  1. Email Trigger (IMAP)
  2. End date format
  3. If multiple records to parse
  4. Map fields for DB input and parse
  5. Begin format date
  6. Input into database
  7. If issue with DKIM or SPF
  8. Rename Keys
  9. Rename column for consistency
  10. Unzip File
  11. Extract XML data
  12. Parse XML data to JSON
  13. Split Out For Separate Entries
  14. Slack Post Message On Channel

15 steps in total.

Similar automations