Bounce management from SNS with Amazon

Hello community

We are trying to set up a Mautic instance with SES and bounce managament from SNS with Amazon Web Services. We followed the instructions here carefully; https://docs.mautic.org/en/channels/emails/bounce-management

Amazon gives a confirmed on the subscription and we set up the notifications both on the domain and the e-mail we are using to send the mails. We are testing using SES sandbox accounts; https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-simulator.html with bounce@simulator.amazonses.com.

Yet the bounces don’t get recorded by Mautic. Can anyone help us troubleshout this problem?

Some extra information:

  • When we visit /mailer/amazon/callback we get a 500 server error. I don’t know if that’s normal behaviour since it’s a callback url.
  • We are on mautic 2.16.2 or 2.16.3
  • The Mautic instance is hosted in another AWS region than the SES and SNS.
  • We are testing the bounces by sending a mail from channels > e-mails to a test user with the e-mailadres; bounce@simulator.amazonses.com
  • When checking the logfile I’m seeing 2 errors:

Type error: Argument 1 passed to Mautic\EmailBundle\Swiftmailer\Transport\AmazonTransport::processJsonPayload() must be of the type array, null given, called in /var/www/html/app/bundles/EmailBundle/Swiftmailer/Transport/AmazonTransport.php on line 103

And

PHP Notice - SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /var/www/html/vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php - at line 86 {“maxlifetime”:1440}

Why not start with Mautic 3.x?

Check email settings to ensure you are not using the “other smtp” selection with Amazon . Select Amazon specifically.

A quick forum search gave me this:

1 Like

Hi, do you have https on this server allowed?
Thx
Joey

Are you using Amazon SES - SMPT or Amazon - API. for the connection? The SNS does not work with the API from what I can work out.

I think it does. Check this:

1 Like

Hi @joeyk , I am working with Amazon API, I have set up subscribers as my email and also the webhook.
I can also confirm that mautic:email:fetch is indeed working and reading all my mails regarding bounces that I received from sns, but still it is not marking the contact as do not contact and not showing bounced