SPF, DKIM and DMARC in cPanel, how to enable them

SPF, DKIM and DMARC in cPanel are set up in two places. To enable SPF and DKIM, open Email Deliverability in cPanel (Authentication in older versions) and click Enable for both. For DMARC, you add a TXT record named _dmarc from the Zone Editor. Together, the three help your emails reach the inbox instead of spam and protect your domain from spoofing.

What SPF, DKIM and DMARC do

Protocol What it checks
SPF (Sender Policy Framework) Which mail servers are allowed to send email for your domain
DKIM (DomainKeys Identified Mail) That the email was signed by your domain and was not altered on the way
DMARC (Domain-based Message Authentication, Reporting and Conformance) What the recipient should do when the SPF and DKIM checks fail, and where reports are sent

Why you need all three

  • They raise the chance that your emails land in the inbox rather than the spam folder.
  • They protect your domain from spoofing and phishing, meaning emails that others send using your address.
  • Major email providers such as Google, Microsoft and Yahoo now consider them essential.

How to enable SPF and DKIM in cPanel

  1. Log in to cPanel.
  2. In the Email section, open Email Deliverability or, in an older version, Authentication.
  3. Find the SPF and DKIM options.
  4. Click Enable on whichever is disabled.
  5. Make sure both show as Enabled.

The same page also shows the raw SPF record used in DNS. When the domain's DNS is hosted on your hosting account, cPanel usually adds the correct records automatically. If your DNS is hosted with an external provider, you need to add them there manually.

How to add a DMARC record in cPanel

  1. In cPanel, under Domains, open the Zone Editor.
  2. Click Manage next to your domain.
  3. Click Add Record.
  4. Choose TXT Record.
  5. Fill in the fields as shown in the table below, with your own domain in place of example.gr.
  6. Save the record.
Field Value
Name _dmarc.example.gr
TTL 14400 or the default value
Type TXT
Record v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.gr

What each DMARC parameter means

  • v=DMARC1 is the protocol version.
  • p= is the policy for emails that fail, with the values none, quarantine or reject.
  • rua=mailto: is the address that receives aggregate reports.
  • ruf=mailto: is the address that receives detailed (forensic) reports. It is optional.
  • fo=1 asks for a report on any failed check. It is optional.

Which DMARC policy to choose

Stage What it does Record
Testing Monitoring only, no enforcement v=DMARC1; p=none; rua=mailto:dmarc-reports@example.gr
Standard protection Failing emails go to spam v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.gr
Strict Failing emails are rejected v=DMARC1; p=reject; rua=mailto:dmarc-reports@example.gr

Start with p=none and move to reject only when you are sure that all your emails, including those external services send on your behalf, pass the SPF and DKIM checks.

How to check that they work

  1. Send an email from your account to a Gmail or Outlook address.
  2. Open the message on the recipient side and choose Show original or View source.
  3. Check that SPF and DKIM show as pass.

Frequently Asked Questions

Why does SPF or DKIM show a failure?
The DNS record usually needs a fix. Open a support ticket and we will check it.

My DNS is with an external provider, why are the cPanel records not there?
The cPanel records are not published to an external provider automatically. Add them manually at your DNS provider.

Why does DMARC have no effect?
DMARC relies on the SPF and DKIM checks, so those must be enabled first.

Are SPF, DKIM and DMARC mandatory?
In practice, yes. Without them your emails are far more likely to end up in spam and your domain stays exposed to spoofing. DMARC also makes email scams that use your address harder to pull off.

Can I enable only SPF or only DKIM?
Technically yes, but it is not recommended. Reliable delivery and full protection need both.

Where do I see the DMARC reports?
At the address you set in rua (and in ruf, if you use it). For easier reading, you can process them with an online DMARC report analyzer.

Need help?

If the SPF or DKIM checks fail or you are not sure about your DMARC record, Open a support ticket from the Client Area and our support team will help you.

Was this article helpful?

Related service Konet Web Hosting cPanel, LiteSpeed and automatic backups: 24 every 2 hours for 48 hours, then 6 daily, 4 weekly and 3 monthly.

Related articles