SPF, DKIM, and DMARC are DNS records that prove your email is legitimate and not spoofed. Together they reduce spam filtering and protect your domain from being forged.
What Each Record Does
- SPF lists the servers allowed to send mail for your domain.
- DKIM adds a cryptographic signature that proves a message was not altered.
- DMARC tells receiving servers what to do when SPF or DKIM checks fail.
Add the Records in cPanel
- Open the Zone Editor (or Email Deliverability) in cPanel.
- cPanel can often generate and install SPF and DKIM automatically. Click Manage next to your domain and apply any suggested records.
- To add manually, create TXT records in the Zone Editor.
Example records:
SPF @ TXT v=spf1 +mx +a +include:yourdomain.com ~all
DKIM default._domainkey TXT v=DKIM1; k=rsa; p=PUBLICKEY
DMARC _dmarc TXT v=DMARC1; p=quarantine; rua=mailto:postmaster@yourdomain.com
Verify
- Use the Email Deliverability page in cPanel to confirm all three show as valid.
- DNS changes can take up to 24 hours to propagate.
Tips
- Start DMARC with
p=noneto monitor, then move top=quarantineorp=rejectonce confident. - Keep only one SPF record per domain; multiple SPF records cause failures.
For help generating the exact records for your setup, reach us on WhatsApp at +254 796 358081.