# Shopify/SendGrid DKIM Fail 'temperror'

**URL:** <https://forum.dmarcian.com/t/shopify-sendgrid-dkim-fail-temperror/2458>\
**Category:** Technical Help\
**Created:** [April 23, 2024, 3:05pm UTC](https://forum.dmarcian.com/t/shopify-sendgrid-dkim-fail-temperror/2458 "2024-04-23T15:05:02Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmarkymark](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@dmarkymark](https://forum.dmarcian.com/u/dmarkymark)\
**Post date:** [April 23, 2024, 3:05pm UTC](https://forum.dmarcian.com/t/shopify-sendgrid-dkim-fail-temperror/2458/1 "2024-04-23T15:05:02Z")

</div>

Hi all

I am having a terrible time trying to figure out what could possibly be causing this particular scenario where my Domain Report says Shopify Inc has 50% DKIM alignment (1 of 2 emails).

When I look at the raw XML, both emails have source\_ip that belong to SendGrid (Shopify uses SendGrid API).

Note that I have confirmed with Shopify that all of my DMARC records are correctly configured in DNS and they have validated them with their tooling.

Would anyone have any ideas, or like to speculate, what might be happening here? I don’t understand why some SendGrid IPs pass and others fail.

Thanks in advance

 ![dmarcian-1](https://canada1.discourse-cdn.com/flex036/uploads/dmarcian/original/1X/5575ac8a942b2b3deff22ccfbe1be91aa9c5334e.png)  
 ![dmarcian-2](https://canada1.discourse-cdn.com/flex036/uploads/dmarcian/original/1X/724a1ee88d83b98328b6676d8ddc6e2afc83d99d.png)  
 ![raw-xml-2](https://canada1.discourse-cdn.com/flex036/uploads/dmarcian/original/1X/d91709156405b8e396681d341ca7926548991cb7.png)  
 ![raw-xml-1](https://canada1.discourse-cdn.com/flex036/uploads/dmarcian/original/1X/524fce9358f074680c0a3609fedb6f8c19aa33a9.png)

---

<div class="post-metadata">

**Author:** ![KJessel](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@KJessel](https://forum.dmarcian.com/u/KJessel)\
**Post date:** [April 24, 2024, 6:18pm UTC](https://forum.dmarcian.com/t/shopify-sendgrid-dkim-fail-temperror/2458/5 "2024-04-24T18:18:03Z")

</div>

I had a similar issue with SendGrid and [Stamped.IO](http://Stamped.IO). Both were trying to use the same CNAME entry. Found an article on how to set custom CNAME selectors for SendGrid, leaving the default selectors for [Stamped.IO](http://Stamped.IO). Both have been at or near 100% alignment after this change.

---

<div class="post-metadata">

**Author:** ![KJessel](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@KJessel](https://forum.dmarcian.com/u/KJessel)\
**Post date:** [April 24, 2024, 6:18pm UTC](https://forum.dmarcian.com/t/shopify-sendgrid-dkim-fail-temperror/2458/6 "2024-04-24T18:18:48Z")

</div>

> **[Use a Custom DKIM Selector for Authenticating a Single Domain on Multiple...](https://support.sendgrid.com/hc/en-us/articles/4408024201627-Use-a-Custom-DKIM-Selector-for-Authenticating-a-Single-Domain-on-Multiple-Accounts)**
>
> When a domain is authenticated on your SendGrid account, you will need to use the Custom DKIM Selector option to configure your Domain Authentication on a second account. This guide explains how to...

---

<div class="post-metadata">

**Author:** ![ronvdburg](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.dmarcian.com/ronvdburg/32/394_2.png) [@ronvdburg](https://forum.dmarcian.com/u/ronvdburg)\
**Post date:** [April 26, 2024, 10:42am UTC](https://forum.dmarcian.com/t/shopify-sendgrid-dkim-fail-temperror/2458/7 "2024-04-26T10:42:53Z")

</div>

Isn’t the answer simply: one of the two mails were processes by the receiver with a failing DNS response for the DKIM record, see the “tempfail” in the raw xml.

BTW: By expanding the “+ \*.shopify.com” you should see two records and get a readable form of the differences of the two mails (“Unique IP Count=2” shows that they were sent via two different servers}.

---

<div class="post-metadata">

**Author:** ![dmarkymark](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@dmarkymark](https://forum.dmarcian.com/u/dmarkymark)\
**Post date:** [April 27, 2024, 4:19am UTC](https://forum.dmarcian.com/t/shopify-sendgrid-dkim-fail-temperror/2458/8 "2024-04-27T04:19:13Z")

</div>

Thanks KJessel

I might not have been clear but Shopify seems to use SendGrid API for mail but I have no control of that beyond my SPF, DKIM & DMARC records.

Unlike an account with SendGrid where I’m sure you can be very particular with the settings, like the selector.

---

<div class="post-metadata">

**Author:** ![dmarkymark](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@dmarkymark](https://forum.dmarcian.com/u/dmarkymark)\
**Post date:** [April 27, 2024, 4:32am UTC](https://forum.dmarcian.com/t/shopify-sendgrid-dkim-fail-temperror/2458/9 "2024-04-27T04:32:23Z")

</div>

Thank you, ronvdburg. Good tips.

I’m not sure what this tells me other than what you said (it failed to get a DNS response from GoDaddy?)

 ![2-ips](https://canada1.discourse-cdn.com/flex036/uploads/dmarcian/original/1X/9e31cfbb78e14ee6570b92872b139e999901e4b9.png)

---

<div class="post-metadata">

**Author:** ![KJessel](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@KJessel](https://forum.dmarcian.com/u/KJessel)\
**Post date:** [April 29, 2024, 1:45pm UTC](https://forum.dmarcian.com/t/shopify-sendgrid-dkim-fail-temperror/2458/10 "2024-04-29T13:45:21Z")

</div>

Sendgrid allows you to configure custom selectors. If Spotify is like [Stamped.IO](http://Stamped.IO), you must use the default SendGrid selectors, which causes the conflict. Change the SendGrid selectors to custom, and the conflict is resolved.

---

<div class="post-metadata">

**Author:** ![dmarkymark](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@dmarkymark](https://forum.dmarcian.com/u/dmarkymark)\
**Post date:** [April 29, 2024, 1:53pm UTC](https://forum.dmarcian.com/t/shopify-sendgrid-dkim-fail-temperror/2458/11 "2024-04-29T13:53:56Z")

</div>

Thanks KJessel but I don’t even have a SendGrid account. Shopify uses the SendGrid API to send mail but there’s nowhere in the Shopify platform to “customise” the selectors for the SendGrid implementation. Oh well.

Hopefully it’s something else causing it because if it’s what you’re saying it might be then there’s no solution from what I can tell.

Thanks anyway

---

<div class="post-metadata">

**Author:** ![ronvdburg](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.dmarcian.com/ronvdburg/32/394_2.png) [@ronvdburg](https://forum.dmarcian.com/u/ronvdburg)\
**Post date:** [May 2, 2024, 9:34am UTC](https://forum.dmarcian.com/t/shopify-sendgrid-dkim-fail-temperror/2458/12 "2024-05-02T09:34:41Z")

</div>

Sorry for not responding earlier.  
You have a good point with “I’m not sure what this tells me other than what you said (it failed to get a DNS response from GoDaddy?)”.  
Indeed it doesn’t tell you a great amount, but you see that server o37 (actually 149.72.116.219) was correctly processing both SPF and DKIM; but it was server o39 having the “temperror”.  
The “temperror” tells you that it is not a structural/persistent error.  
So, you could regard it as a one-time glitch.  
On the other hand, if it bothers you, or you ‘just want to understand’, or if this glitch is intermittent, then you could check other reports whether the temperror only happens with server o39, or with others also.  
Just thinking out-of-the-box, it could also be explained by a change in the DKIM DNS record at the time of processing in o39.

---

<div class="post-metadata">

**Author:** ![ronvdburg](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.dmarcian.com/ronvdburg/32/394_2.png) [@ronvdburg](https://forum.dmarcian.com/u/ronvdburg)\
**Post date:** [May 2, 2024, 9:36am UTC](https://forum.dmarcian.com/t/shopify-sendgrid-dkim-fail-temperror/2458/13 "2024-05-02T09:36:28Z")

</div>

Hmm, that I find difficult to believe. If the selector was the issue, then I would expect that mail from all shopify servers would fail. Not only [o39.mailer.shopify.com](http://o39.mailer.shopify.com) but also for o37.

---

<div class="post-metadata">

**Author:** ![dmarkymark](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@dmarkymark](https://forum.dmarcian.com/u/dmarkymark)\
**Post date:** [May 2, 2024, 11:08am UTC](https://forum.dmarcian.com/t/shopify-sendgrid-dkim-fail-temperror/2458/14 "2024-05-02T11:08:14Z")

</div>

Excellent, and thank you. I tend to agree with it being a one-off but I have seen it with other servers too. I’ll keep monitoring, maybe the issue will subside on its own.
