Browse help topics

Domains & DNS

How to Set Up SPF, DKIM and DMARC in cPanel

Set up DKIM with Email Deliverability if your cPanel has it, or ask us in a ticket. Keep a single SPF record that lists every service that sends your mail. Then add one monitoring-only DMARC record (p=none) on your domain's DNS tab, read the reports, and tighten it later.

  • Updated
  • Last reviewed
  • Intermediate
  • About 20 minutes

Applies to: cPanel Blue Arctic Shared Web Hosting (cPanel)

On this page
  1. Step 1: Set up DKIM
  2. Step 2: Set up SPF
  3. Step 3: Add one DMARC record
  4. Step 4: Tighten DMARC later
  5. How to tell it worked
  6. Troubleshooting
  7. Still need help?

SPF, DKIM and DMARC are DNS records (settings for your domain that the internet reads). They prove your email really comes from you, so it’s less likely to land in spam or be faked.

  • SPF lists the servers allowed to send email for your domain.
  • DKIM adds a digital signature to each message so the receiver can check it wasn’t changed.
  • DMARC tells receivers what to do when a message fails those checks, and where to send reports.

Note

These steps are for Shared Web Hosting. Records you add in cPanel work only if your domain uses Blue Arctic’s nameservers, or once it moves to them. If your DNS is staying with another company, add them there instead. If your mailboxes are at Google Workspace or Microsoft 365, also turn on DKIM in that service. See our Microsoft 365 and Google Workspace DNS guide. The cPanel steps still cover email your website sends.

Step 1: Set up DKIM

First look for Email Deliverability in cPanel (type its name in the search box). If you don’t have it, open a support ticket and ask us to set up DKIM for your domain. If your DNS is with another company, ask in the same ticket for the DKIM and SPF records to add there.

If you have it, open it and click Manage next to your domain:

  1. If DKIM shows no problem, go to Step 2.
  2. If the domain has no DKIM key yet, click Generate Local DKIM Key.
  3. If the DKIM section shows a suggested record, go back to the table and click Repair next to your domain. Before you approve, compare the suggested SPF record with your current one. That’s the TXT record that starts with v=spf1 on the DNS tab (see Step 2). If the suggestion leaves out an include: that your current record has, cancel and open a support ticket.

Never share your private DKIM key with anyone.

Step 2: Set up SPF

Warning

A domain must have only one SPF record. Every service that sends mail for you, such as Microsoft 365 or a newsletter tool, must be in it. Otherwise that service’s mail can land in spam.

Note

An SPF record can make no more than 10 lookups. Each include:, a and mx item counts, and so do the same kinds of item inside each include. ip4: and ip6: items don’t count. If many services send mail for you, open a support ticket before you add more.

  1. List each outside service that sends your mail, with the include: value from its help pages, such as include:_spf.google.com for Google Workspace.
  2. In cPanel, click Websites in the sidebar, click Manage next to your domain, and open the DNS tab. Can’t find it, or the button that edits a record? See How to Add or Edit DNS Records in cPanel.
  3. Take a screenshot of the TXT record that starts with v=spf1.
  4. If the record lacks an include: from your list, edit it. Put each missing one just before the last item, the one ending in all. Don’t change ~all to -all; that makes mail from any service you missed fail. Save it.

No v=spf1 record, or can’t find the DNS tab? Open a support ticket listing your services, and ask us to set up SPF.

Step 3: Add one DMARC record

  1. Create a separate mailbox at your own domain for the daily reports, such as dmarc@yourdomain.com.
  2. Open your domain’s DNS tab, as in Step 2.
  3. Look for a record named _dmarc. If one already exists, don’t add another. With two, receivers ignore DMARC.
  4. If there’s none, add a new TXT record named _dmarc.
  5. For its value, paste v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com and change the address to your real report mailbox.
  6. Save the record.

p=none only asks receivers for reports; they take no action yet. Reports are files that are hard to read by eye. A DMARC report reader (search for “DMARC report analyzer”) turns them into a simple table.

Step 4: Tighten DMARC later

Warning

A strict policy makes receivers junk or reject real email from any service missing from SPF or DKIM. If you can’t read the reports, it’s safe to stay on p=none.

  1. After at least a few weeks of reports showing all your real mail passing, edit the _dmarc record on the DNS tab. Change p=none to p=quarantine.
  2. Once quarantine has run without problems, change it to p=reject.

How to tell it worked

  1. The DNS tab shows one v=spf1 record and one _dmarc record.
  2. Send an email from your domain address to a Gmail address. In Gmail, open it, click More next to Reply, then Show original. Near the top, SPF, DKIM and DMARC should each show a pass.
  3. DMARC reports start arriving within a day or two.

Troubleshooting

  • cPanel says it can’t change the records: your DNS is elsewhere. Add the suggested values there.
  • A service says you have more than one SPF record: merge them. Keep one record. From the other, copy everything between v=spf1 and the last item (the one ending in all). Paste it just before the last item of the record you’re keeping. Leave out any item that’s already there. Then delete the other record. For example, v=spf1 +a +mx +ip4:203.0.113.10 ~all and v=spf1 include:_spf.google.com ~all become v=spf1 +a +mx +ip4:203.0.113.10 include:_spf.google.com ~all. Not sure? Open a support ticket with both records.
  • A checker says SPF has too many lookups: remove services you no longer use, or open a support ticket.
  • Reverse DNS (PTR) shows a problem: you can’t change it in cPanel. Open a support ticket and mention it.

Still need help?

Open a support ticket from the Client Portal at my.bluearctic.com. Include your domain, a screenshot of your DNS records, the services that send your mail, the exact error text, and what you already tried. Never include a password.

Was this article helpful?

Report outdated instructions or suggest an improvement
Type of report

Please do not include passwords or personal information.

Still need help?

Our support team can look into your account and walk you through it.