# Cloudfare and Hubspot integration

**URL:** <https://community.hubspot.com/t/cloudfare-and-hubspot-integration/102107>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [March 8, 2024, 9:20pm UTC](https://community.hubspot.com/t/cloudfare-and-hubspot-integration/102107 "2024-03-08T21:20:59Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeZebre](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lezebre/32/39641_2.png) [@LeZebre](https://community.hubspot.com/u/LeZebre)\
**Post date:** [March 8, 2024, 9:20pm UTC](https://community.hubspot.com/t/cloudfare-and-hubspot-integration/102107/1 "2024-03-08T21:20:59Z")

</div>

Hello,

I have an issue after installing cloudfare.

This disconnect my website from Hubspot and my emails are no longer received by my contacts.

I tried to update my DNS in cloudfare but this change my IP adress and my website wasn’t on line anymore.

 ![Capture d’écran, le 2024-03-06 à 11.43.21.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/2/526cea01f2cc28292e49bc7476cf633b12019234.png)

I needed to change again the IP adress to get my website on line.

What can I do to connect hubspot to my website ?

Thank you for your help

Sandrine

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [March 9, 2024, 12:58pm UTC](https://community.hubspot.com/t/cloudfare-and-hubspot-integration/102107/2 "2024-03-09T12:58:04Z")

</div>

Hi [@LeZèbre](https://community.hubspot.com/t5/user/viewprofilepage/user-id/65456) to confirm, is your website built in HubSpot? or another CMS?

If your website is NOT hosted in HubSpot, you need to reconnect your current website to your DNS records and use a unique subdomain for HubSpot.

If your website is hosted in HubSpot, please share the status of the domain connection from the HubSpot settings so we can identify the error.

---

<div class="post-metadata">

**Author:** ![LeZebre](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lezebre/32/39641_2.png) [@LeZebre](https://community.hubspot.com/u/LeZebre)\
**Post date:** [March 9, 2024, 2:31pm UTC](https://community.hubspot.com/t/cloudfare-and-hubspot-integration/102107/3 "2024-03-09T14:31:08Z")

</div>

Hello

My website is hosting with cpanel.

I have reconnected it to my DNS record (as you can see) otherwise it is not on line anymore.

How can I connect a subdomain in Hubspot ? I have already connected my subdomain [www.zebrestrategie.com](http://www.mydomain.com) because my domain name is on the form [zebrestrategie.com](http://www.mydomain.com)

 ![Capture d’écran, le 2024-03-09 à 09.32.25.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/1/14dd5fa0f6851840477a0b4a9bee71db3ac4fc12.png)

But my emails still don’t arrive to my contacts.

Thank for your help

Sandrine

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [March 9, 2024, 3:30pm UTC](https://community.hubspot.com/t/cloudfare-and-hubspot-integration/102107/4 "2024-03-09T15:30:24Z")

</div>

Hi [@LeZèbre](https://community.hubspot.com/t5/user/viewprofilepage/user-id/65456) typically the www. version will redirect to the non-www. version, I have confirmed this to be the case for your website.

When I checked the link you provided it redirects to [mydomain.com](http://mydomain.com), but if I type it in manually as [zebrestrategie.com](http://zebrestrategie.com) it does work and the www. is redirecting as well (this is what you want).

I would recommend removing the www. subdomain from HubSpot and changing it to something relevant, like [info.zebrestrategie.com](http://info.zebrestrategie.com)

To do this, disconnect the domain here:

 ![Jnix284_1-1709997554739.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/d/dd81425623bade57676983537d1ee8bfff6fe1c1.png)

The domain in HubSpot is currently configured as a redirect domain, you’ll need to connect it as a primary domain for email following these steps:

1 - click Connect a domain:

 ![Jnix284_0-1709997498824.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/9/998662493dcbc1c8c58145ad8d4082ed2bc13ad2.png)

2 - choose Email Sending:

 ![Jnix284_2-1709997603183.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/8/981875296843c51e54735283f5efd0ebe7a477af.png)

This requires a paid plan:

 ![Jnix284_3-1709997645839.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/3/d3d885c65037fc27939da294c8a241be4b3ddf86.png)

3 - follow the prompts to connect your email sending domain:

 ![Jnix284_4-1709997691161.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/3/a38be05f7b9a3d02f91e2561f3089cd08a3fde0a.png)

Looking at your screenshot, it looks like you are on a free plan - if you don’t want to upgrade, you can still send emails from HubSpot, it will allow you to send from any email address for users in your account or you can add an address:

 ![Jnix284_5-1709997933896.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/0/50d9204dcf34a9f30ede26b43683ebe4768027bd.png)

This will not prompt you to set up the DMARC, DKIM, or SPF records for HubSpot.

DMARC can be setup independent of the host, it’s a record type you add directly to your DNS:

Add a TXT record with HOST = DMARC, with this value = v=DMARC1; p=none;

SPF is automatically added by HubSpot since it’s being sent from their server, no action needed ([see more here from the recent AMA](https://community.hubspot.com/t5/Ask-Me-Anything-and-Panel/Closed-AMA-Google-Yahoo-Authorization-February-26-March-1-2024/m-p/932641/highlight/true#M1900))

You won’t be able to configure a DKIM record, but you can send a test email from HubSpot using [https://www.learndmarc.com/](https://www.learndmarc.com/)to better understand your email deliverabilty.

---

<div class="post-metadata">

**Author:** ![LeZebre](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lezebre/32/39641_2.png) [@LeZebre](https://community.hubspot.com/u/LeZebre)\
**Post date:** [March 9, 2024, 4:49pm UTC](https://community.hubspot.com/t/cloudfare-and-hubspot-integration/102107/5 "2024-03-09T16:49:09Z")

</div>

Hello,

Yes you’re right, I have a free plan so it doesn’t work. Si if I understand well, I cannot connect my domain [zebrestrategie.com](http://zebrestrategie.com)

I don’t really understand what to do for the email following.

I have already a DMARC record in my DNS in cloudfare.

 ![Capture d’écran, le 2024-03-09 à 11.44.26.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/9/9d3b997245f3c98bc401f9fbced6929ba1333f09.png)

Do I need to change something ? I think this is correct.

My emails are not delivered with this configuration

Thank you

Sandrine

---

<div class="post-metadata">

**Author:** ![LeZebre](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lezebre/32/39641_2.png) [@LeZebre](https://community.hubspot.com/u/LeZebre)\
**Post date:** [March 9, 2024, 4:58pm UTC](https://community.hubspot.com/t/cloudfare-and-hubspot-integration/102107/6 "2024-03-09T16:58:16Z")

</div>

Hello

I run a test for my emails and i get this

 ![Capture d’écran, le 2024-03-09 à 11.56.38.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/3/3941c88f7a2be822103e7e75b12e66277f033abb.jpeg)

 ![Capture d’écran, le 2024-03-09 à 11.56.54.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/6/2612cc708d6a120ad47d7afbbcdd27bfc5108f65.png)

What do i need to change ?

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [March 9, 2024, 5:09pm UTC](https://community.hubspot.com/t/cloudfare-and-hubspot-integration/102107/7 "2024-03-09T17:09:37Z")

</div>

Hi [@LeZèbre](https://community.hubspot.com/t5/user/viewprofilepage/user-id/65456) for this test, did you send it from Outlook or HubSpot?

It looks like you sent it from Outlook, which would require you to [configure your DKIM and SPF for Outlook](https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/email-authentication-dkim-configure?view=o365-worldwide).

How do you know your emails from HubSpot aren’t being delivered?

---

<div class="post-metadata">

**Author:** ![LeZebre](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lezebre/32/39641_2.png) [@LeZebre](https://community.hubspot.com/u/LeZebre)\
**Post date:** [March 9, 2024, 9:16pm UTC](https://community.hubspot.com/t/cloudfare-and-hubspot-integration/102107/8 "2024-03-09T21:16:09Z")

</div>

I sent it from Hubspot but my hubspot is connected with Outlook.

I know they are not delivered because my customers don’t receive them.

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [March 9, 2024, 5:07pm UTC](https://community.hubspot.com/t/cloudfare-and-hubspot-integration/102107/9 "2024-03-09T17:07:50Z")

</div>

Hi [@LeZèbre](https://community.hubspot.com/t5/user/viewprofilepage/user-id/65456) Your DMARC looks correct, nothing that would need to be changed. We just need to get to the bottom of why your emails aren’t being delivered.

---

<div class="post-metadata">

**Author:** ![LeZebre](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lezebre/32/39641_2.png) [@LeZebre](https://community.hubspot.com/u/LeZebre)\
**Post date:** [March 11, 2024, 3:09pm UTC](https://community.hubspot.com/t/cloudfare-and-hubspot-integration/102107/10 "2024-03-11T15:09:44Z")

</div>

I found the solution with my hosting provider Namecheap :  
Hello,  
Thank you for getting back to us!  
Your SPF record doesn’t have “include:spf.protection.outlook.com”, you should change it from  
v=spf1 ip4:162.213.251.113 ip4:162.213.251.150 include:spf.web-hosting.com ip4:162.213.251.149 +ip4:198.54.116.159 +ip4:198.54.114.33 +ip4:198.54.115.159 +ip4:198.54.114.159 +mx +a +include:servers.mcsv.net ?all

To the following:  
v=spf1 ip4:162.213.251.113 ip4:162.213.251.150 include:spf.web-hosting.com ip4:162.213.251.149 +ip4:198.54.116.159 +ip4:198.54.114.33 +ip4:198.54.115.159 +ip4:198.54.114.159 +mx +a +include:servers.mcsv.net include:spf.protection.outlook.com ?all  
We also recommend changing the “all” flag in the record from the neutral one(?all) to the strict one(-all). It may help as well. In such a case, the record should look in the following way:  
v=spf1 ip4:162.213.251.113 ip4:162.213.251.150 include:spf.web-hosting.com ip4:162.213.251.149 +ip4:198.54.116.159 +ip4:198.54.114.33 +ip4:198.54.115.159 +ip4:198.54.114.159 +mx +a +include:servers.mcsv.net include:spf.protection.outlook.com -all

… and it works ! 😊

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [March 11, 2024, 4:33pm UTC](https://community.hubspot.com/t/cloudfare-and-hubspot-integration/102107/11 "2024-03-11T16:33:41Z")

</div>

That’s great [@LeZèbre](https://community.hubspot.com/t5/user/viewprofilepage/user-id/65456), I’m glad you could track down the issue with the SPF record and get it resolved!

---

<div class="post-metadata">

**Author:** ![Nagarjoon](https://avatars.discourse-cdn.com/v4/letter/n/e5b9ba/32.png) [@Nagarjoon](https://community.hubspot.com/u/Nagarjoon)\
**Post date:** [April 1, 2024, 2:11pm UTC](https://community.hubspot.com/t/cloudfare-and-hubspot-integration/102107/12 "2024-04-01T14:11:30Z")

</div>

Integrating Cloudflare with your website and maintaining connectivity with HubSpot for email purposes. To resolve this, you may need to carefully review your DNS settings in Cloudflare to ensure they are correctly configured to point to both your website and HubSpot’s email servers. Additionally, consider reaching out to both Cloudflare and HubSpot support teams for further assistance and guidance tailored to your specific setup and requirements.
