Mautic Community Forums

SNS Subscription Endpoint Does Not Exist?

I’m trying to set up Amazon SNS for handling bounces. I’ve followed the instructions through a couple of times, but my sucription remains ‘pending’. Found a few posts from people having similar problems, but no solutions that worked for me.

I’ve tried setting ‘send mail through’ to both amazon ses and other smtp server.

For my endpoint, I’ve tried both http and https.

One thing I did notice, was that the endpoint provided in the docs, doesn’t appear to exist in the mautic installation…

http://nobsim.net/mtc/mailer/amazon/callback

… where mtc is my mautic installation… there’s no ‘mailer’ folder, and no ‘amazon’ folder anywhere that i can find either?

So I’m wondering whether I’m missing something in my installation? Or whether this might have hcnaged between versions?

Or do endpoints not actually point to physical locations?

I did find something in the logs that doesn’t make much sense to me…

[2020-04-27 03:10:32] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: “You have requested a non-existent service “swiftmailer.mailer.transport.smtp”.” at /home/customer/www/nobsim.net/public_html/mtc/vendor/symfony/dependency-injection/Container.php line 286 {“exception”:"[object] (Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException(code: 0): You have requested a non-existent service “swiftmailer.mailer.transport.smtp”. at /home/customer/www/nobsim.net/public_html/mtc/vendor/symfony/dependency-injection/Container.php:286)"}

Any guidance much appreciated!

Mautic version is 2.16.2 , PHP is 7.3.16

Thanks

Matt

I have similar problem, receiving this error in Mautic logs:

[2020-06-29 18:05:00] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: “You have requested a non-existent service “swiftmailer.mailer.transport.smtp”.” at /var/www/html/vendor/symfony/dependency-injection/Container.php line 286 {“exception”:"[object] (Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException(code: 0): You have requested a non-existent service “swiftmailer.mailer.transport.smtp”. at /var/www/html/vendor/symfony/dependency-injection/Container.php:286)"}

I don’t know what to do.

Hi, i can see that in the path that appears in the error message you have “public_html”. Did you install Mautic on a shared hosting? If so, there’s a good chance your hosting provider blocks the calls from SNS. Contact your provider and see if it is the issue. Regarding the webhook URL, as you saw, its not a physical location, but a route.