How to Set Up DKIM and SPF Records in cPanel


DKIM (DomainKeys Identified Mail) and SPF (Sender Policy Framework) are email authentication methods that help prevent email spoofing and improve the deliverability of your emails. Without them, your emails may land in spam folders.

What is SPF?

SPF specifies which mail servers are authorized to send email on behalf of your domain. It prevents spammers from sending emails that appear to come from your domain.

What is DKIM?

DKIM adds a digital signature to your outgoing emails. Receiving servers verify this signature to confirm the email was sent from your domain and was not altered in transit.

How to Enable DKIM and SPF in cPanel

  1. Login to cPanel.
  2. Under the Email section, click Email Deliverability.
  3. You will see your domains listed with their current DKIM and SPF status.
  4. If DKIM or SPF shows a warning, click Repair next to the domain.
  5. cPanel will automatically install the correct DNS records for DKIM and SPF.

Once repaired, the status will show green checkmarks for both DKIM and SPF.

Manually Adding SPF Record

If needed, you can manually add the SPF record in cPanel → Zone Editor:

Type: TXT
Name: yourdomain.com
Value: v=spf1 +a +mx +ip4:YOUR.SERVER.IP ~all

Manually Adding DKIM Record

Type: TXT
Name: default._domainkey.yourdomain.com
Value: v=DKIM1; k=rsa; p=YOUR_PUBLIC_KEY

Tip: After enabling DKIM and SPF, also consider setting up a DMARC record for additional protection. A basic DMARC record looks like:
v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com

If you continue to face issues, please open a create a request.

Esta resposta foi útil? 0 Os usuários acharam isso útil (0 Votos)