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.
Applies to: cPanel Blue Arctic Shared Web Hosting (cPanel)
On this page
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:
- If DKIM shows no problem, go to Step 2.
- If the domain has no DKIM key yet, click Generate Local DKIM Key.
- 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=spf1on the DNS tab (see Step 2). If the suggestion leaves out aninclude: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.
- List each outside service that sends your mail, with the
include:value from its help pages, such asinclude:_spf.google.comfor Google Workspace. - 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.
- Take a screenshot of the TXT record that starts with
v=spf1. - If the record lacks an
include:from your list, edit it. Put each missing one just before the last item, the one ending inall. Don’t change~allto-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
- Create a separate mailbox at your own domain for the daily reports, such as
dmarc@yourdomain.com. - Open your domain’s DNS tab, as in Step 2.
- Look for a record named
_dmarc. If one already exists, don’t add another. With two, receivers ignore DMARC. - If there’s none, add a new TXT record named
_dmarc. - For its value, paste
v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.comand change the address to your real report mailbox. - 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.
- After at least a few weeks of reports showing all your real mail passing, edit the
_dmarcrecord on the DNS tab. Changep=nonetop=quarantine. - Once quarantine has run without problems, change it to
p=reject.
How to tell it worked
- The DNS tab shows one
v=spf1record and one_dmarcrecord. - 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.
- 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=spf1and the last item (the one ending inall). 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 ~allandv=spf1 include:_spf.google.com ~allbecomev=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.