# Mautic SES Bounce Processing

**URL:** <https://forum.mautic.org/t/mautic-ses-bounce-processing/15969>\
**Category:** Product Support\
**Tags:** mautic-3, development, discussion, community\
**Created:** [September 6, 2020, 3:53pm UTC](https://forum.mautic.org/t/mautic-ses-bounce-processing/15969 "2020-09-06T15:53:53Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![rehansaleem](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rehansaleem/32/398_2.png) [@rehansaleem](https://forum.mautic.org/u/rehansaleem)\
**Post date:** [September 6, 2020, 3:53pm UTC](https://forum.mautic.org/t/mautic-ses-bounce-processing/15969/1 "2020-09-06T15:53:53Z")

</div>

**Your software**  
My Mautic version is: 3.1.0  
My PHP version is: 7.2

**Your problem**  
Hi,

Mautic 3.1.0 is not confirming the SNS subscription, I don’t see any errors in the logs.  
I have added Amazon SES as API and its working perfectly fine, my other concern is since we added SES through API we still need to setup amazon webhook to process bounce and spam emails as described in this guide?

> **[Bounce management](https://docs.mautic.org/en/channels/emails/bounce-management)**
>
> . Monitored Email. Since version 1.2.0 Mautic has provided a feature which allows monitoring of IMAP accounts to detect bounced emails and unsubscribe requests.Note that Mautic makes use of append email addresses. The returnpath or the...

Thanks.

---

<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 7, 2020, 12:36am UTC](https://forum.mautic.org/t/mautic-ses-bounce-processing/15969/2 "2020-09-07T00:36:41Z")

</div>

Hi yes.  
Sns endpoint is different:

> [@3.1.0: SES API working but not SNS (404 /worker/amazon/callback)](https://forum.mautic.org/t/3-1-0-ses-api-working-but-not-sns-404-worker-amazon-callback/15832/8):
>
> 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:** ![rehansaleem](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rehansaleem/32/398_2.png) [@rehansaleem](https://forum.mautic.org/u/rehansaleem)\
**Post date:** [September 7, 2020, 10:14am UTC](https://forum.mautic.org/t/mautic-ses-bounce-processing/15969/3 "2020-09-07T10:14:36Z")

</div>

It worked for me! thanks.

---

<div class="post-metadata">

**Author:** ![rehansaleem](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rehansaleem/32/398_2.png) [@rehansaleem](https://forum.mautic.org/u/rehansaleem)\
**Post date:** [September 7, 2020, 1:44pm UTC](https://forum.mautic.org/t/mautic-ses-bounce-processing/15969/4 "2020-09-07T13:44:47Z")

</div>

SNS verification works but mautic is still not able to catch bounce emails through webhook, see some recent bounces in SES console but its not showing in Mautic.

Is there any cronjob to pull bounces from Amazon SES?

---

<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 7, 2020, 1:59pm UTC](https://forum.mautic.org/t/mautic-ses-bounce-processing/15969/5 "2020-09-07T13:59:24Z")

</div>

No, it’s not a cronjob. Should be immediate. But SNS sends with a certain delay.

---

<div class="post-metadata">

**Author:** ![rehansaleem](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rehansaleem/32/398_2.png) [@rehansaleem](https://forum.mautic.org/u/rehansaleem)\
**Post date:** [September 7, 2020, 2:02pm UTC](https://forum.mautic.org/t/mautic-ses-bounce-processing/15969/6 "2020-09-07T14:02:45Z")

</div>

Its been more than 1 hour, seem like Its not working for me, just to confirm when we process bounces through webhook we don’t need to setup mailbox in mautic configuration?

Thanks.

---

<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 7, 2020, 2:03pm UTC](https://forum.mautic.org/t/mautic-ses-bounce-processing/15969/7 "2020-09-07T14:03:46Z")

</div>

No, you don’t need a mailbox.  
The data comes in like a webhook.

---

<div class="post-metadata">

**Author:** ![rehansaleem](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rehansaleem/32/398_2.png) [@rehansaleem](https://forum.mautic.org/u/rehansaleem)\
**Post date:** [September 7, 2020, 2:08pm UTC](https://forum.mautic.org/t/mautic-ses-bounce-processing/15969/8 "2020-09-07T14:08:26Z")

</div>

Should i have to wait more?

---

<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 7, 2020, 2:45pm UTC](https://forum.mautic.org/t/mautic-ses-bounce-processing/15969/9 "2020-09-07T14:45:04Z")

</div>

This is how it works:

1. You send your emails
2. The post office of those email addresses will send back a notification to Amazon within their own time frame. Maybe after 1 day.
3. This message is processed by Amazon and using SNS the the bounce notification is sent back to Mautic.  
So it is not immediate, sometimes there is a delay of even 2 days. But if you send 5k emails, and you have 200 bounces, you should be getting something pretty much right away.

Btw - did you set the correcponding SNS topic by each email address in SES / and NOT by the domain, right?

---

<div class="post-metadata">

**Author:** ![rehansaleem](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rehansaleem/32/398_2.png) [@rehansaleem](https://forum.mautic.org/u/rehansaleem)\
**Post date:** [September 7, 2020, 4:20pm UTC](https://forum.mautic.org/t/mautic-ses-bounce-processing/15969/10 "2020-09-07T16:20:29Z")

</div>

Yes, i have setup the SNS topics on the sender email address of the SES.

---

<div class="post-metadata">

**Author:** ![bpbala2005](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bpbala2005/32/4283_2.png) [@bpbala2005](https://forum.mautic.org/u/bpbala2005)\
**Post date:** [January 14, 2021, 5:24pm UTC](https://forum.mautic.org/t/mautic-ses-bounce-processing/15969/11 "2021-01-14T17:24:06Z")

</div>

Bounces are working in SES.

Follow the steps here for SNS configuration

> **[Bounce management](https://docs.mautic.org/en/channels/emails/bounce-management#amazon-webhook)**
>
> . Monitored Email. Since version 1.2.0 Mautic has provided a feature which allows monitoring of IMAP accounts to detect bounced emails and unsubscribe requests.Note that Mautic makes use of append email addresses. The returnpath or the...

Please configure SES to Include Original Headers -\> enabled in notifications .

Go to SES-\>domains-\>select your domain-\>Notifications-\>Edit Configurations-\> check Include original headers -\> save config. Bounces will show up in email graphs

---

<div class="post-metadata">

**Author:** ![viajandox](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/viajandox/32/522_2.png) [@viajandox](https://forum.mautic.org/u/viajandox)\
**Post date:** [February 24, 2021, 12:31am UTC](https://forum.mautic.org/t/mautic-ses-bounce-processing/15969/12 "2021-02-24T00:31:03Z")

</div>

Hello, we handle SES bounces with Monitored Inbox, it worked fine for several months until, but, since 7 days ago the bounces are not being processed

When running the cron it gives the following message  
La tarea “/opt/psa/admin/bin/php  
/var/www/vhosts/viajandox.com/apps.viajandox.com/mautic/bin/console  
mautic:email:fetch” se completo con errores en 1864 segundos. Su salida es:  
Segmentation fault (core dumped)

---

<div class="post-metadata">

**Author:** ![viajandox](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/viajandox/32/522_2.png) [@viajandox](https://forum.mautic.org/u/viajandox)\
**Post date:** [February 25, 2021, 3:46pm UTC](https://forum.mautic.org/t/mautic-ses-bounce-processing/15969/13 "2021-02-25T15:46:59Z")

</div>

we handle SES bounces with Monitored Inbox, it worked fine for several months, but, since 7 days ago the bounces are not being processed
