Skip to content
DMARC Pulse
Guides

cPanel

How to add DMARC to your domain using cPanel, plus SPF and DKIM

How to add DMARC to your domain using cPanel: validate SPF and DKIM, create the record in Zone Editor with a rua address, then confirm it.

How to add DMARC in cPanel

To add DMARC using cPanel, first inspect the domain in Zone Editor > Manage. Edit and preserve a valid existing record. Only if none exists, choose Add Record > DMARC, select None, enter a reporting address and save. Check SPF and DKIM before publishing.

Existing DMARC policy: authenticating cPanel does not require resetting it. Keep one _dmarc record, preserve p, subdomain and alignment settings, and merge any needed rua address with existing destinations. The p=none example below is only for a new deployment without a valid record.

cPanel is a hosting control panel. It edits the DNS zone of your hosting account and manages the mail server on that host. Mail you send through an outside service still needs that service's own records.

Check who controls your DNS and your mail

Find your case before you change anything:

  • Your site and mailboxes are on the cPanel server. Use Email Deliverability for SPF and DKIM, then add DMARC.
  • Your mailboxes are elsewhere and your DNS is in cPanel. cPanel's documentation points you to the mail provider for SPF and DKIM. Follow that provider's guide, such as Google Workspace, and publish its records in Zone Editor.
  • Your nameservers point elsewhere, for example to Cloudflare. cPanel's zone is then only a local copy. Copy each record from cPanel and publish it at the DNS provider that answers for your domain.

Your host can turn Zone Editor and Email Deliverability off in WHM, the server administrator's panel, so ask the host if you cannot find them. cPanel also does not support DNS editing or email on temporary domains.

Set up SPF

SPF (Sender Policy Framework) lists the servers allowed to send mail for your domain. cPanel documents no shared include: value, because its suggested record names your own server.

  1. Open Email Deliverability under Email and click Manage next to the domain.
  2. If the current record has a problem, cPanel shows the corrected value in Suggested “SPF” (TXT) Record. It adds the server's main IP address and the servers in your MX records on its own.
  3. If another service also sends for your domain, click Customize. Under Include List (INCLUDE), click Add A New “+include” Item and enter the domain that service documents.
  4. Click Install a Customized SPF Record. If you changed nothing, click Repair in the domain list and review the suggestion before you confirm it.
  5. If your server is not the authoritative nameserver for the domain, click Copy and publish the value at your DNS provider.

The suggested value looks similar to this, with your server's address. Copy yours from the panel:

TXT
v=spf1 +a +mx +ip4:203.0.113.10 ~all

Careful here. A domain must publish one SPF record. A second TXT record that starts with v=spf1 makes receivers return permerror, so merge every sender into one record. The include, a and mx terms all count toward the limit of 10 DNS lookups. If Repair proposes a value without your mail provider's include:, use Customize first.

Keep the ending at ~all, which cPanel recommends by default. Enable Exclude All Other Hosts ("-all" Entry) only after your reports show every legitimate sender in the record, because any host you left out will then fail.

Set up DKIM

DKIM (DomainKeys Identified Mail) adds a signature to each outgoing message, and receivers check it against a public key in your DNS. cPanel uses the selector default, so the record name is default._domainkey.example.com. cPanel provisions SPF and DKIM automatically for new accounts but not for existing ones, so an older account may still need this step.

  1. On the Manage the Domain page, go to DKIM. If no key exists, click Generate Local DKIM Key.
  2. If this server controls the domain's DNS, click Repair in the domain list and confirm the suggestion.
  3. If DNS is elsewhere, click Copy under Suggested “DKIM” (TXT) Record and add the Name and Value at your DNS provider. Under View, choose Split if that provider does not split long values into 255-character parts.

The key sits under your own domain, so a valid signature carries your domain in its d= tag. That is how DKIM aligns with your From address for DMARC.

Add the DMARC record

Publish SPF and DKIM first. cPanel says a domain needs valid SPF and DKIM records for its DMARC record to be active. Under RFC 9989 one aligned result is enough for a message to pass, but the standard recommends using both.

Look for an existing _dmarc entry in Zone Editor before you add one. If you find it, click Edit on that entry. When a name holds more than one DMARC record, receivers discard them all, so a duplicate can leave the domain with no policy.

  1. Under Domains, open Zone Editor.
  2. Click Manage next to the domain.
  3. For a valid existing record, use Edit and preserve its settings. Only for a new record, choose Add Record > DMARC to open the form.
  4. Make sure Name holds _dmarc.example.com. for your domain, with the final dot. Type it if the box is empty.
  5. Preserve the current DMARC Policy if one exists; choose None only for a first policy.
  6. In Send Aggregate Mail Reports To, enter your address as mailto:dmarc@example.com. If you use DMARC Pulse, enter your DMARC Pulse reporting address.
  7. Leave Percentage, Report Format and Report Interval empty. They match the pct, rf and ri tags, which RFC 9989 removed.
  8. Preserve existing DKIM Mode and SPF Mode. For a new policy, use relaxed alignment unless you have verified exact matches. If this form cannot preserve the current values, stop and inspect the TXT directly before saving.
  9. Click Save Record.

