Sub topic 16
A compliance checklist for your marketing program
This chapter assumes you have read the earlier chapters on SPF, DKIM, DMARC, alignment, one-click unsubscribe, and spam complaint rates. Here you combine them into one audit you can repeat every quarter.
How to run the audit
Work from the cheapest checks to the most involved. DNS checks take minutes. Header checks need a real test message. Reputation checks need weeks of data.
The checklist
| Area | Pass condition | How to check |
|---|---|---|
| SPF | One SPF record, ending in `-all` or `~all`, covering every sender | `dig +short TXT example.com` |
| DKIM | Every sending platform signs with your domain | `header.d` in test message headers |
| DMARC | Record exists with at least `p=none` and a working `rua` mailbox | `dig +short TXT _dmarc.example.com` |
| Alignment | SPF or DKIM passes with a domain matching the From domain | `Authentication-Results` header |
| Reverse DNS | Each sending IP has a PTR record | `dig +short -x IP` |
| TLS | Your servers send over TLS | Received headers on a test message |
| Unsubscribe | Both List-Unsubscribe headers present and signed; POST works | Header check and a `curl` test |
| Complaints | Rate stays under 0.10% and never reaches 0.30% | Google Postmaster Tools |
| Consent | Every recipient opted in, and inactive addresses are pruned | List review |
Automate the DNS checks
Keep a script in your repository so the DNS part takes seconds. Replace the domain, selector, and IP with your own.
#!/usr/bin/env bash
domain="example.com"
selector="mail1"
ip="203.0.113.25"
echo "SPF:"; dig +short TXT "$domain"
echo "DKIM:"; dig +short TXT "${selector}._domainkey.${domain}"
echo "DMARC:"; dig +short TXT "_dmarc.${domain}"
echo "PTR:"; dig +short -x "$ip"An empty result under any label is a failure. Count SPF records too. Two v=spf1 records invalidate each other.
Test the unsubscribe endpoint
Send the same POST a mailbox provider sends. A correct endpoint returns 200 with no further prompts.
curl -i -X POST \
-d "List-Unsubscribe=One-Click" \
https://example.com/unsubscribe/abc123Also confirm that a request without that body value returns 400. This tells you the endpoint validates input instead of accepting any POST.
Common audit failures
- A marketing platform signs with its own domain, so DKIM passes but is not aligned. Configure a custom signing domain.
- A forgotten third-party sender, such as a CRM or support tool, appears in DMARC reports but not in SPF.
- The List-Unsubscribe header is present but not covered by the DKIM signature.
- Unsubscribes are processed in a nightly batch. Providers and recipients expect prompt processing, so apply the opt-out immediately and stop sending within days at most. Check each provider's current documentation for exact time limits.
- Complaint rate is read from your own platform only. Postmaster Tools measures at Gmail, and the numbers can differ.
Keep evidence
Save a raw header from each sending stream, the DNS output, and a screenshot of the complaint-rate chart. When a rejection or junk-folder problem appears later, you can compare against a known good state.
Exercise
A test message to Gmail shows spf=pass smtp.mailfrom=bounce.vendor.net, dkim=pass header.d=vendor.net, and dmarc=fail header.from=example.com. Which checklist item fails, and what is the fix?
Show answer
Alignment fails. SPF and DKIM both pass, but for the vendor's domain, not the From domain example.com. Fix it by configuring the platform for custom domain authentication so it signs with a DKIM key for example.com (and, if possible, uses a bounce domain under example.com). Then retest and confirm dmarc=pass.