Amazon SES Bounce Processing

Hi,



Has anyone got the bounce processing using Amazon SES working in Mautic?



What I am struggling with is getting Mautic to update leads with the bounced flag once it reads in the email folder containing the bounced emails. If so could you kindly please advise how you have done this - specifically in Mautic. What settings are required ?



I can assist if anyone needs getting Amazon SES setup for sending emails and Amazon SES/SNS for returning bounces to your designated email address / folder.



Any support here would be great. Is there something that needs to be changed in the mautic email bounced parsing engine to process the bounced email format sent by SES/SNS service?



Note: I previously had bounces working correctly with Mandrill (using webhooks). I do know that the CRON jobs are working. To me it is something to do with the bounce email parsing engine not processing the emails sent by Amazon SES/SNS. I would be happy to provide samples of the emails generated by SES/SNS for anyone to review to assist. I am not a coder, so I have no idea how to alter or tweak code. Sorry :-(.





Many thanks



Ray

Hi Kuzmany,

I followed that article. It is very good and was extremely useful, however my Mautic is not flagging the records as bounced.

I am getting the bounces from SES into my desired email and mautic is able to see the designated email.

I believe that mautic is reading the email folder since when I check the emails in the folder they are being marked as read every time the cron job runs.

BUT mautic is not adding the bounced flag to them, and therefore they are not being marked as bounced.

I am not sure if i have missed anything. Have you personally followed the link above instructions and is the bounced flag working and are leads being marked as bounced in mautic?

Thanks

Here too, same problem! I get the message in my bounce email address but the mautic returns:

0 emails processed for {XXX.domain.com:143/imap}Inbox_bounces@xxxxxxx.com.br

And the message is in my inbox with the message
“An error occurred while trying to deliver the mail to the following recipients:
ssssssfss@xxxxxx.com.br”

@escopecz , can you help us with this issue?
Thanks!

I’ve never used Amazon SES so I’m not sure why I’m the one who should answer. I just know there is this article about it:

https://medium.com/@AndreiVoica/how-to-integrate-mautic-with-amazon-ses-7fe066e9131c

So I , up until today, had the same problem.

The cause?

When configuring my bounced email address in Mautic, I didn’t select the folder for Mautic to process. Once I did that and my cron ran, the box was processed immediately.

How can I tell if mautic is collecting the bounced emails form the bounced folder?

I have setup the config and get success! for all of the email config settings, but leads that I know have a bounced email address are not being ‘flagged’ against their profile in mautic.

How can I tell if Mautic has collected the emails from the bounced folder?

which table is this detail stored in the database?

For me, if I look at the emails in the bounce processing inbox, they will show as read. Then if I look at one of the email addresses in one of the emails, then search for it in Mautic, then look at the detail of that record, it will show on the right column if it was bounced or a complaint was filed.

Thanks for letting me know that it should be working.

My setup seems to be all good up until the last bit.

“then search for it in Mautic, then look at the detail of that record, it will show on the right column if it was bounced or a complaint was filed.”

Hence why I would like to understand which table the bounced records appear in in Mautic to ensure they are actually being imported correctly.

Not sure if this helps, but I found this in the /mautic/app/logs here are several hundred lines, but all very similar…


[2016-03-24 02:30:36] mautic.ERROR: [MAIL ERROR] Expected response code 250 but got code “421”, with message "421 Timeout waiting for data from client. " Log data: >> MAIL FROM:productive.app+bounce_56f3514c8c01f@productive.kentcom.net << 421 Timeout waiting for data from client. !! Expected response code 250 but got code “421”, with message "421 Timeout waiting for data from client. " (code: 421) [] []

[2016-03-24 02:30:45] mautic.ERROR: [MAIL ERROR] Expected response code 250 but got code “”, with message “” Log data: >> MAIL FROM:productive.app+bounce_56f351551adf6@productive.kentcom.net << !! Expected response code 250 but got code “”, with message “” (code: 0) [] []


Am I correct that this indicates that Mautic IS correctly seeing the emails in the bounced folder and is trying to process them.
They are being marked as read in the bounced folder, but not actually being read /imported into Mautic.

I am using hostgator as my webhost. Are there any settings i should be doing inside Hostgator?

Does this make sense to anyone?

Thanks in advance.

Hi,

Has anyone got the bounce processing using Amazon SES working in Mautic?

What I am struggling with is getting Mautic to update leads with the bounced flag once it reads in the email folder containing the bounced emails. If so could you kindly please advise how you have done this - specifically in Mautic. What settings are required ?

I can assist if anyone needs getting Amazon SES setup for sending emails and Amazon SES/SNS for returning bounces to your designated email address / folder.

Any support here would be great. Is there something that needs to be changed in the mautic email bounced parsing engine to process the bounced email format sent by SES/SNS service?

Note: I previously had bounces working correctly with Mandrill (using webhooks). I do know that the CRON jobs are working. To me it is something to do with the bounce email parsing engine not processing the emails sent by Amazon SES/SNS. I would be happy to provide samples of the emails generated by SES/SNS for anyone to review to assist. I am not a coder, so I have no idea how to alter or tweak code. Sorry :-(.

Many thanks

Ray