Use case
Check SPF, DKIM and DMARC for a domain
Weak or missing SPF and DMARC records let anyone send mail that appears to come from your domain. Spiderfootplus reads the domain's mail records, checks them against the rules mail providers enforce, and raises an email-spoofing finding when the policies would not stop a forged sender.
01Read the records
dns_records collects MX, NS, TXT, SPF, DMARC, CAA and SOA records and names the mail and DNS providers.
$ spiderfootplus try dns_records DOMAIN_NAME example.com02Grade the policies
email_security flags permissive SPF (+all, ?all, no -all) and unenforced DMARC (p=none). mail_security checks the SPF 10-DNS-lookup limit, MTA-STS enforcement and TLS-RPT, and discovers DKIM selectors and BIMI.
$ spiderfootplus scan example.com -m dns_records,email_security,mail_security03Check many domains at once
Pass several domains, or a file with one per line, and write a Markdown report you can attach to a ticket.
$ spiderfootplus scan -f domains.txt -m dns_records,email_security,mail_security$ spiderfootplus report <scan-id> -o md --out mail-auth.md
Only scan assets you own or are authorised in writing to assess. See keeping a scan in scope. New to Spiderfootplus? Install it first.
Findings it can raise
Questions
What is the difference between SPF, DKIM and DMARC?
SPF lists the servers allowed to send mail for a domain. DKIM signs each message so the receiver can check it was not altered. DMARC tells receivers what to do when SPF and DKIM fail (none, quarantine or reject) and where to send reports.
Why does my SPF record fail with too many lookups?
SPF allows at most 10 DNS lookups (include, a, mx, ptr, exists, redirect). Each include of a mail provider can use several. mail_security counts them and flags records over the limit, which receivers treat as a permanent error.
Is DMARC p=none enough?
No. p=none only asks for reports; forged mail is still delivered. Move to p=quarantine or p=reject once the reports show your legitimate mail passing.