Email security

How to Add DMARC to Your Domain Using cPanel (Step by Step)

DMARC in cPanel is one TXT record at _dmarc — but the order matters. Get SPF and DKIM working first, start at p=none, read the reports, then enforce.

Cysoro Security TeamPublished · 7 min read
EMAIL SECURITY DMARC incPanel One TXT record · p=none first Zone EditorTXTName: _dmarcv=DMARC1; p=none;rua=mailto:dmarc@…p=none → quarantine→ reject
Quick answer

To add DMARC in cPanel, open Domains, Zone Editor, click Manage for your domain, add a TXT record named _dmarc with the value v=DMARC1; p=none; rua=mailto:[email protected], and save it. Start at p=none so you only collect reports, verify the record with dig, then move to p=quarantine and finally p=reject once every legitimate sender passes.

Key takeaways

  • DMARC is one TXT record at _dmarc, added in cPanel's Zone Editor — never at your bare domain.
  • Start at p=none and fix SPF and DKIM first; jumping straight to p=reject can block legitimate mail.
  • Verify with dig TXT _dmarc.yourdomain.com and move to quarantine, then reject, in stages.

DMARC is the record that stops other people sending email as you. Adding it in cPanel takes about ten minutes — but the order matters, and the most common mistake is not the record itself, it is jumping straight to enforcement before your legitimate mail is ready.

What is DMARC, and why add it in cPanel?

DMARC (Domain-based Message Authentication, Reporting and Conformance) is an email authentication method designed to help reduce email abuse such as spam, and it builds on SPF and DKIM.

It gives receivers clear instructions on what to do when messages fail SPF or DKIM authentication and alignment, and it sends you reports showing who is sending mail as your domain. Without DMARC, a receiver that sees a failing message has no instruction from you about what to do with it.

In cPanel, you add DMARC by publishing one TXT record at _dmarc.yourdomain.com. You can use cPanel's DNS Zone Editor to add it, and you can also use cPanel to configure mailing lists to be compatible with DMARC. Our guide to what DMARC is and how to set it up explains the protocol in full; this article is the cPanel walkthrough.

What do you need before you add DMARC in cPanel?

You need SPF and DKIM working first, a list of every service that sends mail as your domain, and a mailbox that will receive DMARC reports.

DMARC builds on SPF and DKIM, so they need to be in place before DMARC can do anything useful. A message passes DMARC when SPF or DKIM passes and the passing domain aligns with the domain in the visible From address — so a sender that is not in your SPF record and has no aligned DKIM signature will fail.

  • SPF: check in cPanel under Email, Email Deliverability, and confirm your SPF record lists your mail host and any third-party senders, such as your newsletter or invoicing service.
  • DKIM: confirm DKIM is enabled for your domain and that third-party senders sign with an aligned DKIM domain.
  • Sender inventory: list every service that sends as your domain — your host, Google Workspace or Microsoft 365, your website's contact form, your CRM and your mailing list.
  • Report mailbox: create or choose an address such as [email protected] for aggregate reports, and make sure someone reads it.
  • DNS access: confirm your DNS is actually managed in cPanel. If your DNS lives at Cloudflare or your registrar, add the record there instead.

If your DNS is hosted on the same server as your cPanel, check Email Deliverability first: if you see a Repair or Install Suggested Record button, cPanel can create the SPF and DKIM records for you automatically. That shortcut is worth taking before you touch DMARC.

How do you add DMARC in cPanel step by step?

Open Zone Editor, click Manage for your domain, add a TXT record named _dmarc, paste a monitoring DMARC record, and save it. The whole process takes about ten minutes.

