1. Home
  2. Enable SPF and DKIM in cPanel (Email Deliverability)

Enable SPF and DKIM in cPanel (Email Deliverability)

Many mail servers and email services such as Gmail, Outlook, Yahoo, AOL, Hotmail, etc. check if SPF and DKIM records are available for the sender’s domain and if they are missing, such emails are directly sent to the recipient’s SPAM folder.

🔗 Why Are My Emails Going to the SPAM Folder? | Blog

SPF and DKIM are DNS records through which the sender and the message’s content are authenticated.

You can enable the two methods for email verification – SPF and DKIM – under Email Deliverability in cPanel.

Important: SPF and DKIM records can only be set for domains using the hosting account’s name servers.

Enable SPF and DKIM automatically

After accessing the Email Deliverability menu, you will view a list with all domains added in cPanel.

Note: Loading the Email Deliverability page might take some time. The reason is that a check is performed for the DNS settings for all domains from the list.

1 To automatically enable SPF and DKIM, click Repair for the desired domain.

Enable SPF and DKIM automatically for the domain.
Enable SPF and DKIM automatically for the domain.

This repair process automatically generates SPF and DKIM DNS records in the domain DNS zone.

After you click Repair, the following message: “A DKIM key for “mydomain.com” does not exist on local server.” will appear.

Automatic generation of a DKIM key.
Automatic generation of a DKIM key.

2. Click Repair once again and the system will automatically generate the required DKIM key.

After the DNS records for SPF and DKIM are saved in the domain DNS zone, a “Success” confirmation message will appear.

The DNS records are saved in the domain DNS zone.
The DNS records are saved in the domain DNS zone.

3. SPF and DKIM have been successfully enabled for the domain.

The email verification status will change to Valid in the domain list.

The SPF and DKIM records are valid and enabled for the domain.
The SPF and DKIM records are valid and enabled for the domain.

The generated SPF record might be changed in case you need to add or remove a host, domain or an IP address from it. To change the SPF record, click Manage » (SPF) Customize.

View guidelines for the SPF record configuration: 🔗 Configuring a SPF Record in cPanel | Help

🔗 Why Are My Emails Going to the SPAM Folder? | Blog

🔗 4 Reasons Why You Keep Getting Spam Emails and 10 Tips on How to Protect Yourself | Blog

Updated on 01.09.2023
Was this article helpful?