Setting up SPF, DKIM, and DMARC

SSL & Security Updated Jan 18, 2026

Email Authentication Records

These DNS records help prevent email spoofing and improve deliverability.

SPF (Sender Policy Framework)

Specifies which servers can send email for your domain.

Setting Up SPF

  1. Go to cPanel → Zone Editor
  2. Click Manage on your domain
  3. Add a TXT record:
v=spf1 +a +mx +ip4:YOUR_SERVER_IP include:_spf.happilyhosted.com ~all

DKIM (DomainKeys Identified Mail)

Adds a digital signature to outgoing emails.

Setting Up DKIM

  1. Go to cPanel → Email Deliverability
  2. Click Manage on your domain
  3. Install the suggested DKIM record

DMARC

Tells recipients what to do with emails that fail SPF/DKIM.

Basic DMARC Record

v=DMARC1; p=none; rua=mailto:admin@yourdomain.com

Stricter DMARC

v=DMARC1; p=quarantine; rua=mailto:admin@yourdomain.com

Testing

Use these tools to verify:


Was this article helpful?