1. To update SPF or DKIM records in Cloudflare, follow these steps:

🔐 SPF Record (Sender Policy Framework)

cpanel

This is a TXT record.

Step-by-step:

  1. Log in to your Cloudflare Dashboard.

  2. Select your domain.

  3. Go to the DNS tab.

  4. Click “Add record”.

  5. Choose:

    • Type: TXT

    • Name: @ (or your domain/subdomain if needed)

    • Content: e.g.

      ini
      v=spf1 include:spf.yourmailserver.com ~all
  6. Click Save.

📌 If you already have an SPF record, update the existing TXT record — don’t add multiple SPF records for one domain.


🔑 DKIM Record (DomainKeys Identified Mail)

Also a TXT record, but added under a selector subdomain.

Step-by-step:

  1. Get your DKIM selector and value from your email provider (e.g., default._domainkey.yourdomain.com).

  2. In Cloudflare DNS:

    • Type: TXT

    • Name: selector._domainkey
      (replace selector with your actual one, like default or mail)

    • Content: Paste the long DKIM key starting with v=DKIM1;...

  3. Click Save.


Verify the Records

Use tools like:

To update SPF and DKIM records via cPanel, follow these steps:


🔐 SPF Record in cPanel

➤ Method 1: Use cPanel’s built-in tool (if available)

  1. Log in to cPanel.

  2. Scroll down to the Email section.

  3. Click on Email Deliverability.

  4. Find your domain, then click “Manage”.

  5. Scroll to the SPF section:

    • Click “Install the Suggested Record” if not already active.

    • Or Edit the SPF record manually if needed.

  6. Click Save.


➤ Method 2: Add/Edit TXT Record Manually

Update SPF and DKIM Records

  1. Go to the Zone Editor in cPanel.

  2. Click Manage next to your domain.

  3. Look for a TXT record with:

    • Name: your domain (e.g., yourdomain.com)

    • Type: TXT

    • Value: something like

      ini
      v=spf1 include:spf.mailprovider.com ~all
  4. If it doesn’t exist, click Add Record:

    • Type: TXT

    • Name: @ or your domain

    • TTL: leave default

    • Record: your SPF string

  5. Click Save Record

✅ Only one SPF record per domain is allowed. Combine if needed.


🔑 DKIM Record in cPanel

  1. Go to Email Deliverability in cPanel.

  2. Under your domain, click Manage.

  3. Scroll to the DKIM section.

  4. If DKIM is not enabled, click “Install the Suggested Record”.

  5. If you’re using a 3rd-party mail provider:

    • Get the DKIM selector and key from them.

    • Go to Zone Editor > Manage.

    • Add a TXT record:

      • Name: selector._domainkey (e.g., default._domainkey)

      • Type: TXT

      • TTL: default

      • Record: v=DKIM1; k=rsa; p=... (long key from provider)


🔍 Verify the Records

Use: