Skip to main content
All CollectionsSetup
SPF, DMARC and DKIM: Namecheap & Google Workspace accounts
SPF, DMARC and DKIM: Namecheap & Google Workspace accounts

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

Updated over 4 months 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 prior to starting using your email accounts for sending.

Adding domain from Namecheap to Google Workspace

This is considered as the first step to set up your SPF, DMARC, and DKIM on Namecheap and Google Workspace. Watch here the detailed video through this link.

Here is a guide to get you through this process.

  1. Login to your Google Workspace Admin Console.

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

  3. Click Manage Domains and select Add a domain link.

  4. Enter your domain name and select Secondary domain.

  5. Click on Add domain & Start verification.

  6. Manually enter the DNS records into your Namecheap domain DNS. You may follow these two steps.

    1. Log in to your Namecheap

      1. Log in to your Namecheap and find the DNS settings for your domain.

      2. You may use this to check the domain list in Namecheap.

      3. Click Manage.

      4. Click Advanced DNS on the domain page.

      5. Go to your Google Workspace and click Next: Go to Step 2.

    2. Copy the TXT record from Google and paste it into Namecheap domain DNS

      1. Go to Namecheap and select the Advanced DNS page.

      2. Click Add new record.

      3. Paste the data from Google Workspace and click Save.

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

  7. Next, activate your Gmail. Log in to your Google Workspace Admin Console.

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

  9. Click Manage Domains.

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

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


Setup SPF

After setting up a domain, you may proceed to setup SPF with these steps.

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

  2. Copy the following.

    1. Type: TXT Record

    2. Host: @

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

  3. Click Save Changes.


Setup DKIM

After setting up your SPF, you can easily set up your DKIM with the help of these steps.

  1. Login to your Google Workspace.

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

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

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

  5. Go to your Google Workspace, copy the generated data, and paste it to Namecheap.

  6. Click Save all changes.

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

Note: If you get this error message when authenticating the DKIM record, please make sure you save your record in the GoDaddy DNS and try to authenticate it again in a few minutes.


Setup DMARC

DMARC is known as a TXT Record that you'll need to input into Namecheap DNS. This is the last step of setting up. You may finish setting up by following these procedures.

  1. Sign in to your Namecheap.

  2. Locate the domain where you want to set up the records and click Manage.

  3. You will be redirected to a new window and click Advanced DNS.

  4. Scroll down and click on Add new record.

  5. Copy the following.

    1. Type: TXT Record

    2. Host: @

    3. Value: v=DMARC1;p=none;sp=none;pct=100;rua=mailto:[email protected];ruf=mailto:[email protected];ri=86400;aspf=s;adkim=s;fo=1

  6. Set the TTL Record to the lowest possible.

  7. Paste the record in your Namecheap DNS.

  8. Click Save all changes.

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.

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

Did this answer your question?