These three DNS records tell other mail servers that your messages are really from you. Without them, mail is far more likely to land in spam.
- SPF lists the servers allowed to send for your domain.
- DKIM signs each message so it cannot be altered or forged in transit.
- DMARC tells receivers what to do when a message fails SPF and DKIM, and where to send reports.
Check what you have
- In cPanel open Email Deliverability.
- Find your domain. It shows a problem or a green tick for each record.
- If DNS for your domain is on our servers, click Repair or Manage and accept the suggested record. cPanel creates the right SPF and DKIM records for you.
If your DNS is somewhere else
If your domain uses Cloudflare or another DNS host, click Manage next to the domain and copy the records cPanel shows into your DNS provider as TXT records. Typically:
- SPF: a
TXTrecord on the domain itself beginningv=spf1. Keep a single SPF record only. If you also send from a service such as a newsletter tool, add itsinclude:to that same record. - DKIM: a
TXTrecord ondefault._domainkey(use the exact name cPanel shows).
Add DMARC
Create a TXT record named _dmarc with this value, replacing the address with one you read:
v=DMARC1; p=none; rua=mailto:[email protected]
p=none only monitors. After a few weeks, if the reports show your own mail passing, you can tighten it to p=quarantine, and later p=reject. Do not jump straight to reject.
If it doesn't work
- Two SPF records is an error. Merge them into one.
- Mail from a newsletter or CRM tool fails: add that service's
include:to your SPF and enable its own DKIM. - Changes not showing yet: DNS can take up to a few hours. Test again by sending a message to a Gmail address and choosing Show original, which shows SPF, DKIM and DMARC as pass or fail.
- Passing checks but still in spam: ask the recipient to mark it as not spam, and avoid sending large bursts from a new address.
- Stuck? Open a ticket (Opening a support ticket that gets answered quickly) and paste the header lines that show the failure.