How to Set Up SPF, DKIM, and DMARC for Google Workspace on Bluehost DNS

 
/
 How to Set Up SPF, DKIM, and DMARC for Google Workspace on Bluehost DNS

SPF, DKIM, and DMARC are DNS records that help prove the emails sent from your domain are really from you. Setting them up for Google Workspace can improve email deliverability, make it less likely your messages are marked as spam, and help protect your domain from being used in spoofing and phishing attempts. This article shows you how to add all three records to your domain's DNS in your Bluehost Account Manager.

Note: These steps apply if your domain's DNS is managed by Bluehost. If your domain uses nameservers from another provider, add the records at that provider instead.

Before You Begin

Make sure you have the following ready before adding the records.

  • An active Google Workspace subscription with your domain set up.
  • Google Workspace MX records already added to your domain, so you can send and receive email.
  • Super administrator access to the Google Admin console, which is required to generate your DKIM key.
Note: If you just set up Google Workspace, wait 24 to 72 hours after Gmail is turned on before generating your DKIM key. Trying earlier may cause an error.

Here's an overview of the three records you'll add:

Record Type Host Record Value
SPF TXT @ v=spf1 include:_spf.google.com ~all
DKIM TXT google._domainkey Generated in your Google Admin console
DMARC TXT _dmarc v=DMARC1; p=none; rua=mailto:[email protected]

Open Your Domain's DNS Settings

All three records are added from the DNS tab of your domain in the Bluehost Account Manager.

  1. Log in to your Bluehost Portal.
  2. In the left-hand menu, click Domains.

    Bluehost Portal - Domains Tab

    • If you have one domain in your account, you will be taken directly to the domain management panel.

      Bluehost Portal - Domains Overview

    • If you have multiple domains in your account, click the domain you wish to manage to access the domain management panel.

      Bluehost Portal - Domains Multiple

  1. If you have more than one domain, click the domain connected to Google Workspace.
  2. Click the DNS tab.

    BH AM - Domains - DNS Tab
     

The Manage Advanced DNS Records section lists your current records, showing each record's Type, Host Record, Point To value, and TTL. Keep this page open, as you'll return to it for each record below.

Set Up SPF

An SPF record lists the mail servers allowed to send email for your domain, so receiving servers can confirm your messages come from Google.

Important: A domain can have only one SPF record. Bluehost may add a default SPF record to your domain. If a TXT record starting with v=spf1 already exists, edit it to include Google instead of adding a second one. Two SPF records cause SPF checks to fail.

If an SPF record already exists

Update the existing record so it includes Google's mail servers.

  1. In the Manage Advanced DNS Records section, find the TXT record whose Point To value starts with v=spf1.
  2. Click the vertical ellipsis icon (⋮) at the end of the row, then select Edit.
  3. Add include:_spf.google.com before the ~all or -all at the end of the value, and keep any other entries that are already there. For example, v=spf1 +a +mx ~all becomes v=spf1 +a +mx include:_spf.google.com ~all.
  4. Click Edit to save your changes.

If no SPF record exists

Create a new TXT record for SPF.

  1. Click + Add Record, then select Single record.

    BH AM - Domains - DNS Tab - Add Record - Single Record
     

  2. In the Add Advanced DNS Record window, fill in the following:
    • Type: Select TXT.
    • Refers to: Select @ to apply the record to your main domain.
    • TXT Value: Enter v=spf1 include:_spf.google.com ~all
    • TTL: Keep the default value.

    BH AM - Domains - DNS Tab - Add Advanced DNS Record - SPF
     

  3. Click Add.
Tip: If other services send email for your domain, such as your website or a marketing platform, keep their include: entries in the same SPF record alongside Google's.

Set Up DKIM

DKIM adds a digital signature to every email you send, letting receiving servers verify the message wasn't changed along the way.

Generate your DKIM key in Google

Google creates a unique DKIM key for your domain, which you'll copy into Bluehost.

  1. Sign in to the Google Admin console with your super administrator account.
  2. Go to Apps > Google Workspace > Gmail.

    GWS - Gmail Tab
     

  3. Click Authenticate email.

    GWS - Authenticate Email
     

  4. In the Selected domain menu, select your domain, then click Generate New Record.

    GWS - Generate New Record
     

  5. Choose a key length of 2048, keep the default prefix selector google, and click Generate.

    GWS - Generate Button
     

  6. Copy the DNS Host name and the TXT record value that appear. Keep this page open, but don't click Start authentication yet.

    GWS- DKIM Record Copy
     

Note: If your domain already uses a DKIM key with the prefix google for another service, enter a different prefix. Your DNS host name will change to match, for example yourprefix._domainkey.

Add the DKIM record in Bluehost

Paste the key Google generated into a new TXT record on your domain.

  1. On your Bluehost DNS tab, click + Add Record, then select Single record.
  2. In the Add Advanced DNS Record window, fill in the following:
    • Type: Select TXT.
    • Refers to: Choose Other Host.
    • Hostname: Enter google._domainkey as the host.
    • TXT Value: Paste the TXT record value you copied from Google. It starts with v=DKIM1;.
    • TTL: Keep the default value.
  3. Click Add.
Note: Some DNS providers limit how long a TXT record can be. If the 2048-bit key won't save, return to the Google Admin console, generate a new record with a key length of 1024, and add that value instead.

Turn on DKIM authentication

Once the record is in place, tell Google to start signing your outgoing email.

  1. Return to the Authenticate email page in the Google Admin console and select your domain.
  2. Click Start authentication. When DKIM is working, the status at the top of the page changes to Authenticating email with DKIM.

    GWS- Start Authentication button
     

Note: After you add the DKIM record, it can take up to 48 hours for DKIM authentication to start working. During this time, the Admin console may show a message saying you must update the DNS records for your domain. If you've added the record correctly, you can ignore it. If Start authentication doesn't work yet, wait a few hours and try again.

Set Up DMARC

DMARC tells receiving servers what to do with email that fails SPF or DKIM checks and sends you reports about it.

Note: Set up DMARC after SPF and DKIM have been authenticating email for at least 48 hours. If a TXT record with the host record _dmarc already exists, click the vertical ellipsis icon (⋮) at the end of its row and select Edit instead of adding a new one. A domain should have only one DMARC record.
  1. On your Bluehost DNS tab, click + Add Record, then select Single record.
  2. In the Add Advanced DNS Record window, fill in the following:
    • Type: Select TXT.
    • Refers to: Choose Other Host.
    • Host Name: Enter _dmarc as the host.
    • TXT Value: Enter v=DMARC1; p=none; rua=mailto:[email protected]
    • TTL: Keep the default value.
  3. In the TXT Value, replace [email protected] with the email address where you want to receive DMARC reports.
  4. Click Add.
Tip: DMARC reports can arrive daily, and busy domains may receive many of them. Use a dedicated mailbox or Google group for reports instead of your own inbox.

The policy setting (p=) controls how receiving servers handle email that fails authentication:

  • p=none: Takes no action and only sends you reports. Start here so you can monitor results without affecting delivery.
  • p=quarantine: Sends failing messages to the recipient's spam folder.
  • p=reject: Blocks failing messages entirely.
Important: Review your DMARC reports for a few weeks before changing to p=quarantine or p=reject. A strict policy can block legitimate email if any of your sending services aren't set up correctly in SPF or DKIM.

Verify Your Records

After the records have had time to update, confirm that everything is working.

  • Check DKIM status: In the Google Admin console, go to Apps > Google Workspace > Gmail > Authenticate email. The status should read Authenticating email with DKIM.
  • Check all records: Use the Google Admin Toolbox Check MX tool to scan your domain for SPF, DKIM, and DMARC issues.
  • Check a sent email: Send an email from your Google Workspace account to someone else's Gmail address, since sending a test to yourself won't verify DKIM. In the received message, click the More icon (⋮) next to Reply and select Show original. SPF, DKIM, and DMARC should each show PASS.

Summary

Adding SPF, DKIM, and DMARC records for Google Workspace in your Bluehost DNS can help your email reach the inbox and help protect your domain from spoofing. Add or update your SPF record to include Google, generate a DKIM key in the Google Admin console and add it in Bluehost, then add a DMARC record starting with a p=none policy.

If you need further assistance, Bluehost Chat Support is available 24 hours a day, 7days a week while Bluehost Phone Support is available 7 days a week from 7 am-12 midnight EST. 

  • Chat Support -  While on our website, you should see a CHAT bubble in the bottom right-hand corner of the page. Click anywhere on the bubble to begin a chat session.
  • Phone Support -
    • US: 888-401-4678
    • International: +1 801-765-9400

You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.

Did you find this article helpful?