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}