# Setting up SPF if using Google Workspace

**URL:** <https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984>\
**Category:** Sales Email\
**Tags:** sales-email\
**Created:** [January 3, 2024, 2:16am UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984 "2024-01-03T02:16:51Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![RebelHealth1](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@RebelHealth1](https://community.hubspot.com/u/RebelHealth1)\
**Post date:** [January 3, 2024, 2:16am UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984/1 "2024-01-03T02:16:51Z")

</div>

Hi,

I am in the process of setting up SPF and DKIM for our domain. We have recently set up with Google Workspace and have linked it to Hubspot.

Will emails that we send from the Hubspot CRM still be tehcnicaly be sent via Google? Do I need to add at record for Google and Hubspot?

Thank you!

---

<div class="post-metadata">

**Author:** ![DSharma02](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dsharma02/32/89701_2.png) [@DSharma02](https://community.hubspot.com/u/DSharma02)\
**Post date:** [January 3, 2024, 5:47am UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984/2 "2024-01-03T05:47:43Z")

</div>

Hi @RebelHealth1 ,  
When you set up SPF and DKIM for your domain, you’re essentially configuring your domain’s DNS records to authenticate your outgoing emails. These authentication mechanisms help prevent email spoofing and enhance the deliverability of your emails.  
Your emails will be sent with whatever the email sending domain your are connecting with your HubSpot.  
Hope this helps!  
Thanks.

---

<div class="post-metadata">

**Author:** ![RebelHealth1](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@RebelHealth1](https://community.hubspot.com/u/RebelHealth1)\
**Post date:** [January 3, 2024, 11:55am UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984/3 "2024-01-03T11:55:37Z")

</div>

Much appreciated. Thank you for the clarification.

---

<div class="post-metadata">

**Author:** ![Georgeb](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/georgeb/32/63860_2.png) [@Georgeb](https://community.hubspot.com/u/Georgeb)\
**Post date:** [January 29, 2024, 11:32pm UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984/4 "2024-01-29T23:32:34Z")

</div>

So you do set it up as **v=spf1 include:\_spf.google.com -all or v=spf1 include:5414923.spf10.hubspotemail.net +all I am confused???**

---

<div class="post-metadata">

**Author:** ![krboots](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/krboots/32/91681_2.png) [@krboots](https://community.hubspot.com/u/krboots)\
**Post date:** [February 2, 2024, 6:52pm UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984/5 "2024-02-02T18:52:44Z")

</div>

Need to know the same thing if anyone can help!

---

<div class="post-metadata">

**Author:** ![ACast01](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@ACast01](https://community.hubspot.com/u/ACast01)\
**Post date:** [April 4, 2024, 10:26pm UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984/6 "2024-04-04T22:26:51Z")

</div>

Any luck on a solution?

---

<div class="post-metadata">

**Author:** ![Gudorf](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gudorf/32/192648_2.png) [@Gudorf](https://community.hubspot.com/u/Gudorf)\
**Post date:** [April 4, 2024, 10:42pm UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984/7 "2024-04-04T22:42:37Z")

</div>

Disappointgly no. HubSpot told me to switch domain providers in order to resolve. We don’t want to do that for multiple clients on Google Workspace and so are monitoring to see how Google treat the issue in the real world.

---

<div class="post-metadata">

**Author:** ![ACast01](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@ACast01](https://community.hubspot.com/u/ACast01)\
**Post date:** [April 4, 2024, 10:46pm UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984/8 "2024-04-04T22:46:08Z")

</div>

I found a solution. Although sloppy, it got me authenticated and seemed to work.

[https://www.reddit.com/r/gsuite/s/vQOAR0rof3](https://www.reddit.com/r/gsuite/s/vQOAR0rof3)

---

<div class="post-metadata">

**Author:** ![RealGB](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@RealGB](https://community.hubspot.com/u/RealGB)\
**Post date:** [February 5, 2024, 3:49am UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984/9 "2024-02-05T03:49:52Z")

</div>

Hi George,

You’ll actually need both; as you send emails from both.  
" **v=spf1 include:\_spf.google.com include:5414923.spf10.hubspotemail.net ~all"**  
note how in my example you have both HubSpot and Google authorised to send emails… I also changed to ~All.

---

<div class="post-metadata">

**Author:** ![YJi1](https://avatars.discourse-cdn.com/v4/letter/y/91b2a8/32.png) [@YJi1](https://community.hubspot.com/u/YJi1)\
**Post date:** [March 7, 2024, 4:09pm UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984/10 "2024-03-07T16:09:29Z")

</div>

The issue is,

in google domain,

when you set it up for google workspace, you can not remove/edit the SPF record.  
You only can add a new record but when I did, it does not override the one from google workspace.  
So the tool says, multiple SPF are found and it is an error  
We don’t have an option to delete google workspace SPF record in google domain  
that’s the issue

 ![YJi1_0-1709827761638.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/9/995ac15bb104004454b62987e0a197b17d5753d4.png)

> **[Network Tools: DNS,IP,Email](https://mxtoolbox.com/SuperTool.aspx)**
>
> DNS and Network troubleshooting and diagnostic tools integrated into one sweet interface.

What I found afterword is that it works even when there are multiple records.  
But not so sure if this is okay to do so long term.

---

<div class="post-metadata">

**Author:** ![franzwilhelm](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/franzwilhelm/32/193454_2.png) [@franzwilhelm](https://community.hubspot.com/u/franzwilhelm)\
**Post date:** [February 9, 2024, 2:44pm UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984/11 "2024-02-09T14:44:14Z")

</div>

You can view Google Workspace’s documentation on setting up multiple SPF records: [Set up SPF &nbsp;|&nbsp; Apps & integrations &nbsp;|&nbsp; Google Workspace Help](https://support.google.com/a/answer/10685031?sjid=1874307878279101066-EU)  
Based on this I ended up configuring with:  
v=spf1 include:\_spf.google.com include:[YOUR\_HUBSPOT\_ID\_HERE].spf05.hubspotemail.net ~all  
After completing the setup, you can verify your spf records through this tool: [SPF Check & SPF Lookup - Sender Policy Framework (SPF) - MxToolBox](https://mxtoolbox.com/spf.aspx)  
It should list both your HubSpot spf records and your Google spf records with a label of “Pass”  
Hope this helps. Also note that correct DMARC and MX records are required for the email sending through Google Workspace to work correctly

---

<div class="post-metadata">

**Author:** ![krboots](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/krboots/32/91681_2.png) [@krboots](https://community.hubspot.com/u/krboots)\
**Post date:** [February 9, 2024, 4:35pm UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984/12 "2024-02-09T16:35:00Z")

</div>

This is what I ended up doing and it worked as well!

---

<div class="post-metadata">

**Author:** ![Gudorf](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gudorf/32/192648_2.png) [@Gudorf](https://community.hubspot.com/u/Gudorf)\
**Post date:** [February 16, 2024, 10:37pm UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984/13 "2024-02-16T22:37:03Z")

</div>

@franzwilhelm The issue I’m running into is that Google Domains won’t let me modify the SPF record. I’m using HubSPot, Google Workspace and Google Domains.  
The base Google spf is set auto-magically and while I can add aditional records, I have not found the secret to editing the actual record we need to update to include HubSpot. Suggestion?

---

<div class="post-metadata">

**Author:** ![RealGB](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@RealGB](https://community.hubspot.com/u/RealGB)\
**Post date:** [February 16, 2024, 11:41pm UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984/14 "2024-02-16T23:41:40Z")

</div>

Hello -

What you need to do is add a new record - a TXT record.

Should be straightforward; Navigate to DNS Tab, click “Add” and select the record type as “TXT” - then you need to paste your SPF records.  
IF you already have another TXT record (which most people will for site verification) you’ll need to add it on a separate line of the existing TXT record.  
You can only have one TXT record per site.

---

<div class="post-metadata">

**Author:** ![Gudorf](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gudorf/32/192648_2.png) [@Gudorf](https://community.hubspot.com/u/Gudorf)\
**Post date:** [February 17, 2024, 12:16am UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984/15 "2024-02-17T00:16:11Z")

</div>

I appreciate that it should be straightforward… Yes, I can add a new TXT  
record but that doesn’t update the SPF record a few lines down (Google  
won’t allow that to be edited via the Manage button. What am I missing?  
[image: 286C0DCB-B4F8-4209-AD5E-C44DCD6F7454\_1\_201\_a.jpeg]

---

<div class="post-metadata">

**Author:** ![RealGB](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@RealGB](https://community.hubspot.com/u/RealGB)\
**Post date:** [February 17, 2024, 12:35am UTC](https://community.hubspot.com/t/setting-up-spf-if-using-google-workspace/96984/16 "2024-02-17T00:35:54Z")

</div>

Hi Gudorf,

Your image wasn’t added.  
I am assuming, Google has a fake DNS record for SPF to add their records automatically; this is likely just appended to their real record.  
In any case, if you CAN add a new TXT record, add it there.  
You can then test your records using [https://whatsmydns.net](https://whatsmydns.net) (this will also help speed up the propagation).  
And, failing a solution, I’d move off Google Domains DNS.  
- It’s deprecated and closing down…
