SPF, DKIM and DMARC: what they are and why you need them
SPF, DKIM, and DMARC are email security technologies. SPF tells you which servers are allowed to send with your domain. DKIM digitally sign messages. DMARC combine these and tell you what to do if the message does not pass through the checks. Without these, your messages will be spammed and your domain can be tricked.
Why are these important?
- Messages get through: Gmail/Outlook rejects messages without SPF/DKIM
- Preventing abuse: No one can send messages in your name
- Reputation Management: Bad e-mail reputation affects all transmissions
- Requirements: Google and Yahoo require DMARC
SPF (Sender Policy Framework)
The SPF is like a doorman who checks, "Is this server on the list?" The DNS record tells you which servers are allowed to send from @company.fi.
Example of SPF record
v=spf1 include:spf.protection.outlook.com include:_spf.google.com -all
This says, "Only Microsoft 365 and Google servers are allowed to broadcast. Abandon the others."
DKIM (DomainKeys Identified Mail)
DKIM is like the seal of a message. The sending server "signatures" the message with an encryption key. The recipient checks the signature with a public key found in the DNS.
- Verify the authenticity of the message
- Make sure the message hasn't been changed on the way
- M365/Google handles automatically, but check settings
DMARC (Domain-based Message Authentication)
The DMARC connects SPF and DKIM and says, "What to do if the message does not pass checks?"
DMARC functions
- none: Do nothing, just report (starting phase)
- Quarantine: Move to Spam
- reject: Completely reject (tikkin)
Example of DMARC record
v=DMARC1; p=quarantine; rua=mailto:dmarc-raportit@yritys.fi; pct=100
How do we check the current situation?
- Go on mxtoolbox.com
- Enter your domain (e.g. company.fi)
- Select "SPF Record Lookup", "DKIM Lookup", "DMARC Lookup"
- Green = OK, red = problem
How do I enable?
Microsoft 365
- SPF: Add TXT record to DNS:
v=spf1 include:spf.protection.outlook.com -all - DKIM: M365 Admin Center → Settings → Email authentication → DKIM → Enable
- DMARC: Add TXT record to DNS:
v=DMARC1; p=none; rua=mailto:.
Google Workspace
- SPF: Add TXT record to DNS:
v=spf1 include:_spf.google.com ~all - DKIM: Admin Console → Apps → Google Workspace → Gmail → Authenticate email
- DMARC: Add TXT record to DNS
Recommended order of deployment
| Phase | Time | Measure |
|---|---|---|
| 1 | Week 1 | SPF introduced |
| 2 | Week 2 | DKIM introduced |
| 3 | Week 3 | DMARC p=none (tracking) |
| 4 | 1 month | Analyze reports, fix problems |
| 5 | 2 months | DMARC p=quarantine or p=reject |
Common Errors
- No settings: Messages go to spam, scammers can use your domain.
- Too many SPF records: There should be only one SPF in the DNS. Combine all together.
- DMARC immediately to reject mode: Start with the none mode and follow before tightening.
- Forgotten third parties: Newsletter service, CRM? Add them to the SPF.
- No follow-up reports: DMARC reports indicate problems – Read them.
Frequently asked questions
Do I need all three?
Yes. SPF alone is not enough, DKIM alone is not enough. The DMARC combines them and gives the recipient clear instructions. Google/Yahoo requires all three.
What if I can't do it myself?
Seek help from an IT partner or domain provider. Typical workload: 1-2 hours. An error in the DNS settings can cut the email completely.
How do I know if it works?
Send a test message to an address such as mail-tester.com. You'll get a grade and a list of flaws.
Read also
- E-mail deliverability: why messages go spam
- Microsoft 365 vs Google Workspace for email
- Basic security package
- Email services →
Want help with email protection?
We will check the SPF/DKIM/DMARC settings and correct any shortcomings. The price is agreed based on the content of the work. In the case of on-site work, an additional €1/km + VAT (from Mäntsälä).
Request a ReviewWhat would you like to improve in your business?
Learn about the content of the related service and Tell us about your business need.