How to Add an SPF Record in Namecheap

Step-by-step guide to adding SPF records with Namecheap DNS. Learn how to create, edit, and manage SPF TXT records through the Namecheap dashboard.

Adding an SPF record to your domain in Namecheap takes about five minutes. But there are a few Namecheap-specific details that trip people up -- like which DNS mode you need to be using, and what to do if you're also running Namecheap's Private Email service.

This guide walks through the entire process, from logging in to verifying that your record is live.

Before You Start

You need two things before adding an SPF record in Namecheap:

  • Your Namecheap account credentials -- You need access to the domain's DNS management panel.
  • Your SPF record value -- The actual TXT record content. If you're not sure what yours should look like, see our guide to creating SPF records.

You also need to make sure your domain is using the right DNS mode. Namecheap offers several options, and not all of them let you add custom TXT records.

Check Your DNS Mode

Namecheap provides three DNS modes:

DNS ModeCan Add SPF Records?When It's Used
BasicDNS (Namecheap FreeDNS)YesDefault for most domains
PremiumDNSYesPaid DNS with DDoS protection
Custom DNS (third-party nameservers)No -- manage DNS at the third partyWhen using Cloudflare, Route53, etc.

If your domain is set to Custom DNS, you're pointing to external nameservers (like Cloudflare). In that case, you need to add the SPF record at your external DNS provider, not in Namecheap.

If your domain uses Custom DNS pointing to another provider like Cloudflare, adding TXT records in the Namecheap dashboard won't do anything. Your DNS is managed elsewhere.

Step-by-Step: Adding an SPF Record in Namecheap

1

Log in to your Namecheap account

Go to namecheap.com and sign in. You'll land on the Dashboard.

2

Go to your Domain List

Click Domain List in the left sidebar. Find the domain you want to add the SPF record to and click Manage next to it.

3

Open the Advanced DNS tab

On the domain management page, click the Advanced DNS tab. This is where all your DNS records live -- A records, CNAME records, MX records, and TXT records.

4

Check for existing SPF records

Before adding a new record, scroll through your existing TXT records. If you already have a record starting with v=spf1, you need to edit it rather than create a second one. Having two SPF records breaks SPF entirely.

5

Click Add New Record

Click the Add New Record button at the bottom of the host records section. Select TXT Record as the record type.

6

Fill in the record fields

Set the following values:

  • Type: TXT Record
  • Host: @ (this represents your root domain)
  • Value: Your SPF record (e.g., v=spf1 include:_spf.google.com -all)
  • TTL: Automatic (Namecheap will set a sensible default)
7

Save the record

Click the green checkmark to save. The record should appear in your list of host records immediately. DNS propagation typically takes a few minutes but can take up to 48 hours.

8

Verify the record is live

After saving, use SPF Record Check to look up your domain. Confirm the record is published, has no syntax errors, and stays under the 10 DNS lookup limit.

If You Use Namecheap Private Email

Namecheap offers its own email hosting service called Private Email (powered by Open-Xchange). If you use it, your SPF record must include Namecheap's email servers.

The include value for Namecheap Private Email is:

include:spf.privateemail.com

Private Email Only

If Namecheap Private Email is your only email sender:

v=spf1 include:spf.privateemail.com -all

Private Email + Google Workspace

If you've migrated to Google Workspace but still have Private Email active, or if you use both:

v=spf1 include:spf.privateemail.com include:_spf.google.com -all

Don't forget the Private Email include

A common mistake is setting up Google Workspace SPF and forgetting that Private Email is still active and sending email (like forwarding or auto-replies). If you use Private Email at all, include spf.privateemail.com in your record.

Example SPF Records for Namecheap

Here are ready-to-use SPF records for common Namecheap configurations:

