How to Set Up SPF, DKIM, and DMARC for Better Email Deliverability
Prevent your business emails from landing in spam by configuring SPF, DKIM, and DMARC authentication records.
Setting Up Email Authentication Records
Email authentication records (SPF, DKIM, DMARC) tell receiving mail servers that your emails are legitimate. Without them, your emails may land in spam.
What Each Record Does
| Record | Purpose |
|---|---|
| SPF | Lists servers authorised to send email for your domain |
| DKIM | Adds a digital signature to verify email authenticity |
| DMARC | Tells servers what to do with emails that fail SPF/DKIM |
Step 1 — Set Up SPF Record
- cPanel → Domains → Zone Editor
- Click Manage next to your domain
- Click + Add Record → select TXT
- Enter:
Name: yourdomain.co.ke
Value: v=spf1 include:braysons.co.ke ~all
TTL: 14400
- Click Add Record
v=spf1 include:braysons.co.ke include:_spf.google.com ~all
Step 2 — Enable DKIM in cPanel
- cPanel → Email → Email Deliverability
- Find your domain and click Manage
- Under DKIM, click Install the suggested record
- cPanel will automatically add the DKIM TXT record to your DNS zone
Step 3 — Set Up DMARC Record
- In Zone Editor, add a new TXT record:
Name: _dmarc.yourdomain.co.ke
Value: v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.co.ke
TTL: 14400
Start with p=none (monitor mode) before moving to p=quarantine or p=reject.
Step 4 — Verify Your Records
Use mxtoolbox.com to verify:
- SPF: mxtoolbox.com/spf.aspx
- DKIM: mxtoolbox.com/dkim.aspx
- DMARC: mxtoolbox.com/dmarc.aspx
Testing Email Deliverability
Send a test email to mail-tester.com — it will score your email from 1–10 and show exactly what to fix. Aim for a score of 9 or 10.
DMARC Policy Progression
Once you have confirmed your legitimate emails are passing SPF and DKIM:
- Start:
p=none(monitor only) - After 2 weeks:
p=quarantine(suspicious emails go to spam) - After 1 month:
p=reject(suspicious emails are rejected)
Still need help?
Our Kenyan support team is on WhatsApp — real people, not bots. We respond in under 15 minutes.