Wrinkles

Everyday skincare basics, explained plainly

cPanel Email Deliverability: Check & Fix SPF and DKIM

· 6 min read · Ingredients Explained

To check and fix SPF and DKIM records in cPanel, open the “Email Deliverability” tool, select your domain, and review the status shown for each record. If either is missing or invalid, click “Manage” and then “Repair” to have cPanel automatically generate and install the correct DNS records. This is the fastest and most reliable method for most shared and reseller hosting accounts.

What Are SPF and DKIM, and Why Do They Matter?

SPF (Sender Policy Framework) and DKIM (DomainKeys Identified Mail) are two email authentication standards that help receiving mail servers verify that a message genuinely comes from your domain. SPF works by publishing a list of IP addresses that are allowed to send mail for your domain, while DKIM uses a digital signature attached to each outgoing message that can be validated against a public key in your DNS records.

When both records are correctly configured, your emails are far less likely to be flagged as spam or rejected outright. Without them, phishing attempts that spoof your domain become easier, and legitimate messages may land in the recipient’s junk folder. Many large providers, including Gmail and Yahoo, now require SPF and DKIM for bulk senders, but even small-volume senders benefit from having them in place.

How to Check Your Current SPF and DKIM Records

cPanel’s “Email Deliverability” tool is the primary place to check both records. Log into cPanel, scroll to the Email section, and click “Email Deliverability.” You’ll see a list of domains associated with your account. Next to each domain, a status indicator shows whether SPF and DKIM are “Passed,” “Failed,” or “Not Found.”

For a more detailed view, click “Manage” next to a domain. The tool will display the exact DNS records that should exist, along with a “Check” button that re-verifies them in real time. You can also use external DNS lookup tools like MXToolbox or Google Admin Toolbox to confirm the records from outside your server, which is useful if you manage DNS elsewhere.

How to Fix SPF and DKIM Records in cPanel

If the Email Deliverability tool shows a problem, the fix is usually one click. Click “Manage” next to the affected domain, then click “Repair.” cPanel will generate the correct SPF and DKIM records and attempt to add them to your DNS zone automatically. This works when cPanel has access to modify DNS for that domain.

If you use a third-party DNS provider (like Cloudflare or your domain registrar), the automatic repair may fail. In that case, the tool will display the records you need to add manually. Copy the SPF TXT record (usually starting with v=spf1) and the DKIM TXT record (often named something like default._domainkey), then add them in your DNS provider’s dashboard. After adding, return to cPanel and click “Check” to verify.

Common Problems and Misconceptions

One frequent issue is having multiple SPF records. The SPF specification only allows one TXT record per domain; if you have more than one, all of them are ignored. cPanel’s repair tool usually consolidates them, but if you’ve added records manually, you may need to merge them into a single record that includes all authorized IPs.

Another misconception is that SPF and DKIM are the same thing. They are complementary. SPF checks the envelope sender (the return-path), while DKIM validates the message content and headers. A message can pass one and fail the other. You need both for the best deliverability, and many providers also expect DMARC, which tells receivers what to do if authentication fails.

Also, DKIM keys have a 1024-bit or 2048-bit length. cPanel generates 1024-bit keys by default, which is fine for most cases. Some strict receivers prefer 2048-bit, but that’s not a common cause of failure.

Step-by-Step: Using the Email Deliverability Tool

  1. Log into cPanel and navigate to “Email Deliverability” under the Email section.
  2. Find your domain in the list and note the status column.
  3. Click “Manage” to see the current DNS records and detailed status.
  4. If SPF or DKIM shows a failure, click “Repair” and wait for the tool to update DNS.
  5. If repair fails, copy the displayed records and add them manually to your DNS provider.
  6. After adding, click “Check” to re-verify. You may need to wait a few minutes for DNS propagation.

What If You Use a Third-Party Email Service?

If you send email through a service like Google Workspace, Microsoft 365, or a dedicated SMTP provider, cPanel’s automatic repair may not include the records required by that service. In that case, you should obtain the SPF and DKIM records from your email provider’s setup instructions and add them manually to your DNS. cPanel’s tool can still be used to verify that your domain’s records are correct, but the repair button may overwrite or ignore provider-specific settings.

For example, Google Workspace requires an SPF record that includes include:_spf.google.com and a DKIM key generated in the Google Admin console. If you let cPanel repair SPF, it may remove that include, breaking authentication for your Google-sent mail. Always check with your provider before using the repair function.

How to Verify Deliverability After Fixing Records

After correcting SPF and DKIM, you should test your email authentication. Send a test message to a Gmail address and open the original message to view the full headers. Look for lines like spf=pass and dkim=pass. You can also use online tools like Mail-Tester.com, which sends you a unique address and then scores your email’s authentication and content.

Keep in mind that DNS changes can take up to 48 hours to propagate globally, though it’s usually much faster. If you still see failures after a day, re-check the records in cPanel and your DNS provider to ensure they match exactly, including the trailing dot in some TXT values.

Frequently Asked Questions

What if I have multiple SPF records?

You must consolidate them into a single SPF TXT record. The SPF standard does not allow multiple records. Combine all include: statements and IP addresses into one record, and make sure it ends with -all or ~all to indicate the policy for unauthorized senders.

How long does it take for SPF and DKIM to start working?

DNS propagation usually takes a few hours but can take up to 48 hours. After you add or repair the records, you can check with an external DNS lookup tool to see if they are visible. Once visible, they should be recognized by receiving servers.

Does cPanel automatically add SPF and DKIM for new domains?

Yes, cPanel automatically generates SPF and DKIM records for new domains when the mail service is set up. However, if you change your DNS provider or manually delete the records, they will not be re-added automatically.

Can I use the same DKIM key for multiple domains?

No, each domain should have its own unique DKIM key. Using the same key across domains weakens security and can cause validation failures if one domain is compromised.

What is DMARC and do I need it?

DMARC is a policy that tells receiving servers how to handle messages that fail SPF and DKIM. It is not required for basic deliverability, but it gives you visibility and control. cPanel does not manage DMARC directly, but you can add a DMARC TXT record manually if you wish.

In this article
  1. What Are SPF and DKIM, and Why Do They Matter?
  2. How to Check Your Current SPF and DKIM Records
  3. How to Fix SPF and DKIM Records in cPanel
  4. Common Problems and Misconceptions
  5. Step-by-Step: Using the Email Deliverability Tool
  6. What If You Use a Third-Party Email Service?
  7. How to Verify Deliverability After Fixing Records
  8. Frequently Asked Questions