SetupSPF Record
Namecheap Private Email onlyv=spf1 include:spf.privateemail.com -all
Google Workspace onlyv=spf1 include:_spf.google.com -all
Private Email + Google Workspacev=spf1 include:spf.privateemail.com include:_spf.google.com -all
Google Workspace + SendGridv=spf1 include:_spf.google.com include:sendgrid.net -all
Private Email + SendGridv=spf1 include:spf.privateemail.com include:sendgrid.net -all
Private Email + Google Workspace + Mailchimpv=spf1 include:spf.privateemail.com include:_spf.google.com include:servers.mcsv.net -all

Remember, you can only have one SPF record per domain. If you use multiple services, combine all includes into a single record. See multiple SPF records for more on why.

Check your email deliverability

Make sure your SPF, DKIM, and DMARC records are all working together to protect your domain.

Start Monitoring

Common Namecheap SPF Mistakes

Setting up SPF in Namecheap is straightforward, but these mistakes come up regularly:

Using Custom DNS Without Realizing It

If you pointed your nameservers to Cloudflare, AWS Route53, or another DNS provider, Namecheap's Advanced DNS tab is irrelevant. Records added there won't be served. Check your Nameservers setting under the Domain tab first.

Forgetting the Private Email Include

If you activated Namecheap Private Email at any point, it may still be sending email (forwarding rules, auto-responders, etc.). Leaving include:spf.privateemail.com out of your SPF record means those emails will fail SPF.

Creating a Second SPF Record

When adding a new service, some people add a new TXT record with a fresh v=spf1 line. This creates two SPF records, which causes a permerror -- both records fail. Always edit your existing SPF record to add new includes.

Setting Host to the Domain Name Instead of @

In Namecheap's Advanced DNS, the Host field for a root domain record should be @, not yourdomain.com. Setting it to the full domain name can create a record for yourdomain.com.yourdomain.com.

Forgetting to Remove Old Records

If you migrated away from Namecheap Private Email to another provider, remove the include:spf.privateemail.com from your SPF record. Old includes that reference services you no longer use can waste DNS lookups and potentially cause issues.

Editing an Existing SPF Record

If you already have an SPF record and need to add a new service:

1

Find your existing SPF record

Go to Domain List > Manage > Advanced DNS. Look for a TXT record whose value starts with v=spf1.

2

Click the edit icon

Click the pencil icon next to the record to edit it.

3

Add the new include before -all

Insert the new include: mechanism before the -all or ~all at the end. For example, to add SendGrid to an existing Google Workspace record, change v=spf1 include:_spf.google.com -all to v=spf1 include:_spf.google.com include:sendgrid.net -all.

4

Save and verify

Click the green checkmark to save. Then verify with SPF Record Check to make sure the updated record is valid and under the 10-lookup limit.

SPF for Subdomains in Namecheap

If you send email from a subdomain (like mail.yourdomain.com or marketing.yourdomain.com), the SPF record setup is the same, but you use the subdomain as the Host value instead of @.

For example, to add an SPF record for marketing.yourdomain.com:

  • Host: marketing
  • Value: v=spf1 include:sendgrid.net -all

Each subdomain gets its own SPF record with its own 10-lookup budget, which is useful if your root domain's SPF record is getting close to the limit.

Complete Your Email Authentication

SPF is one piece of the email authentication puzzle. For full protection, you also need:

  • DKIM -- Adds a cryptographic signature to your emails proving they haven't been tampered with. Use DKIM Creator to generate your keys.
  • DMARC -- Ties SPF and DKIM together and tells receiving servers what to do when authentication fails. Use DMARC Creator to build your policy.

All three protocols are added as TXT records in the same Namecheap Advanced DNS panel. The process is identical: click Add New Record, choose TXT, set the appropriate host and value.

Monitor Your New SPF Record

You've created your SPF record — now make sure it keeps working. The Email Deliverability Suite watches your SPF, DKIM, DMARC, and MX records daily and alerts you when something breaks.

Never miss an SPF issue

Monitor your SPF, DKIM, DMARC and MX records daily. Get alerts when something breaks.

Start Monitoring