Skip to main content

SPF, DMARC and DKIM: Namecheap & Google Workspace accounts

How to avoid Email Rejections, Bounces, Spam, Spoofing with your Google Workspace emails

Updated over 2 weeks ago

If you are using Google Workspace for your email accounts and Namecheap as your domain host, you will need to manually set up some DNS records before using your email accounts for sending.

Watch the detailed video through this link.


Adding Namecheap domains to Google Workspace

This is considered the first step before setting up your SPF, DMARC, and DKIM on Namecheap and Google Workspace.

Here are the steps to guide you through this process:

  1. On your Accounts tab, select the Domains tab.

  2. Click Manage Domains and select Add a domain.

  3. Enter your domain name and select Secondary domain.

  4. Click on Add domain & Start verification.

  5. Manually add the TXT record to your Namecheap domain DNS to verify your domain.

    • Log in to your Namecheap account and find the DNS settings for your domain. You may use this to check the domain list in Namecheap.

    • Click Manage.

    • Click Advanced DNS on the domain page.

    • Paste the TXT record provided by Google and click Save.

    • Return to the Google Workspace guide and click Protect Domain.

    • You can check the verification status in 5 minutes.


Setting MX

Once your domain is verified, you can proceed to add the MX record.

  1. Click on the Accounts tab, and select the Domains tab.

  2. Click Manage Domains.

  3. Find the domain that you are going to connect to and click Activate Gmail.

  4. A dialog box will pop up and choose Set up MX Record, and click Next.

  5. Log in to your Namecheap DNS

  6. Click Manage and then Advanced DNS on the domain page.

  7. Come back to Google and click Next: Go to Step 2

  8. Go to your Namecheap DNS, scroll down to Mail Settings.

  9. Choose Gmail and then click Save changes. The MX record will then be created for your domain.

  10. Next, go back to Google and click Activate your Gmail.


Setting SPF

After adding the domain, you may proceed to set up SPF by following these steps:

  1. In your Namecheap DNS, click Add New Record.

  2. Copy the following if your email provider is Google.

    • Type: TXT Record

    • Host: @

    • Value: If you only send email from Google Workspace, enter this SPF record: v=spf1 include:_spf.google.com ~all

  3. Click Save Changes. For other email providers, please contact Namecheap support to obtain the SPF value.


Setting DKIM

After setting up your SPF, you can easily generate the DKIM record by following these steps:

  1. Log in to your Google Workspace.

  2. Go to Settings for Gmail and click Authenticate email

  3. Select your domain and click on Generate New Record.

  4. Keep the default settings to generate the record. For DKIM key bit length 2048, and prefix selector "google."

  5. Go to your Namecheap Advanced DNS page and click Add new record.

  6. Go to your Google Workspace, copy the generated TXT value, and paste it into Namecheap DNS.

  7. Click Save all changes. For other email providers, please contact Namecheap support to obtain the DKIM value.

  8. Go back to your Google Workspace authentication page and click Start Authentication.

  9. It may take up to 48 hours for DKIM to fully propagate. If you get this error message when authenticating the DKIM record, please make sure you save your record in the Namecheap DNS and try to authenticate it again in a few hours.


Setting DMARC

DMARC Record is a TXT record that you'll need to input into Namecheap DNS. This is considered the last important action. Here are the steps on how to add the DMARC record for your Namecheap domains:

  1. Go to the Namecheap DNS

  2. Locate the domain you want to set up the records for and select Manage.

  3. Click the 'Advanced DNS' tab and select 'Add new record.'

  4. Copy the following details:

  5. Set the TTL to the lowest value.

  6. The rug tag is optional for any domain/email provider, so if you don't want to receive DMARC reports, you can remove the rug tag from the DMARC value.

  7. If you are using the rua tag in the DMARC value, please make sure to replace [email protected] with your email address.

  8. Click Save to save the record in your Namecheap DNS and wait for the confirmation.

  9. For other email providers, please contact Namecheap support to obtain the DMARC value.

Did this answer your question?