3
votes

I have a Django app set up to send emails from my contact form via SendGrid.

The contact form should send emails to [email protected], which is an account using G Suite, so the client opens the email on Gmail.

However, the emails from the contact form are getting stuck on SendGrid with status deferred or block.

I tried changing the destination email from [email protected] to [email protected] and it worked just fine.

I don't know what else to do.

Here is my Activity Feed from SendGrid dashboard:

enter image description here

I read when the status is deferred, SendGrid keep trying to send the email again for the next 72h, but I have emails sent 3 days ago that never arrived on the inbox.

Anyone knows what could I do to fix that?

1
Are you sure they are using GSuite? I would double check their MX records to see if they are actually using GSuite directly and not through a third party firewall/spam filter setup. - Selcuk
@Selcuk now you made me think. Before, it was all set up on a server with cPanel, but now I'm using the PointDNS add-on to point the domain to Heroku and I think the MX records are not set up. I'll check it. - Thiago Rossener
@Selcuk that is it! I just needed to add the MX records and everything started to work again, nice and shine. Thank you very much! - Thiago Rossener

1 Answers

1
votes

I solved it! Thanks to @Selcuk comment.

I had my domain pointing to a server with cPanel all set up.

Then I developed a new app, deployed it on Heroku and installed the PointDNS to get my domain poiting to the Heroku app.

When I did this, I lost my MX records set up on my server with cPanel.

All I had to do was to add the MX records for G Suite on PointDNS:

enter image description here