Set up emails for a domain you manage in Shopify

If you manage the domain of your store in Shopify, you may want to set up a custom mailing domain for sending documents from Sufio. This way, you ensure that the emails from Sufio comply with your domain's DMARC policy, and that they are sent from your own domain rather than on behalf of it.

This article will walk you through the steps of the setup process.

This article covers:

Note

Custom mailing domains are only available in the Professional plan and higher. To help you set things up, please contact our experienced support team first, as many of these steps will require their help.

Choose a subdomain for sending Sufio emails

To set up a custom mailing domain, we strongly recommend that you dedicate a separate subdomain (for example, invoices.acmeshop.com) for sending emails from Sufio. This way, you can protect your domain reputation, especially when sending a large number of emails.

Set up an SPF record

Sender Policy Framework (SPF) is a text record added to the Domain Name System (DNS) that contains the domain names of all the servers you authorized to use your domain name to send emails.

To set up an SPF record:

  1. In your Shopify admin, go to SettingsDomains and click the domain you use for your store.
  2. From the Domain settings dropdown, select Edit DNS settings.
  3. First, check if you already have an existing SPF record for the subdomain you dedicated to send emails from Sufio. To do this, search for records that contain the selected subdomain prefix in the Name field.
  4. If you do not have an SPF record yet, from the Add custom record dropdown, select TXT record.

Shopify DNS Settings view

  1. Insert the following values:
    • Name: The subdomain prefix (for example, invoices) or @ if you want to use the root domain
    • TXT Value: v=spf1 include:mailgun.org ~all
  1. Click Confirm to save your changes.

Add SPF Record view

If you are not using a separate subdomain and already have an existing SPF record, add the mailgun.org to the TXT Value field of your SPF record. For example, if you previously had _spf.google.com in your record, the resulting TXT Value should look like this:

v=spf1 include:_spf.google.com mailgun.org ~all

Caution

Only use one SPF record per domain or subdomain. If you already have an SPF record set up for your subdomain, add the mailgun.org to the existing record.

You can create a separate SPF record for each subdomain, for example, invoices.acmeshop.com.

Set up a DKIM key

DomainKeys Identified Mail (DKIM) is an authentication method used to verify that emails come from the actual sender and not from someone who pretends to be the sender. When a receiving server checks a Sufio email sent from your domain, it verifies that the email was signed with a DKIM key from Sufio.

To set up DKIM for your custom mailing domain:

  1. Contact our support team to create and provide you with a custom DKIM key for your domain.
  2. In your Shopify admin, open the Edit DNS settings and from the Add custom record dropdown, select TXT record.
  3. Insert the following values:
    • Name: The dedicated subdomain prefix (for example, invoices) or @ if you want to use the root domain.
    • TXT Value: Copy and paste the DKIM key provided by our support team.
  4. Click Confirm to save your changes.

Set up MX records

Mail Exchange (MX) records are used to direct incoming mail for an email address to a specific server address. For Sufio emails, a custom MX record needs to be configured for your subdomain to allow tracking of email deliverability.

That means, when a customer receives an email from Sufio, their server sends back a confirmation that the email was received and the MX record tells the customer to send the confirmation back to Sufio.

If you do not set up the MX record, some receiving servers may even reject emails sent from your domain or mark them as spam.

Caution

Modify your MX records only when you are using a subdomain dedicated for Sufio emails (for example, invoices.acmeshop.com).

If you modify your primary domain MX records, you may override your existing settings and you may not be able to receive any emails.

To set up an MX record:

  1. In your Shopify admin, open the Edit DNS settings and from the Add custom record dropdown, select MX record.

Shopify DNS Settings view

  1. For the subdomain you chose for sending Sufio emails, Insert the following values:
    • Name: invoices
    • Points to: mxa.mailgun.org
    • Priority: 10
  1. Click Confirm to save your changes.
  2. Repeat the previous two steps using the following values for a second MX record:
    • Name: invoices
    • Points to: mxb.mailgun.org
    • Priority: 10

Once completed, your MX records should look like this:

MX Records in Shopify

Set up a CNAME record

Sufio uses CNAME record to track email opens and clicks.

  1. In your Shopify admin, open the Edit DNS settings and from the Add custom record dropdown, select CNAME record.
  2. Insert the following values:
    • Name: The dedicated subdomain prefix (for example, invoices) or @ if you want to use the root domain.
    • Points to: mailgun.org
  1. Click Confirm to save your changes.

Shopify CNAME record

After following all the steps, contact our support team to confirm that everything has been set up correctly and to receive help troubleshooting any issues. They will then add the custom mailing domain and ensure that the entire setup on your Sufio account works as expected.

Note

Please note you may have to wait up to 48 hours before any changes you make to your DNS records take effect.