Is Someone Sending Email as Your Business? SPF, DKIM and DMARC Explained
In short
- Without email authentication, anyone can send messages that appear to come from your domain.
- SPF lists who may send for you, DKIM signs your messages, and DMARC tells receivers what to do with fakes.
- Roll out DMARC in stages, from monitoring to quarantine to reject, and list every service that sends on your behalf first.
Email was designed decades ago with no built-in way to check who really sent a message. That is why scammers can send an email that appears to come from your business, asking a customer to pay an invoice into a new bank account. Three DNS records, SPF, DKIM and DMARC, fix most of this. Here is what each one does, in plain English.
SPF: who is allowed to send
Sender Policy Framework (SPF) is a list, published in your domain’s DNS, of the services allowed to send email for your domain. If you use Microsoft 365 for email and a billing system for invoices, both should be in your SPF record.
A receiving mail server checks the sending server against that list. If it isn’t on the list, the message fails SPF.
Two common mistakes: having more than one SPF record (there must be exactly one), and exceeding the limit of ten DNS lookups, which causes SPF to fail entirely.
DKIM: a signature on every message
DomainKeys Identified Mail (DKIM) adds a digital signature to each email you send. The matching public key sits in your DNS. When a message arrives, the receiving server checks the signature. If it matches, the message really came from an authorised sender and wasn’t altered on the way.
Each service that sends for you, such as Microsoft 365, your help desk or your billing platform, needs its own DKIM setup.
DMARC: what to do with the fakes
Domain-based Message Authentication, Reporting and Conformance (DMARC) ties SPF and DKIM together. It checks that the domain in the visible From address lines up with the domain that passed SPF or DKIM, then tells receiving servers what to do if it doesn’t:
- p=none: deliver as normal, but send me reports.
- p=quarantine: send failing messages to junk.
- p=reject: refuse failing messages outright.
DMARC also gives you visibility. Daily aggregate reports from major mail providers show every server sending as your domain, legitimate or not.
How to roll it out safely
- List every service that sends email as your domain. Email, help desk, invoicing, CRM, newsletters, website forms. Missing one is the most common cause of problems.
- Publish a single SPF record that includes them all.
- Enable DKIM for each service.
- Start DMARC at p=none with a reporting address, and read the reports for a few weeks.
- Fix anything legitimate that fails, then move to p=quarantine.
- After a clean period, move to p=reject.
Before adding any new tool that sends as your domain, add its SPF and DKIM details first. Otherwise its messages will start landing in junk.
Why it matters beyond security
Gmail, Yahoo and Microsoft now expect bulk senders to authenticate their email, and properly authenticated mail is more likely to reach the inbox. DMARC also protects your customers and suppliers from invoice fraud that uses your name, which protects your reputation.
The Australian Cyber Security Centre publishes further guidance on email security at cyber.gov.au if you would like to go deeper.
Final thoughts
SPF, DKIM and DMARC are three small DNS records with an outsized effect. If you are not sure whether your domain is protected, it takes a few minutes to check and a few weeks to roll out properly.