Mautic Community Forums

3.1.0: SES API working but not SNS (404 /worker/amazon/callback)

Your software
My Mautic version is: 3.1
My PHP version is: 7.3.20
My Docker container is:

Your problem
I receive a 404 when accessing /mailer/amazon/callback. I configured mail as follows and I can send email.

How can I make the callback available?


These errors are showing in the log: none

Did you create the SNS topic > subscription?
Make sure you are using HTTPS if you have it.

Wow, what a quick response :slight_smile: Thanks!

Do you mean in the AWS console? Actually I did the following there:

It is pending and thus I checked the endpoint which returns a 404:

curl -I

 HTTP/1.1 404 Not Found

Yes, my question is: do you have https already enabled on that server?
It is a common mistake to add https to this link, but you actually don’t have https, just http (sorry first step to troubleshoot this is that trivial)

Yes, https is working (and enforced) :slight_smile:

When you use the SES API you should use this endpoint mailer/amazon_api/callback

1 Like

Why is it a different endpoint? Does SNS feedback loop give a different webhook if you send emails via API not SMTP?

No, it is the same response from SES and in Mautic it is handled the same way, but Mautic looks only for the active sending method and enable the callback url for it.

So amazon SMTP has a different endpoint that the one for SES api

Hey, Ok that makes sense. Thx for clearing it up.

Thanks for the correct API call back

This is not working for me! I have configured in the subscription settings but it still does not work.

3.3.3 Mautic version
bitnami mautic server on AWS EC2

Please Help!!!

Same issue

For some reason this is not working for Me!!! Any ideas on what could be wrong? SLL is working fine. Http is redirected to https. But all of my subscriptions stay in the pending state! I am stuck! Is there any thing else I need to configure on the Mautic Server?