Chat +1-888-563-5277 Contact sales

Shopify SPF Configuration: Step by Step

Wondering how do you set up SPF record in Shopify? This informative post will demonstrate the configuration process of Sender Policy Framework (SPF) Signature on your Shopify to ensure Shopify passes the DMARC alignment check.

SPF records allow receiving servers to check whether an email with the specified source domain was actually sent from a server authorized by the owner of this domain. 

To ensure SPF passes the DMARC check, a custom domain needs to be added in order for SPF to align with the domain name.

How to add a custom domain in Shopify

1. Navigate to Shopify and select the “Domains” tab.
Note: If the domain is already added and status says Connected, it means the custom domain is already set up. Kindly skip these following steps and proceed with “The process of setting up the SPF Record” section.

Shopify Domain Set up

2. Select the “Connect existing domain” to add the new custom domain to Shopify.

Shopify Setting up Domain

3. Once selected, add the domain name and click on the “Next” button.
Note: It is recommended to add a subdomain to avoid collisions with root domain sources that may cause issues.
 

insert new domain name shopify

4. After clicking on the “Next” button, Navigate to the DNS provider and create a new CNAME record (CloudFlare, Godaddy, etc.).

CloudFlare is used for this example.

  • The “Name” section is the domain name.
  • The “Target” section should direct to shops.myshopify.com

 

Cloudflare CNAME Setup Shopify

5. Once the new CNAME record is stored, navigate back to Shopify and click on the “Verify Connection” button.

Shopify Verify Connection button

 

After clicking on the button, a message will appear stating that the process was concluded successfully.

Shopify domain added

How to setup the SPF Record

To ensure the emails from Shopify are sent from your domain behalf we need to create or update you existing SPF record with including the following mechanism: include:shops.shopify.com

To create a new SPF record, you can easily create a record using our SPF Record Generator tool.

The steps to create a new SPF record:

  1. Navigate to SPF Record Generator.
  2. Add include:shops.shopify.com in the include:__ section.
  3. Select the Policy (The options are : Fail (Not Compliant will be rejected), SoftFail (Not Compliant will be accepted but marked) and Neutral (Mails will be probably accepted)).
  4. When the proper steps are made click on the “Generate SPF Record ”.
    SPF record generator Easydmarc
  5. Copy the provided SPF record and navigate to the DNS provider TXT record (CloudFlare, Godaddy, etc.).

We’ll be using CloudFlare for this example.

SPF record cloudflare txt setup

Important Note: Make sure you don’t create multiple SPF TXT records on one domain. If you do, SPF will return a PermError.

If you are using multiple IPs, ESPs, Third-Party services for your various email strategies, you should include them in a single SPF Record.

E.g v=spf1 ip4:17.67.137.221 include:shops.shopify.com  include:thirdpartyservice.com ~all

Once the SPF record is added in the DNS zone, the SPF record will pass the DMARC check!

Note: Shopify does not support DKIM alignment as of this current time, but DMARC passes when either SPF or DKIM pass the DMARC check. Doing the steps above will ensure all emails from Shopify are DMARC compiled.

For more 3rd party configuration steps:

What is A “Watering Hole” Attack: Module 5

What is A “Watering Hole” Attack: Module 5

This cybersecurity term originates from hunting. Rather than go after the prey, it’s easier...

Read More
Real-Life Phishing Email Examples and Their Impact: Module 4

Real-Life Phishing Email Examples and Their Impact: Module 4

As we’ve already mentioned in the previous modules, cyberthreats result in significant losses in...

Read More
Cyber Threat Actors - Phishing Emails:  Module 3

Cyber Threat Actors - Phishing Emails: Module 3

How To Spot Phishing Emails  Phishing is a hacker-favorite method of stealing personal information. While...

Read More
×