If your panel has no DMARC option, click Add Record, choose TXT, use the same name and enter this value:

New policy only: use this starter value only when no valid DMARC record exists. For an existing record, keep its policy and merge the report address instead of pasting over the value.

TXT
v=DMARC1; p=none; rua=mailto:dmarc@example.com

With p=none you state no preference about failing mail. The rua tag asks receivers to send aggregate reports to your address, daily or more often.

Email Deliverability offers a shortcut. Under DMARC, Install the Suggested Record publishes cPanel's recommended value if your server is an authoritative nameserver for the domain. The value cPanel documents is v=DMARC1; p=none;, which has no rua tag. Without that tag receivers send no aggregate reports, so edit the record afterward and add your address.

Confirm it worked, then tighten the policy

Email Deliverability shows a status for each domain and rechecks repaired records, which can take up to five minutes. Then test the public side with the SPF checker and the DKIM checker, using the selector default.

Send a message to an outside mailbox and paste its headers into the email header analyzer. You want spf=pass, dkim=pass and dmarc=pass. SPF only counts toward DMARC when the domain in smtp.mailfrom aligns with your From domain. By default, that means both share the same organizational domain, such as example.com.

Stay on p=none until reports cover every legitimate sender. RFC 9989 notes this may take months. In Zone Editor, use Edit on _dmarc to try p=quarantine, observing reports for at least as long as monitoring. If DNS is external, edit it there. Treat p=reject as optional: RFC 9989 advises against it for domains whose users post to mailing lists.

Before enforcement, confirm aligned DKIM on every mail stream, including PHP website mail. The cPanel default key covers only mail that this server signs; outside services need their own DKIM. Forwarding often breaks SPF. An incorrect policy can cause legitimate mail to be refused.

Common problems

  • Repair is unavailable, or checkers cannot see your record. This server probably does not control the domain's DNS. A record installed locally does not reach the public DNS, so add it on the authoritative nameserver.
  • Reports do not arrive. Confirm the record has rua. If the address is on another domain, that domain must publish a TXT record such as example.com._report._dmarc.example.net, or receivers ignore the address. See DMARC reports not arriving.
  • DKIM fails only for mail from PHP websites. cPanel documents this when the host installed the DSO PHP handler without the MPM ITK Apache module. Ask the host to enable Query Apache server status to determine the sender of email sent from processes running as nobody and Trust X-PHP-Script headers to determine the sender of email sent from processes running as nobody in WHM's Exim Configuration Manager.
  • A typo was saved without warning. The Record box in Zone Editor accepts invalid data, so a saved record proves nothing. Run a checker after each edit.
  • Reset DNS Zone erased your work. This action removes your zone changes, and cPanel says only that it attempts to save TXT entries. Copy your SPF, DKIM and DMARC records before you use it.
  • Reverse DNS (PTR) shows a problem. You need authority over the IP address to fix it. If you do not have that, contact the organization that owns the address, such as your host or ISP.
  • A domain you dropped stays in the list. You cannot remove it in cPanel. Ask your host to delete its DNS zone.

Frequently asked questions

Does cPanel add a DMARC record automatically?
It depends on how the account was set up. WHM can enable DMARC when an account is created, and a server administrator can apply a default policy to existing domains. The documented default is v=DMARC1; p=none;, which has no rua tag. Open Zone Editor to see whether your domain already has a _dmarc record.
What DKIM selector does cPanel use?
It uses default. cPanel's API documentation checks the DKIM record at the domain with a default._domainkey prefix, so for example.com the record name is default._domainkey.example.com.
Can I add DMARC if my DNS is not in cPanel?
Yes, but the record has to go on the nameserver that answers for your domain. A record saved only on the cPanel server stays local. Copy the suggested value from Email Deliverability and add it at your DNS provider.
Do I need a DMARC record for each domain in my cPanel account?
You need one for each separate registered domain. Receivers look for _dmarc under the domain in the From address and then walk up the DNS tree, so a subdomain can use its parent's record. A different registered domain in the same account has its own tree and needs its own record.
Why does the cPanel DMARC form ask for Percentage and Report Interval?
Those fields match the pct and ri tags from RFC 7489. RFC 9989 removed both tags, along with rf, which matches Report Format. Leave all three empty.

Sources consulted

cPanel Docs: Zone Editor
checked 2026-11-09
RFC 6376 §3.6.2.1 Namespace
checked 2026-11-09

Keep it healthy

Know the moment something breaks

Point your DMARC reports to DMARC Pulse and see who sends email as your domain, what fails and why — with a calm alert when anything changes.

Free plan: 1 domain, no credit card.