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:
- Choose a subdomain for sending Sufio emails
- Set up an SPF record
- Set up a DKIM key
- Set up MX records
- Set up a CNAME record
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.
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.
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:
- In your Shopify admin, go to Settings → Domains and click the domain you use for your store.
- From the Domain settings dropdown, select Edit DNS settings.
- 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.
- If you do not have an SPF record yet, from the Add custom record dropdown, select TXT record.
- 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
- Click Confirm to save your changes.
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:
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.
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:
- Contact our support team to create and provide you with a custom DKIM key for your domain.
- In your Shopify admin, open the Edit DNS settings and from the Add custom record dropdown, select TXT record.
- 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.
- Name: The dedicated subdomain prefix (for example,
- Click Confirm to save your changes.
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:
- In your Shopify admin, open the Edit DNS settings and from the Add custom record dropdown, select MX record.
- For the subdomain you chose for sending Sufio emails, Insert the following values:
- Name:
invoices
- Points to:
mxa.mailgun.org
- Priority:
10
- Click Confirm to save your changes.
- 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:
Sufio uses CNAME record to track email opens and clicks.
- In your Shopify admin, open the Edit DNS settings and from the Add custom record dropdown, select CNAME record.
- 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
- Click Confirm to save your changes.
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.
Professional invoices for Shopify stores
Let Sufio automatically create and send beautiful invoices for every order in your store.
Install Sufio - Automatic Invoices from the Shopify App Store