HubSpot
SPF
Without dedicated IP
If you don’t have a dedicated IP, HubSpot is not capable of sending SPF-aligned emails, meaning that their mail servers won’t use your domain name in the Envelope From
(or Return-Path
) of email messages.
In this situation it’s not possible to achieve DMARC compliance via SPF with HubSpot.
Since HubSpot uses a domain of theirs as the Envelope From
(usually a subdomain of hubspotemail.net
) and SPF retrieves the SPF TXT
record from that domain, you don’t need to allow HubSpot in the SPF record of your domain.
While HubSpot still says that it’s «highly recommended» to add the SPF record anyway, there’s no technical reason to do that: if anything, this will increase the risk of reaching the limit of 10 DNS lookups.
With dedicated IP
If you set up a dedicated IP ($300 per month), HubSpot will send emails using your domain in the Envelope From
, therefore allowing SPF alignment.
In this case, you will be provided with a domain-specific SPF record during the setup process of the dedicated IP.
As the HubSpot documentation says, most customers set up an Envelope From
that looks like 12345m.example.com
, while still sending emails from the @example.com
domain (this has implications on the DMARC alignment modes you can use, see below for more details).
DKIM
HubSpot supports DMARC compliance via DKIM, thanks to custom DKIM signatures.
You can find the required records to set up DKIM in Settings → Content → Domains & URLs.
After choosing your domain, you will see two CNAME
records. These records are specific to your domain.
DMARC
There are two situations:
- If you’re not using a dedicated IP, HubSpot supports DMARC compliance via DKIM only.
- If you are using a dedicated IP, HubSpot supports DMARC compliance on both SPF and DKIM.
Set up DMARC to:
- Receive email delivery reports to identify and fix authentication issues and find out who’s sending from your domain.
- Choose the action to apply when both SPF and DKIM are not aligned with your sender domain, blocking abuse attempts.
Use a DMARC monitoring tool like DMARCwise to simplify compliance and detect issues before they affect your domain reputation.
Here’s an example of a DMARC record, to be created as a TXT
record on _dmarc.example.com
:
v=DMARC1; p=none; rua=mailto:;
You may later strengthen the policy and change the alignment mode, but remember that in HubSpot:
- If you’re not using a dedicated IP you won’t be able to reach SPF alignment.
- If you’re using a dedicated IP:
- If you send emails from
@example.com
or even@news.example.com
but yourEnvelope From
domain is different, like12345m.example.com
, you cannot use the strict SPF alignment mode. - If you send emails from
@news.example.com
and yourEnvelope From
domain is also@news.example.com
, you may use strict SPF alignment.
- If you send emails from
- The DKIM signature domain should always match your sender domain exactly, so you may use strict DKIM alignment.
Make sure you also consider other sending sources unrelated to HubSpot.
Here’s an example of a DMARC record with a strengthened policy and strict alignment on both SPF and DKIM:
v=DMARC1; p=reject; rua=mailto:; aspf=s; adkim=s;
Last updated on October 5, 2024