Economicalhost · Knowledge Base
Knowledge Base › Email Deliverability › How to Set Up SPF and DKIM in cPanel
Email Deliverability

How to Set Up SPF and DKIM in cPanel

SPF and DKIM are DNS records that prove your email genuinely comes from your domain. Without them, modern mail providers increasingly send your mail to spam. cPanel can set both up in one click.

Step-by-step

  1. Open Email → Email Deliverability in cPanel.
  2. Check your domain's status. A green Valid badge means SPF and DKIM are correct; Problems Exist means records are missing or wrong.
  3. Click Repair All Invalid Records (or Manage → Repair per record). If your DNS is hosted on the same EconomicalHost server, cPanel installs correct records automatically.
  4. If DNS is hosted elsewhere, cPanel shows you the exact TXT records to copy: an SPF record (v=spf1 …) and a DKIM record (default._domainkey…). Add them at wherever your DNS zone lives.
  5. Wait for propagation — usually minutes, up to a few hours — then re-open Email Deliverability and confirm both show Valid.
  6. Test it. Send a message to a Gmail address, open it → three-dot menu → Show original — you should see SPF: PASS and DKIM: PASS.

💡 Good to know

  • SPF lists which servers may send for your domain; DKIM cryptographically signs each message. You want both.
  • Only one SPF record may exist per domain — if you also send via a third-party service, merge its include into the single record.
  • Still hitting spam folders with valid SPF/DKIM? See fixing emails going to spam.