Insights / Email security
SPF, DKIM and DMARC Explained: Stop Others Sending Email as Your Company
Three DNS records decide whether criminals can send invoices in your company's name. What they do, example records and a safe way to roll them out.
By Devinsidercode CORP · · 3 min read
Email was designed without any way to prove who sent a message. That is why fake invoices and "urgent payment" requests that appear to come from your own domain are still one of the most common ways companies lose money. Three DNS records — SPF, DKIM and DMARC — close that gap. They cost nothing but time, and since 2024 large mailbox providers such as Gmail and Yahoo have required them from bulk senders.
SPF: who is allowed to send
SPF (Sender Policy Framework) is a TXT record that lists the servers allowed to send email for your domain. A receiving server checks whether the message came from one of them. A Google Workspace domain might publish:
v=spf1 include:_spf.google.com ~allEvery service that sends mail as you — your mailbox provider, CRM, marketing platform, billing system or website forms — must be included. A domain can have only one SPF record, and SPF allows at most 10 DNS lookups; going over that limit makes the whole record fail.
DKIM: proof the message wasn't changed
DKIM (DomainKeys Identified Mail) adds a cryptographic signature to each outgoing message. The public key is published in DNS under a selector, for example google._domainkey.example.com. The receiver verifies the signature and knows the message was sent by an authorized system and not altered on the way. Enable DKIM separately in every service that sends mail for you, and use 2048-bit keys where the service supports them.
DMARC: what to do when checks fail
SPF and DKIM on their own do not protect the address people actually see — the From line. DMARC ties them to it (this is called alignment) and tells receivers what to do with messages that fail: deliver them (p=none), send them to spam (p=quarantine) or reject them (p=reject). It also asks receivers to send you reports, so you can see who is sending mail in your name.
v=DMARC1; p=none; rua=mailto:dmarc-reports@example.comThe record lives at _dmarc.example.com. Only p=quarantine and p=reject actually protect you; p=none is a monitoring mode.
A safe rollout plan
- List every system that sends email as your domain — including the ones marketing or finance set up without IT.
- Publish one SPF record that covers them all, and stay under 10 DNS lookups.
- Turn on DKIM signing in each sending service.
- Publish DMARC with
p=noneand a reporting address, and read the reports for two to four weeks. - Fix the legitimate senders that fail, then move to
p=quarantine, optionally withpct=25and increasing. - When the reports are clean, move to
p=reject.
Common mistakes
- Two SPF records on the same domain — receivers treat that as an error.
- Too many
include:entries, pushing SPF over the 10-lookup limit. - DKIM enabled for the main mailbox but not for the CRM or marketing platform.
- Leaving DMARC at
p=nonefor years, which gives reports but no protection. - Forgetting parked and unused domains: publish
v=spf1 -alland ap=rejectDMARC record for domains that never send email.
Once DMARC is enforced you can also add BIMI, which shows your logo next to your messages in supporting inboxes — a small trust signal that only works on domains that are properly protected.
Email authentication is one of the checks in our free security self-check and a standard part of every cybersecurity audit. If you would rather have it set up and monitored for you, our system administration team does exactly that.