Setting Up SPF, DKIM, and DMARC
Stop your emails landing in spam. A complete guide to email authentication records for Tanzanian businesses.
Why Your Emails Land in Spam
The most common cause of business emails landing in spam is missing authentication records. SPF, DKIM, and DMARC are three TXT records that prove your emails are legitimate.
SPF — Sender Policy Framework
Tells the world which mail servers are authorised to send email from your domain. Add as a TXT record on your root domain:
v=spf1 include:mail.sakurahost.co.tz ~all
If you also send via Google Workspace: v=spf1 include:_spf.google.com include:mail.sakurahost.co.tz ~all
Critical: You can only have one SPF record. Merge all sending services into a single record.
DKIM — DomainKeys Identified Mail
Adds a cryptographic signature to every outgoing email. Your email provider generates a key pair and gives you a TXT record like:
Name: default._domainkey.yoursite.co.tz Value: v=DKIM1; k=rsa; p=MIIBIjAN...
Copy exactly — one wrong character breaks it.
DMARC — Policy Layer
Tells receiving servers what to do when an email fails SPF or DKIM:
_dmarc.yoursite.co.tz TXT "v=DMARC1; p=none; rua=mailto:dmarc@yoursite.co.tz"
Start with p=none (monitor only), then move to p=quarantine, then p=reject once you're confident in your setup.
Setup Order
- Set up SPF
- Enable DKIM with your email provider
- Add DMARC with p=none
- Monitor reports for 2 weeks
- Move to p=quarantine, then p=reject
Related in DNS & Networking
DNS Records Explained: A to Z Guide
Every DNS record type explained clearly — A, AAAA, CNAME, MX, TXT, NS, SRV, and more.
DNS Propagation: Why Your Domain Isn't Working Yet
What DNS propagation is, how long it takes, and how to check progress across global DNS servers.
Connecting Your Domain to Web Hosting
Step-by-step guide for pointing any domain to your Sakurahost web hosting account.