Published · 6 min read · CipherRampart
Why it matters
Anyone can put your domain in the "From" line of an email. SPF, DKIM and DMARC let receiving mail servers check whether a message really came from a system you authorised, and tell them what to do when it did not. Without them, invoice fraud and phishing that impersonate your company are much easier.
1. List every system that sends email as you
Before publishing anything, write down every service that sends mail using your domain: your mailbox provider (Microsoft 365 or Google Workspace), CRM, marketing platform, helpdesk, billing or ERP system, website forms and any on-premises servers. Missing one is the most common reason legitimate email starts failing later.
2. Publish one SPF record
SPF is a single TXT record on the domain that lists the servers allowed to send for it, for example v=spf1 include:spf.protection.outlook.com -all.
- Have exactly one SPF record per domain; two records cause SPF to fail.
- Keep within the limit of 10 DNS lookups; every include counts, and nested includes count too.
- Finish with -all (fail) or ~all (soft fail). Never use +all, which authorises the whole internet.
3. Turn on DKIM signing for each sender
DKIM adds a cryptographic signature to each message. Your provider gives you one or more selector records to publish (often CNAME or TXT records). Enable DKIM in every platform from step 1, use 2048-bit keys where offered, and rotate keys when the platform supports it.
4. Start DMARC in monitoring mode
DMARC ties SPF and DKIM to the visible From domain and tells receivers what to do with failures. Start with v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain. Daily aggregate reports will show which systems send as you and whether they pass.
5. Move to enforcement gradually
Once reports show that all legitimate senders pass, move to p=quarantine (optionally with pct to apply it to part of your mail), then to p=reject. Remember subdomains: add sp=reject, or publish a DMARC record for subdomains that send mail. Parked domains that never send email should have v=spf1 -all and a DMARC policy of p=reject.
Common mistakes
- Multiple SPF records after adding a new marketing tool.
- A vendor sending from your domain without DKIM, so it fails as soon as DMARC is enforced.
- Leaving DMARC at p=none for years, which gives visibility but no protection.
- Forgetting MTA-STS and TLS reporting, which protect mail in transit to your domain.
General guidance only. Every environment is different; validate changes in your own context before applying them.