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

**URL:** <https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832>\
**Category:** Product Support\
**Created:** [August 27, 2020, 9:22am UTC](https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832 "2020-08-27T09:22:34Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![benbeh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/benbeh/32/1397_2.png) [@benbeh](https://forum.mautic.org/u/benbeh)\
**Post date:** [August 27, 2020, 9:22am UTC](https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832/1 "2020-08-27T09:22:34Z")

</div>

**Your software**  
My Mautic version is: 3.1  
My PHP version is: 7.3.20  
My Docker container is: [https://hub.docker.com/r/mautic/mautic](https://hub.docker.com/r/mautic/mautic)

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

 ![Screenshot 2020-08-27 at 11.20.27](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/37a47c937a30d42181c589a1102465c62d3c5ac3.png)

How can I make the callback available?

Thanks  
Ben

These errors are showing in the log: none

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 27, 2020, 9:28am UTC](https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832/2 "2020-08-27T09:28:23Z")

</div>

> [@benbeh](#):
>
> /mailer/amazon/callback

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

---

<div class="post-metadata">

**Author:** ![benbeh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/benbeh/32/1397_2.png) [@benbeh](https://forum.mautic.org/u/benbeh)\
**Post date:** [August 27, 2020, 9:35am UTC](https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832/3 "2020-08-27T09:35:59Z")

</div>

Wow, what a quick response 🙂 Thanks!

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

 ![Screenshot 2020-08-27 at 11.31.34](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/04610fb25db4a8704ac54e596acd3831bc8ed907.png)

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

`curl -I https://mautic.example.com/mailer/amazon/callback`

```
 HTTP/1.1 404 Not Found
```

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 27, 2020, 9:48am UTC](https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832/4 "2020-08-27T09:48:08Z")

</div>

> [@benbeh](#):
>
> curl -I [https://mautic.example.com/mailer/amazon/callback](https://mautic.example.com/mailer/amazon/callback)

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)

---

<div class="post-metadata">

**Author:** ![benbeh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/benbeh/32/1397_2.png) [@benbeh](https://forum.mautic.org/u/benbeh)\
**Post date:** [August 27, 2020, 9:56am UTC](https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832/5 "2020-08-27T09:56:57Z")

</div>

Yes, https is working (and enforced) 🙂

---

<div class="post-metadata">

**Author:** ![m.abumusa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/m.abumusa/32/741_2.png) [@m.abumusa](https://forum.mautic.org/u/m.abumusa)\
**Post date:** [September 1, 2020, 10:53pm UTC](https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832/6 "2020-09-01T22:53:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 2, 2020, 8:33am UTC](https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832/7 "2020-09-02T08:33:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![m.abumusa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/m.abumusa/32/741_2.png) [@m.abumusa](https://forum.mautic.org/u/m.abumusa)\
**Post date:** [September 2, 2020, 9:28am UTC](https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832/8 "2020-09-02T09:28:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 2, 2020, 10:31am UTC](https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832/9 "2020-09-02T10:31:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Shaz3e](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shaz3e/32/236_2.png) [@Shaz3e](https://forum.mautic.org/u/Shaz3e)\
**Post date:** [December 26, 2020, 8:11pm UTC](https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832/10 "2020-12-26T20:11:55Z")

</div>

> [@m.abumusa](#):
>
> mailer/amazon\_api/callback

Thanks for the correct API call back

---

<div class="post-metadata">

**Author:** ![bighaaaas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bighaaaas/32/694_2.png) [@bighaaaas](https://forum.mautic.org/u/bighaaaas)\
**Post date:** [July 18, 2021, 3:10am UTC](https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832/11 "2021-07-18T03:10:32Z")

</div>

This is not working for me! I have [https://mydomain.com/mailer/amazon\_api/callback](https://mydomain.com/mailer/amazon_api/callback) configured in the subscription settings but it still does not work.

3.3.3 Mautic version  
bitnami mautic server on AWS EC2

Please Help!!!

---

<div class="post-metadata">

**Author:** ![beto2l](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/beto2l/32/5365_2.png) [@beto2l](https://forum.mautic.org/u/beto2l)\
**Post date:** [July 21, 2021, 10:18pm UTC](https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832/12 "2021-07-21T22:18:07Z")

</div>

Same issue

---

<div class="post-metadata">

**Author:** ![bighaaaas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bighaaaas/32/694_2.png) [@bighaaaas](https://forum.mautic.org/u/bighaaaas)\
**Post date:** [July 22, 2021, 12:06pm UTC](https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832/13 "2021-07-22T12:06:03Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![listin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/listin/32/5568_2.png) [@listin](https://forum.mautic.org/u/listin)\
**Post date:** [August 6, 2021, 3:16am UTC](https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832/14 "2021-08-06T03:16:48Z")

</div>

Hi,

**Software:**  
Mautic version 3.3.3  
PHP Version 7.3.7  
Installed on a local QNAP server

**Problem**  
Setting up Amazon SNS subscription using HTTPS or even HTTP but it is stuck at “pending confirmation”.

My setup is through the Amazon SES - SMTP and I can receive email just fine  
If I curl the endpoint using [https://mautic.mydomain.com/mailer/amazon/callback](https://mautic.mydomain.com/mailer/amazon/callback) I do get a positive response  
I also ran the log on AWS Cloudwatch and I’m getting a connection timeout: delivery.providerResponse   
ConnectTimeoutException in HttpClient this is happening on both HTTP and HTTPS, but I am able to access the server and mautic on WAN.

Any thoughts as to what may be happening?? Seems to be the same issue as m.abumusa is reporting…

Thanks!
