In short
- SPF: defines which servers may send email on behalf of your domain.
- DKIM: adds a digital signature to the email, proving the content wasn’t altered on the way.
- DMARC: decides what happens to emails that fail SPF/DKIM and reports spoofed sending.
Imagine one of your suppliers emails you: “Our bank account has changed, please pay to the new IBAN.” The sender address, signature and logo all look familiar, but the email comes from attackers. Fake invoice and business email compromise (BEC) fraud are among the most common attacks businesses face and cause some of the biggest financial losses. The foundation for making it harder to impersonate your domain in these attacks is three DNS records: SPF, DKIM and DMARC.
Why does it matter?
The email protocol doesn’t check by itself that the sender address is genuine. So anyone can technically send an email that appears to come from “accounts@yourcompany.com”. SPF, DKIM and DMARC close this gap and bring two important benefits:
- Protection against spoofing: emails impersonating your domain are rejected or quarantined on the receiving side.
- Deliverability: authenticated emails are more likely to reach the inbox. Google and Yahoo since 2024, and Microsoft since 2025, have made these records mandatory for high-volume senders.
SPF (Sender Policy Framework)
SPF is a TXT record added to your domain’s DNS that lists the servers authorised to send email on your behalf. For example, for a company that uses only Microsoft 365, the record might look like this:
v=spf1 include:spf.protection.outlook.com -all
Points to watch:
- A domain must have only one SPF record; more than one invalidates SPF.
- Every service that sends email on your behalf, such as invoicing software, a CRM, website forms or a newsletter tool, must be added to the record.
- An SPF check can make at most 10 DNS lookups; too many “include” statements can break the record.
- The final
-all(hard fail) or~all(soft fail) states how to treat servers that aren’t on the list.
DKIM (DomainKeys Identified Mail)
DKIM adds a digital signature to every email sent, using a private key. The receiving server verifies the signature with the public key published in DNS. If the signature is valid, it shows the email really came from your system and wasn’t altered on the way.
Microsoft 365, Google Workspace and most email services support DKIM; usually you just add two CNAME records or one TXT record to DNS and enable it in the service’s admin panel. DKIM must also be configured separately in other services that send email on your behalf.
DMARC (Domain-based Message Authentication, Reporting and Conformance)
DMARC is the policy layer built on top of SPF and DKIM. It tells the receiving server what to do with emails that fail authentication and arranges for regular reports to be sent to you. An example record:
_dmarc.yourcompany.com TXT "v=DMARC1; p=none; rua=mailto:dmarc@yourcompany.com"
| Policy | Meaning | When? |
|---|---|---|
p=none | Monitor and report only | At the start: to identify all legitimate senders |
p=quarantine | Send unauthenticated emails to spam | Once the reports are clean |
p=reject | Reject unauthenticated emails | The goal: the strongest protection |
A step-by-step implementation plan
- Inventory: List every system that sends email on behalf of your domain (email service, e-invoicing, accounting, CRM, web forms, printers/scanners, newsletters).
- SPF: Create a single SPF record that includes all legitimate senders.
- DKIM: Enable DKIM in your email service and other sending services.
- DMARC (monitoring): Start with
p=noneand review the reports for a few weeks. - Tightening: Once the reports show all legitimate senders are authenticated, move to
quarantineand then toreject. - Ongoing tracking: Remember to update SPF and DKIM whenever you add a new service.
Technical measures alone are not enough
SPF, DKIM and DMARC make it harder to impersonate your own domain, but attackers can also use lookalike domains (e.g. yourcompany.co or y0urcompany.com). That is why process measures are essential too:
- Always verify requests to change an IBAN or payment details verbally, by calling a phone number you already know
- Enable multi-factor authentication (MFA) on email accounts; a genuine account that has been compromised passes every technical check
- Add an “External sender” warning to incoming emails from outside
- Brief staff about payment requests that create urgency or ask for secrecy
For other basic measures, see our SME cyber security checklist.
Conclusion
SPF, DKIM and DMARC are near-zero-cost measures that protect your domain from spoofing and help your emails reach the inbox with just a few DNS records. The key is to identify every legitimate sender and tighten the policy step by step. At SistemON, we configure your email authentication records and monitor DMARC reports as part of our cyber security and Microsoft 365 services.
Frequently Asked Questions
Do we need all three: SPF, DKIM and DMARC?
Yes. SPF verifies which servers may send email on your behalf and DKIM verifies that the email wasn’t altered; DMARC tells the receiving server what to do based on the results of those two checks and sends you reports. If one is missing, the protection is incomplete.
Can I set DMARC straight to reject?
It isn’t recommended. First collect reports with p=none to identify every legitimate service sending email (invoicing software, CRM, newsletter tool and so on). Otherwise your own legitimate emails may be rejected too.
Why do our emails go to the spam folder?
The most common causes are missing or incorrect SPF/DKIM/DMARC records, the sending IP address being blacklisted, a newly registered domain and content problems. Major email providers in particular are now much stricter with unauthenticated email.
Need help with this?
Let us review your infrastructure free for the first month and share a clear list of risks and priorities.