Ask A Question

Notifications

You’re not receiving notifications from this thread.

Rails/Sendgrid messages are blocked by receiver's servers

Aldiyar Y. asked in Rails

Messages blocked by all receiver's servers(mail.ru, gmail.com).

console log: https://i.imgur.com/Q4sKtSH.png

Image of Activity in sg: https://i.imgur.com/iN2EcNm.png

Reply

Check out what DMARC is, it's the reason your emails are being blocked. https://dmarc.org/

Basically, they're not allowing these emails because they know they didn't originate from the correct server(s). That's what an attacker might do to spoof emails for phishing and things and they think you're doing the same thing.

Sendgrid's servers aren't used for mail.ru, so you can't send an email from there. If you want to send an email from a mail.ru address, you'd have to do it with mail.ru's SMTP servers. Same with GMail.

Generally, you'll want to use your own domain for Sendgrid and other transactional email providers. That's what they're designed for. Make sense?

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 80,973+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2024 GoRails, LLC. All rights reserved.