dotvitals

Loading the list of pages…

↑↓ to moveEnter to openEsc to close

How to add SPF, DKIM and DMARC records at Namecheap

Updated · 9 min read

In short

  • Add the records under Advanced DNS, Host Records: TXT Record for SPF, DMARC and most DKIM keys, CNAME Record for a DKIM pointer, with @, _dmarc or the selector in Host and never the full domain.
  • With Private Email selected in Mail Settings, Namecheap publishes an SPF record the list does not show. Look it up before adding yours, and merge rather than add.
  • Namecheap itself recommends DMARC at p=quarantine or p=reject, with a single DMARC record per domain.
On this page
  1. Advanced DNS works only on Namecheap's own DNS
  2. Adding a host record: Host, Value, TTL
  3. SPF, and the record Mail Settings may already have made
  4. DKIM: Private Email's key, or your provider's
  5. DMARC: Namecheap recommends enforcement
  6. How to confirm it worked
  7. What commonly goes wrong at Namecheap
  8. Sources, and how current this guide is

Namecheap keeps a domain's mail records in two places on one page. The Host Records section of the Advanced DNS tab holds the records you type yourself. The Mail Settings section below it switches Namecheap's mail options on and off, and some of the records those options need are managed for you — including an SPF record that, with Private Email, does not appear in your list at all.

That hidden record is behind the most common Namecheap mistake, so this guide covers what each Mail Settings choice does before it goes through SPF, DKIM and DMARC field by field.

Checked against Namecheap help, 2026-11-19. Namecheap can rename a menu or move a button without notice, so treat the labels below as a dated snapshot: where your screen differs, look for the field each step describes. The pages we read are listed at the end, and where they say nothing, this guide says so rather than guessing.

Check yours now

Advanced DNS works only on Namecheap's own DNS

Namecheap's help says the Host Records section is available only for domains using Namecheap BasicDNS, FreeDNS or PremiumDNS. If you open Advanced DNS and find no way to manage records, the domain points at other nameservers: another company's, or Namecheap's web hosting nameservers, dns1.namecheaphosting.com and dns2.namecheaphosting.com, in which case Namecheap says the records are added in cPanel.

To move a domain registered with Namecheap onto BasicDNS, Namecheap's instruction is to choose Namecheap BasicDNS in the Nameservers section and save with the tick on the right. Switching between Namecheap's own DNS services takes effect within about an hour, Namecheap says, and a move to or from other nameservers can take a day or two. A move takes every record with it, not just the mail ones, so note down what the current DNS host publishes first.

Which nameservers answer for the domain
dig +short NS example.com

Adding a host record: Host, Value, TTL

From Domain List, select Manage next to the domain, open the Advanced DNS tab, and in Host Records select Add New Record. For SPF, DMARC and a DKIM key published as text, choose TXT Record: Namecheap's help says that even a DKIM, DMARC or SPF record is added as the TXT type. A DKIM record published as a pointer uses CNAME Record. Save with the tick at the end of the row, or Save all changes when you have added several.

  • Host: @ for the domain itself, otherwise only the part in front of the domain. Namecheap adds the domain automatically and asks that it never be duplicated, so for something._domainkey.example.com the Host is something._domainkey, and for DMARC it is _dmarc. The field holds up to 60 characters.
  • Value: up to 2,500 characters, so a 2048-bit DKIM key fits in one piece, and Namecheap's help says both 1024-bit and 2048-bit keys are supported. Namecheap does not say whether to type quotation marks and its examples have none, so paste the value bare.
  • TTL: Automatic, which Namecheap defines as 30 minutes. A record you correct can therefore show its old value elsewhere for up to half an hour. On a Microsoft 365 domain, Microsoft asks for at least an hour on the SPF record and the DKIM CNAMEs, so give those records a TTL of an hour or more.
Google Workspace records at Namecheap
Type TXT Record   Host @
Value: v=spf1 include:_spf.google.com ~all

Type TXT Record   Host google._domainkey
Value: v=DKIM1; k=rsa; p=MIIBIjANBgkq...  (the whole key)

Type TXT Record   Host _dmarc
Value: v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com

TTL: Automatic for all three.

SPF, and the record Mail Settings may already have made

The Mail Settings section offers No Email Service, Email Forwarding, MXE, Custom MX, Private Email and Gmail. Namecheap marks the Gmail option as temporarily not working and asks Google Workspace users to choose Custom MX instead and add Google's MX record themselves.

The options differ in what they publish for you. Namecheap says that for the services you have with Namecheap, the SPF record is added automatically, and that with Private Email selected, that SPF record is configured automatically and does not appear in the record list. Our reading, which Namecheap does not state: add an SPF record of your own at @ on top of that, and the domain can end up with two SPF records, one of which the panel does not show. Look the record up before adding anything; if one is already published, the answer is to merge into it, not to add.

Email Forwarding works the other way round. The SPF record it needs is shown in the list, and Namecheap says it cannot be deleted, because forwarding needs it. Namecheap also says free Email Forwarding cannot run together with Private Email or any other mail service, so moving mail to another provider means switching forwarding off.

Namecheap's help states the rule plainly — the SPF specification requires only one TXT record — and gives a merged example: v=spf1 include:spf.privateemail.com include:spf.easywp.com ~all. For Google Workspace on Custom MX, start from v=spf1 include:_spf.google.com ~all and add an include for every other service that sends as you. Keep the whole record under ten DNS lookups.