Add DMARC in cPanel in 7 steps1 Log in to cPanel2 Domains section: open Zone Editor3 Find your domain, click Manage4 Add Record, choose Add TXT Record5 Name: _dmarc · Type: TXT · TTL: 144006 Record: v=DMARC1; p=none; rua=mailto:[email protected]7 Click Add Record — cPanel adds the TXT record.
The cPanel Zone Editor path for a DMARC TXT record. Illustration by Cysoro.
  1. Log in to cPanel.
  2. On the Tools page, in the Domains section, click Zone Editor.
  3. Locate the domain you want to configure, and click Manage. Usually this is your primary domain.
  4. Click the down arrow next to Add Record, then click Add TXT Record. In newer cPanel versions you may also see an Add DMARC Record option — that opens a form with the same fields.
  5. In the Name box, type _dmarc. When your cursor leaves the box, cPanel automatically adds the domain name, for example _dmarc.example.com.
  6. In the TTL box, type 14400 (4 hours), or leave the default. Use a short TTL such as 300 during a rollout if you expect to change the record often.
  7. In the Type list, select TXT.
  8. In the Record box, paste your DMARC record — start with v=DMARC1; p=none; rua=mailto:[email protected], replacing the address with your own report mailbox.
  9. Click Add Record. cPanel adds the TXT record for DMARC.

That record is a monitoring record: it asks receivers to take no action on failing mail, but to send you daily aggregate reports. It will not affect mail flow, which is exactly what you want on day one. The hosting.com DMARC guide lists the same steps, with a TTL of 14400.

What should your DMARC record say?

Start with v=DMARC1; p=none; rua=mailto:[email protected], then add tags only when you know what they do. Every tag has a job, and most of them can wait.

TagValuesWhat it means
v=DMARC1FixedIdentifies the record as DMARC version 1
p=none, quarantine, rejectPolicy for the domain: monitor, spam-folder, or reject failures
sp=none, quarantine, rejectPolicy for subdomains, if different from the domain
pct=0–100Percentage of failing mail the policy applies to
rua=mailto: addressWhere aggregate reports go (daily summaries)
ruf=mailto: addressWhere forensic reports go (per-message, with care)
aspf= / adkim=r (relaxed), s (strict)How strictly SPF and DKIM domains must align
fo=0, 1, d, sWhen forensic reports are generated
ri=Seconds, e.g. 86400How often aggregate reports are sent

A fuller monitoring record looks like this: v=DMARC1; p=none; rua=mailto:[email protected]; fo=1; adkim=r; aspf=r; ri=86400. Keep alignment relaxed (aspf=r; adkim=r) at first, because strict alignment fails legitimate mail sent from a subdomain. Our guide to what DKIM is explains the signing side that DMARC checks.

How do you verify your DMARC record?

Verify it two ways: check the DNS record itself with dig or nslookup, then check it with a DMARC checker and watch for reports arriving.

After you add the record and allow time for DNS propagation, test it from a terminal. On Linux and macOS, run dig +short TXT _dmarc.yourdomain.com, replacing the domain with your own. You should see your record in the output. On Windows, use nslookup in the same way.

Then run your domain through our free DMARC checker, which also checks your SPF and DKIM records and shows whether your policy is set. If the checker finds no record, wait — DNS propagation usually takes minutes, occasionally up to a day — and check that you entered _dmarc, not your bare domain.

Verify, then tighten — in that order1 · DNS check: dig +short TXT _dmarc.yourdomain.comYou should see your record. If not, wait for propagation.2 · Checker: run the DMARC, SPF and DKIM checkersFix any sender that fails before you enforce anything.3 · Reports: watch rua mail for 2–4 weeksEvery legitimate sender should pass before you move to quarantine.
Verify the record, check every sender, then tighten the policy. Illustration by Cysoro.

When should you move from p=none to quarantine and reject?

Move to quarantine only after two to four weeks of clean reports, then to reject only after quarantine has run clean — moving too fast risks quarantining or rejecting legitimate messages from services you forgot.

Start with p=none and full reporting, validate and align SPF and DKIM for every sender, authorize all third-party services in cPanel, then raise the percentage in stages over 8 to 12 weeks or more while monitoring reports. A typical ramp is p=quarantine; pct=25, then 50, then 75, then 100, then p=reject; pct=100.

Keep a short TTL during changes so you can roll back fast, and lower the policy immediately in Zone Editor if false positives appear. For a domain that never sends mail, you can go directly to p=reject with sp=reject to block abuse. The cPanel DMARC enforcement guide sets out the same staged ramp.

Why bother enforcing at all? Gmail's sender rules, in force from 1 February 2024, ask anyone who sends more than 5,000 messages a day to Gmail accounts to set up SPF, DKIM and DMARC, and to align the From domain with the SPF or DKIM domain. A monitoring policy meets that requirement, but only p=reject actually stops spoofing.

