How to Copy SPF and DKIM Records from cPanel to Cloudflare DNS Zone Print

  • Updated on 25-Jul-2024
  • 26

How to Copy SPF and DKIM Records from cPanel to Cloudflare DNS Zone

Introduction:

SPF (Sender Policy Framework) and DKIM (DomainKeys Identified Mail) records are essential for email authentication, helping to prevent your emails from being marked as spam.

Cloudflare syncs the DNS records one time when you initially set up your domain, so any new updates to your SPF and DKIM records need to be manually updated in Cloudflare's DNS zone to ensure smooth email delivery from your servers.

This guide provides a step-by-step process to copy SPF and DKIM records from HosterPK (cPanel) and update them in Cloudflare's DNS zone.

Copying SPF and DKIM Records from cPanel:

Step 1: Log in to cPanel

  1. Open your web browser and navigate to your cPanel login page.
  2. Enter your username and password, then click “Log in.”

Step 2: Access Email Deliverability

  1. In the cPanel dashboard, scroll down to the "Email" section.
  2. Click on “Email Deliverability”.

Step 3: Find the Domain

  1. You will see a list of domains associated with your cPanel account.
  2. Locate the domain for which you want to copy the SPF and DKIM records.
  3. Click on "Manage" next to the desired domain.Email Deliverability Manage

Step 4: Copy the SPF Record

  1. In the "Email Deliverability" page, you will see a section for the SPF record.
  2. The SPF record will be displayed in a text box.
  3. Highlight the entire SPF record text, right-click, and select "Copy," or press Ctrl + C (Windows) or Command + C (Mac).Copy SPF Record

Step 5: Copy the DKIM Record

  1. Scroll down to the DKIM section on the same page.
  2. The DKIM record will be displayed similarly to the SPF record.
  3. Highlight the entire DKIM record text, right-click, and select "Copy," or press Ctrl + C (Windows) or Command + C (Mac).Copy DKIM Record

Step 6: Save the Records

  1. Open a text editor or a document where you want to save these records.
  2. Right-click and select "Paste," or press Ctrl + V (Windows) or Command + V (Mac) to paste the copied records.

Updating SPF and DKIM Records in Cloudflare DNS Zone:

Step 1: Log in to Cloudflare

  1. Open your web browser and go to Cloudflare’s login page.
  2. Enter your email address and password, then click “Log in.”Login to cloudflare

Step 2: Select Your Domain

  1. In the Cloudflare dashboard, you will see a list of your domains.
  2. Click on the domain for which you want to update the SPF and DKIM records.

Search domain name in cloudflare

Step 3: Access DNS Settings

  1. In the domain overview page, click on the “DNS” tab located at the top of the page.Click on DNS tab

Step 4: Add or Update the SPF Record

  1. Scroll down to the DNS Records section.
  2. To add a new SPF record:
    • Click on the “Add record” button.
    • Select “TXT” from the “Type” dropdown menu.
    • In the “Name” field, enter “@” if you want the record to apply to your root domain, or enter the specific subdomain.
    • In the “Content” field, enter your SPF record value.
    • Click “Save.”
  3. To update an existing SPF record:
    • Find the existing TXT record that contains the SPF value.
    • Click on the edit icon (a pencil) next to it.
    • Update the “Content” field with the new SPF record value.
    • Click “Save.”

Step 5: Add or Update the DKIM Record

  1. DKIM records are usually provided as a TXT record by your email service provider.
  2. To add a new DKIM record:
    • Click on the “Add record” button.
    • Select “TXT” from the “Type” dropdown menu.
    • In the “Name” field, enter the DKIM selector followed by “._domainkey” (e.g., default._domainkey).
    • In the “Content” field, paste the DKIM record value provided by your email service provider.
    • Click “Save.”
  3. To update an existing DKIM record:
    • Find the existing TXT record that corresponds to the DKIM selector.
    • Click on the edit icon (a pencil) next to it.
    • Update the “Content” field with the new DKIM record value.
    • Click “Save.”
Info! Be sure to carefully check the values and formatting when copying and pasting the records to avoid any errors.

Step 6: Verify the Records

  1. Once you have added or updated the records, it is important to verify that they are correctly configured.
  2. Use tools like MXToolbox to check your SPF and DKIM records.
  3. Enter your domain name in the respective tools to ensure the records are correctly set up and propagated.

Additional Tips:

  • Verify Records: After updating the DNS records, use tools like Google Admin Toolbox to verify that your SPF and DKIM records are correctly set up.
  • Propagation Time: DNS changes can take some time to propagate. It might take up to 48 hours for the changes to be fully effective.
  • Check Syntax: Ensure that the syntax of the SPF and DKIM records is correct to avoid any issues with email delivery.
  • Keep Records Secure: Ensure that the records are not altered or shared with unauthorized persons, as they are critical for your email security.

By following these steps, you will have successfully copied your SPF and DKIM records from HosterPK (cPanel) to Cloudflare’s DNS zone, improving your email deliverability and security.

If you encounter any issues, please open a support ticket or a LiveChat session using the icon located at the bottom right of the screen.

 

Was this answer helpful?

« Back