Work Project

Bulk email security auditor

A PowerShell tool that takes a spreadsheet of prospects, checks each domain’s email security, scores it, and writes a personalized outreach email from the findings.

Type
Security
Tools
PowerShell, DNS lookups for SPF, DKIM and DMARC, CSV in and out

The problem

Checking a prospect’s SPF, DKIM and DMARC records by hand took a few minutes per domain and was done a little differently each time. Writing an outreach email that referred to what we found took longer still, so it rarely happened.

What I built

A PowerShell script that reads a CSV of email addresses, looks up the MX, SPF, DKIM and DMARC records for each domain, and scores the result out of three. For every domain it writes a short, personalized email that leads with the specific gap it found, and saves everything back to a spreadsheet the sales team can work from.

What changed

A list of 20,000 addresses was analyzed in a single run, about forty hours of checking by hand, and the outreach that came out of it closed two sales.

Terminal window titled Bulk Security Analysis: the script validates the CSV, counts the addresses, estimates the time, names the output file, and works through each domain’s MX records
The scan running: it validates the CSV, estimates the time, and works through each domain’s records.

20,000

Addresses analyzed in one run

40 hrs

Of manual checking saved

2

Sales from the outreach

More pictures

Spreadsheet output with one row per email address: provider, SPF, DKIM and DMARC status and descriptions, DMARC policy and strength, a security score, an overall rating, and the generated sales outreach email
The output: one row per address with the SPF, DKIM, and DMARC findings, a score, and the draft email.

Related