TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Undocumented: Sendgrid now requires using a static IP if your app runs on Heroku

1 pointsby pardnerabout 4 years ago
The past few days we started seeing a high (but intermittent) percentage of failed email sends using Sendgrid.<p>It would be 80% fails (406 status code in our logs) for an hour or two, then OK for an hour or two, then 100% fail again.<p>Sendgrid status page said no issues.<p>Sendgrid support said they could not see the rejects but they&#x27;d look into it.<p>We simply switched our traffic to our &quot;other&quot; ESP (Socketlabs, excellent IMO with far superior support) until we had time to dig into what was going on in Sendgridland..<p>On a hunch we tested what happened if our Heroku app used a static IP to send API requests to Sendgrid... and it worked 100% of the time. If we turn off the static IP it goes right back to high failures. Went back and forth a couple of times today with the same result.<p>IMO Sendgrid is pointlessly filtering IPs for apps that A) are using a secure APIKEY to submit API requests, and B) running on a cloud platform where they have no inherent control over shared IPs.<p>But, since Sendgrid appears to filter IPs, and doesn&#x27;t seem to document the need for static IPs, and does NOT surface 406 errors in any Sendgrid dashboard where you OR their chat support can see them, I hope this info will someone else from chasing down the error. (And perhaps considering a ESP with much better support.)

no comments

no comments