In short: in cPanel, open Email > Email Deliverability and click Repair next to your domain. That sets up SPF and DKIM for email sent from your hosting server. Then add a DMARC record in the Zone Editor. But read the warnings below first if your email runs on Google Workspace or Microsoft 365, or your DNS is somewhere else, because Repair can make things worse.
Find the Email Deliverability tool
- Log in to cPanel.
- In the Email section, open Email Deliverability.
- You'll see each domain on your account with a status. "Valid" means cPanel is happy with its records. "Problems exist" means something is missing or wrong.
If you can't find the tool, your host has turned it off. Ask their support team to enable it, or to add the records for you.
Use Repair, when it's safe
Repair shows the SPF and DKIM records cPanel recommends, and installs them when you confirm. It's the right choice when both of these are true:
- Your mailboxes are on the hosting account itself (you read email through webmail or with an app connected to your host).
- Your domain uses your host's nameservers, so DNS is managed inside cPanel.
Click Manage instead to see each record and its status before changing anything. Records usually take a few minutes to update. Refresh the page and the status should change to Valid.
When not to click Repair
Your email is on Google Workspace or Microsoft 365. cPanel suggests an SPF record for your hosting server. If you install it as it is, it can replace the part of your SPF record that authorises Google or Microsoft, and your normal email starts failing. Instead, merge them into one record, for example:
v=spf1 +a +mx include:_spf.google.com ~all
Keep the hosting part only if your website or server also sends email, such as contact forms.
Your DNS is at Cloudflare or your registrar. Repair only works when cPanel manages your DNS. Use Manage to copy the suggested SPF and DKIM values, then add them at Cloudflare or your registrar by hand.
Add a DMARC record
- In cPanel, open Domains > Zone Editor and click Manage next to your domain.
- Add a TXT record named
_dmarcwith this value, using your own address:
v=DMARC1; p=none; rua=mailto:[email protected]
Start with p=none and tighten it later, as explained in the DMARC section of the spam guide.
Test it
- Run the free domain checker. The DKIM check looks for cPanel's
defaultselector. - Send an email from your hosting mailbox to a Gmail address, open it, choose Show original, and check for SPF PASS, DKIM PASS and DMARC PASS.
Shared hosting reputation
Email Deliverability may also report on the server's reverse DNS. Only your host can fix that. If your records are all valid but mail still goes to spam, the shared server's IP address may be on a blocklist because of another customer. Ask your host to check, or move business email to a dedicated provider.
Questions
Will Repair delete my existing records?
It replaces the SPF and DKIM records it manages. Copy your current SPF record somewhere safe before you click it, so you can restore it if something breaks.
Which DKIM selector does cPanel use?
cPanel publishes its DKIM key under the selector default, at default._domainkey.yourdomain.
Rather not touch it?
I work with cPanel servers every day. I can set this up for you, test it, and hand back a short report.
See prices