Bounces & Sendgrid

@masidus looks like we have the exact same setup with Runcloud, SendGrid, etc… Wondering if you ever figured out how to get those contacts flagged as do not contact. Also, I’m not getting the bounces reported back to Mautic from SendGrid… did you say that you do get the bounces into Mautic? If so, how long do they take to come in?

I just ended up ignoring the API bounce management and setup a separate Gmail account solely to handle bounce reports.

Used the forward bounces and forward spam reports in the sendgrid app dashboard to forward these emails into Gmail account which Mautic then analyses and marks appropriately.

Be sure that you add sendgrid as a trusted contact in Gmail so they don’t end up in spam.

The reason that I believe mautic was receiving some data, was because I was receiving security warnings in the logs and these would appear every time that data was sent. When I was testing the sendgrid integration, every time I would try send the data a security warning would appear which suggested to me that it was indeed receiving the data however was not processing it correctly, however this was just an assumption.

Hope this helps, good luck!

1 Like

@masidus Perfect, thanks for the quick reply.

Hello Mauticians!

This is a pretty old thread with an issue that we’ve been struggling with since day one.

Does anyone had found a solution better than forwarding emails to another account?

Is this something that we can contribute to fix?

Thank you.

I see this issue has been going on for a few years. I haven’t heard of any solution to this ongoing issue using Sendgrid with Mautic to track bounced emails. Has anyone ever come up with a solution?
Using Mautic 3.2.4

For me it is working fine, using Mautic 3.3.2.

However, if you want to test it (in SendGrid: “Settings => Mail Settings => Event Settings => Event Webhook => HTTP Post URL => Test Your Integration”), you have to add the contact “example@test.com” in your Mautic before you test the webhook! Because SendGrid’s webhook is not able to create a contact in Mautic, just attach a “Bounced: Email” or so to one, if it ALREADY exists in your Mautic as a contact. That’s why you must add “example@test.com” (exactly this) to Mautic.

btw, I’m using A2Hosting as a server-provider for Mautic, and it runs on a subdomain.

1 Like

I just tested this (2022 now) and it works. :smiley:

Thank you for this - it worked. I guess that is an email SendGrid has pre programmed? I am confused though, that one showed up as bounced and other ones show up as Do Not Contact (of course unsubscribed) - -but when pulling Mautic Reports or trying to build a Bounced Segment = Yes filter, that email does not go into the segment… I can see it worked though but I do not feel quite confident

I wanted to provide an update to this post. I noticed (and could be wrong) that when a contact is marked as do not contact AND bounced, it shows in the GUI in Mautic as Do Not Contact. ,

That’s a problem for someone that wants to export data and use on another campaign … But thankfully reports can give you this data (the dnc status is 3 fyi for bounced)

and then

PS For SendGrid Testing

While troubleshooting SendGrid’s bounce webhook with Mautic, I used example@test.com to test the integration. When that email immediately showed as yellow “Bounced” in the Mautic GUI, it helped me understand why my other contacts showed as “Do Not Contact” in the GUI but appeared as “Bounced” in the reports. This test finally made it clear how Mautic handles and displays bounce statuses differently between the GUI and reports (90% sure of this) - and also one other tip - Based on another post I read (Thank you @imihandstand !!) and email tested - I believe that example@test.com email is pre programmed into SendGrid api for your testing on bounced (Trigger a webhook and it should be marked as bounced in Mautic after you press the Test button in Sendgrid “Email Api” ) - <your_mautic_url>/mailer/sendgrid_api/callback

1 Like

PS for more clarification of why this happened, I initially uploaded a data set of Bounced Emails from SendGrid - then ran a campaign in the GUI to mark those as Do Not Contact Email (there is not a bounced status in the campaign builder) - obviously with limited tools this is what I chose, but then it occured to me, this is not the right way to structure data, if ever we try to download that data from a data set as do not contact, and use on another campaign/client (yes it is purchased data and allowed), this is not the data I want, hence the post. J