HubSpot Email Authentication Setup

HubSpot CRM platform with built-in marketing email capabilities. This guide covers the complete email authentication stack for HubSpot: SPF, DKIM, and DMARC. Each section gives you the exact DNS records, step-by-step instructions, common pitfalls, and how to verify your setup.

How to Set Up SPF for HubSpot

Authorize HubSpot to send marketing and transactional email on behalf of your domain by adding the correct SPF include.

Quick Answer — The Record You Need

Type

TXT

Host / Name

@

Value
v=spf1 include:_spf.hubspot.com ~all

If HubSpot uses a transactional email partner (e.g., SendGrid), you may need their include as well.

Step-by-Step Setup

1

Log in to HubSpot

Go to app.hubspot.com and sign in to your account.

2

Navigate to domain settings

Go to Settings > Website > Domains & URLs > Email Sending Domains. Click "Connect a domain".

3

Enter your sending domain

Enter the domain you send email from. HubSpot will generate the DNS records you need.

4

Add the SPF record

Add include:_spf.hubspot.com to your existing SPF record.

v=spf1 include:_spf.hubspot.com ~all
5

Verify in HubSpot

Click "Verify" in HubSpot. The platform will check your DNS records.

Before & After

Before
v=spf1 include:_spf.google.com ~all
After
v=spf1 include:_spf.google.com include:_spf.hubspot.com ~all

SPF Gotchas

  • HubSpot uses _spf.hubspot.com for their SPF include. Do not use hubspot.com directly.
  • HubSpot transactional email may route through a different provider. Check the DNS records HubSpot provides in your account for the most accurate SPF include.
  • If you exceed 10 SPF DNS lookups, HubSpot supports Domain Connect for automatic DNS configuration with compatible providers.

SPF FAQ

What SPF record do I need for HubSpot?

Add include:_spf.hubspot.com to your SPF record. For example: v=spf1 include:_spf.hubspot.com ~all.

Does HubSpot support Domain Connect for SPF?

Yes. If your DNS provider supports Domain Connect (e.g., GoDaddy), HubSpot can configure DNS records automatically.

Do I need separate SPF for HubSpot marketing and transactional email?

Check your HubSpot account settings. HubSpot may use different infrastructure for transactional email, which could require an additional SPF include.

How to Set Up DKIM for HubSpot

Enable DKIM signing in HubSpot by publishing the CNAME records it provides for your email sending domain.

Quick Answer — The Record You Need

Type

CNAME

Host / Name

hs1._domainkey

Value
yourdomain-com.hs01a.dkim.hubspotemail.net

HubSpot generates two CNAME records (hs1 and hs2 selectors). Copy exact values from your HubSpot settings.

Step-by-Step Setup

1

Log in to HubSpot

Go to app.hubspot.com and sign in.

2

Navigate to email sending domains

Go to Settings > Website > Domains & URLs > Email Sending Domains.

3

Connect your domain

Click "Connect a domain" and enter your sending domain. HubSpot generates the DKIM CNAME records.

4

Add the CNAME records to DNS

Create the CNAME records in your DNS provider as shown by HubSpot.

hs1._domainkey.yourdomain.com  CNAME  yourdomain-com.hs01a.dkim.hubspotemail.net
hs2._domainkey.yourdomain.com  CNAME  yourdomain-com.hs01b.dkim.hubspotemail.net
5

Verify in HubSpot

Click "Verify" in HubSpot. Once DNS propagates, HubSpot will confirm DKIM is active.

DKIM Gotchas

  • HubSpot provides two CNAME records with selectors hs1 and hs2. Both must be published.
  • The CNAME values contain your domain name with dots replaced by dashes (e.g., example-com). Copy them exactly from HubSpot.
  • If your DNS provider does not support CNAME records at the specified hostnames, contact HubSpot support for alternative TXT record options.

DKIM FAQ

What DKIM selectors does HubSpot use?

HubSpot uses hs1 and hs2 as DKIM selectors, published as CNAME records pointing to HubSpot-managed keys.

Does HubSpot rotate DKIM keys?

Yes. Since DKIM records are CNAMEs pointing to HubSpot-hosted keys, HubSpot can rotate keys without requiring DNS changes.

Can I use HubSpot DKIM with a subdomain?

Yes. If you send from a subdomain, configure the DKIM records for that subdomain during the domain connection process.

How to Set Up DMARC for HubSpot

Publish a DMARC record to protect your domain when sending marketing email through HubSpot.

Quick Answer — The Record You Need

Type

TXT

Host / Name

_dmarc

Value
v=DMARC1; p=none; rua=mailto:[email protected]; ruf=mailto:[email protected]; fo=1

Complete HubSpot domain authentication (SPF + DKIM) before enforcing DMARC.

Step-by-Step Setup

1

Complete HubSpot email domain setup

Ensure SPF and DKIM are both configured and verified in HubSpot settings.

2

Test email authentication

Send a test email from HubSpot and verify SPF and DKIM pass in the email headers.

3

Create the DMARC record

Add a TXT record at _dmarc.yourdomain.com.

v=DMARC1; p=none; rua=mailto:[email protected]; ruf=mailto:[email protected]; fo=1
4

Review aggregate reports

Monitor DMARC reports for 2-4 weeks to confirm HubSpot emails pass alignment.

5

Move to enforcement

Gradually move from p=none to p=quarantine to p=reject.

DMARC Gotchas

  • HubSpot must have email domain authentication complete for DMARC alignment. Without it, emails are signed with HubSpot's domain.
  • If you use HubSpot alongside other email services (Google Workspace, SendGrid, etc.), all must be authenticated before enforcing.
  • HubSpot free and Starter plans may have limited email domain authentication features. Check your plan's capabilities.

DMARC FAQ

Does HubSpot support DMARC alignment?

Yes, when email domain authentication is complete. This aligns the DKIM d= domain with your From domain.

Will DMARC enforcement block my HubSpot marketing emails?

Only if email domain authentication is not complete. With SPF and DKIM properly configured, HubSpot emails pass DMARC.

Do I need DMARC for HubSpot if I already have it for Google Workspace?

DMARC is one record per domain. If you already have a DMARC record, it covers all email from your domain, including HubSpot. You do not need a separate one.

Verify Your HubSpot Setup

Once your SPF, DKIM, and DMARC records are in place, run a full domain scan to confirm everything is configured correctly. DNS changes typically propagate within minutes but can take up to 48 hours.

Setup Guides for Other Providers