What goes wrong when adding DMARC in cPanel?

The most common problems are a duplicate record, the wrong name, a missing SPF or DKIM setup, and a report mailbox nobody reads.

  • Duplicate DMARC record: only one DMARC TXT record should exist at _dmarc.yourdomain.com. If one already exists, edit it instead of adding a second.
  • Wrong name: entering your bare domain instead of _dmarc publishes the record in the wrong place, where receivers will never look for it.
  • SPF or DKIM not ready: DMARC cannot pass mail that fails both SPF and DKIM alignment, so fix those first — check them with our SPF checker.
  • Reports go unread: aggregate reports are XML and hard to read raw, so use a report tool or a dedicated mailbox with a parser, and check it weekly.
  • Mailing lists break: lists that rewrite the From address can fail DMARC. cPanel's mailing list settings include Wrap Message and Munge From options to make lists DMARC-compatible — try Wrap Message first.
  • DNS is not in cPanel: if your nameservers point elsewhere, the record you add in cPanel will never be seen. Add it at your actual DNS provider instead.
Never start at p=rejectStarting at p=reject before your senders are aligned can block invoices, password resets and newsletters. Start at p=none, read the reports, fix the senders, then enforce.

The bottom line

Adding DMARC in cPanel is one TXT record at _dmarc, and the hard part is not the record — it is the discipline of starting at p=none, fixing every legitimate sender, and only then moving to quarantine and reject.

Do that, and your domain stops being an easy target for spoofing, your legitimate mail keeps flowing, and you finally have reports showing who is sending as you. Verify your record now with the free DMARC checker.

Frequently asked questions

How do I add DMARC to my domain in cPanel?

Log in to cPanel, open Zone Editor under Domains, click Manage for your domain, click Add Record and choose TXT, enter _dmarc as the name, paste your DMARC record as the value, and click Add Record. Start with p=none so you collect reports without affecting mail flow.

What DMARC record should I start with in cPanel?

Start with a monitoring record: v=DMARC1; p=none; rua=mailto:[email protected]. It asks receivers to take no action on failing mail, but to send you aggregate reports. Only move to quarantine or reject after the reports show every legitimate sender passing.

Do I need SPF and DKIM before DMARC?

Yes. DMARC builds on SPF and DKIM, so they need to be in place before DMARC can do anything useful. A message passes DMARC when SPF or DKIM passes and the passing domain aligns with the domain in the visible From address.

How long does DMARC take to work in cPanel?

The record starts resolving once DNS propagates, usually within minutes and occasionally up to a day. Reports arrive daily once receivers start sending them, so allow at least two to four weeks of monitoring before you tighten the policy.

What does p=none, p=quarantine and p=reject mean?

p=none asks receivers to take no action on mail that fails DMARC, and only send reports. p=quarantine asks them to treat failing mail as suspicious, usually sending it to spam. p=reject asks them to reject failing mail outright. Move through them in that order.

Can I have more than one DMARC record?

No. Only one DMARC TXT record should exist at _dmarc.yourdomain.com. If you already have one, edit it instead of adding a second, because receivers may ignore both when they find more than one.

Why is my DMARC record not showing up?

The most common causes are entering the wrong name, such as your bare domain instead of _dmarc, a duplicate record, or DNS propagation still in progress. Check with dig TXT _dmarc.yourdomain.com and wait up to a day before changing anything else.

Does cPanel have a built-in DMARC tool?

Yes, in two places. Zone Editor lets you add the TXT record manually, and some cPanel versions offer an Add DMARC Record option with optional parameters for policy, subdomain policy and alignment. Email Deliverability under Email can also check SPF, DKIM and DMARC for your domain.

Sources

  1. hosting.com — Setting up DMARC
  2. Bird — How to set up DMARC
  3. DMARC Report — How To Gradually Enforce A DMARC Policy In cPanel
  4. Krystal — Improving mail deliverability with SPF, DKIM and DMARC
  5. PowerDMARC — cPanel DMARC, SPF & DKIM Setup Guide
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against hosting.com's cPanel DMARC guide, Bird's DMARC setup guide and DMARC Report's cPanel enforcement guide, plus RFC 7489 policy tags.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free