Namecheap's consolidation article explains both endings without choosing one: with ~all, receivers usually accept mail from servers the record does not list but mark it as suspicious, and with -all they may reject it. Begin with ~all, then change the ending to -all when your DMARC reports have shown every real sender passing for a few weeks. Microsoft's SPF documentation gives the reason to make that change: it says the DMARC policy is effectively ignored for a ~all failure when the message carries no DKIM signature.

DKIM: Private Email's key, or your provider's

For Private Email, the key is generated in your Namecheap account: open the Private Email menu, select Manage next to the domain, and select Generate under DKIM. Namecheap's article is not consistent about what happens next: one part says the TXT record is set up automatically on BasicDNS, and another says to add it by hand on BasicDNS and PremiumDNS alike. Look the record up after generating it, and add it yourself if it is not there. The Host is privateemail._domainkey for subscriptions bought from June 2, 2026, and default._domainkey for older ones — which matters when a checker asks you for the selector.

The same article covers a value entered in two parts. Its advice is not to put only the opening tags, such as v=DKIM1; k=rsa;, in the first field and the rest in the second, but to fit as much of the value as possible into the first. The Value field described above holds a whole 2048-bit key, so paste the key there in one piece. The value is the whole string, ending in a long run of letters and digits after p=, and a record cut short at the semicolon publishes no key at all.

Google Workspace gives you a TXT record named google._domainkey; choose its 2048-bit key, which Namecheap's 2,500-character limit holds whole. Microsoft 365 gives you two CNAME records, selector1._domainkey and selector2._domainkey, with targets copied from its Defender portal. Microsoft's DKIM guide lists Namecheap as a host that adds the domain to the Host for you and needs no trailing dot on the target. Namecheap itself insists only that a CNAME target be a fully qualified domain name, and refuses one that is not with the warning “Please enter a fully qualified domain name.”

Namecheap also notes that a CNAME record blocks any other record at the same Host. A selector published as a CNAME must not have a TXT record beside it.

Publishing is half the job. Turn signing on afterwards: Start authentication in Google's Admin console, or the Sign messages for this domain with DKIM signatures toggle in Microsoft's Defender portal.

DMARC: Namecheap recommends enforcement

Namecheap's DMARC article gives clear advice. Add a TXT Record with the Host _dmarc and a value such as v=DMARC1; p=quarantine; rua=mailto:dmarc@yourdomain.tld. Namecheap recommends p=quarantine or p=reject, says p=none does not provide active protection against spoofing, and says only one DMARC record is allowed per domain, so you edit the existing one rather than adding another.

Two older Namecheap pages say otherwise, and it helps to know which to follow. The Private Email records table shows p=none, and the general TXT article's example includes pct=100, a tag the 2026 revision of DMARC removed. Follow the DMARC article: enforce once SPF or DKIM passes for every service that sends as you, and use p=none only for the weeks it takes the reports to show you who those services are.

Namecheap also warns that p=reject may affect legitimate mail sent through third-party services, or mail that is forwarded. That is the reason to stop at quarantine first: failing mail is set aside rather than refused, so a sender you missed shows up in the reports and in a spam folder rather than as a bounce.

Namecheap notes that reports are optional and that you can remove the rua tag if you do not want them. Keep it: without reports, the step from quarantine to reject is a guess.

How to confirm it worked

Namecheap says new host records normally take about 30 minutes to take effect, and its DKIM and DMARC articles allow an hour. Give a change that long before deciding it failed.

On Namecheap in particular, check with a lookup rather than with the panel. A record that Mail Settings manages may be published without appearing in the list, so the only reliable count of SPF records is the one DNS gives back: exactly one line starting v=spf1.

Then run the SPF checker, the DKIM checker with your selector — privateemail, default, google or selector1 — and the DMARC checker. A message sent to an outside mailbox should show spf=pass, dkim=pass and dmarc=pass in its Authentication-Results header.

Read back what Namecheap is publishing
# one line, counting any SPF record the panel does not show
dig +short TXT example.com | grep spf1

# Private Email bought from June 2, 2026
dig +short TXT privateemail._domainkey.example.com

# older Private Email subscriptions
dig +short TXT default._domainkey.example.com

# exactly one v=DMARC1 record
dig +short TXT _dmarc.example.com

What commonly goes wrong at Namecheap

  • An SPF record added at @ while Private Email's hidden one is already being published.
  • The domain typed into Host, producing a doubled name such as _dmarc.example.com.example.com.
  • The Gmail option chosen in Mail Settings, which Namecheap says is not working; Custom MX is the way to set up Google Workspace.
  • Email Forwarding left on after mail moved to another provider, which Namecheap says cannot run alongside it.
  • A CNAME at @. Namecheap warns it can stop the domain's mail from working, because no other record can share a name with a CNAME.
  • Testing the wrong Private Email selector: privateemail for subscriptions from June 2, 2026, default for older ones.

Sources, and how current this guide is

We read every page below on 2026-11-19 and wrote this guide from what they say, without screenshots, which go out of date faster than the text beside them.

From Namecheap's own help:

From Google's and Microsoft's documentation, read the same day, for the steps that depend on the mail provider:

Check your domain with the SPF checker

Read next