# SES Bounces not working

**URL:** <https://forum.mautic.org/t/ses-bounces-not-working/3482>\
**Category:** Product Support\
**Created:** [April 11, 2016, 6:44pm UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482 "2016-04-11T18:44:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelbdana](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/michaelbdana/32/422_2.png) [@michaelbdana](https://forum.mautic.org/u/michaelbdana)\
**Post date:** [April 11, 2016, 6:44pm UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/1 "2016-04-11T18:44:45Z")

</div>

I have SES and SNS configured. Bounce cron job is running and mailbox is setup.  
  
  
  
If I send and email from Mautic to the SES test email account ([bounce@simulator.amazonses.com](mailto:bounce@simulator.amazonses.com)) the bounce notification hits my mailbox and the cron job processes the bounce and marks the lead with the “Email bounced” tag.  
  
  
  
If I send an email from Mautic to a non-existing email account the bounce notification from SNS hits my mailbox and the cron job processes the bounce email but the lead does not get marked with the “Email bounced” tag.  
  
  
  
There are no error messages in the log.  
  
  
  
I do see a small difference in the bounce notifications sent from SNS (see below).  
  
Is Mautic not parsing the email correctly or am I doing something wrong?  
  
  
  
**SNS Bounce email that works:**

Code:

{"notificationType":"Bounce","bounce":{"bounceSubType":"General","bounceType":"Permanent","reportingMTA":"dsn; a8-90.smtp-out.amazonses.com","bouncedRecipients":[{"emailAddress":"bounce@simulator.amazonses.com","status":"5.1.1","diagnosticCode":"smtp; 550 5.1.1 user unknown","action":"failed"}],"timestamp":"2016-04-11T17:57:10.056Z","feedbackId":"01000154067854c0-7ef80379-7467-42a0-8ecb-f9c21fdce54b-000000"},"mail":{"timestamp":"2016-04-11T17:57:09.000Z","source":"XXX@mautic.XXX.com","sendingAccountId":"392188122432","messageId":"01000154067851d9-e60318ad-008a-43f3-93ac-5e6973c20639-000000","destination":["bounce@simulator.amazonses.com"],"sourceArn":"arn:aws:ses:us-east-1:392188122432:identity/XXX@mautic.XXX.com"}}

–  
If you wish to stop receiving notifications from this topic, please click or visit the link below to unsubscribe:  
[https://sns.us-east-1.amazonaws.com/unsubscribe.html?SubscriptionArn=arn:aws:sns:us-east-1:392188122432:m\_bounces:36104cdf-aa1b-45de-8f5f-bd522df22eae&Endpoint=XXX@mautic.XXX.com](https://sns.us-east-1.amazonaws.com/unsubscribe.html?SubscriptionArn=arn:aws:sns:us-east-1:392188122432:m_bounces:36104cdf-aa1b-45de-8f5f-bd522df22eae&Endpoint=XXX@mautic.XXX.com)

Please do not reply directly to this email. If you have any questions or comments regarding this email, please contact us at [https://aws.amazon.com/support](https://aws.amazon.com/support)

  
**SNS Bounce email that does not work:**

Code:

{"notificationType":"Bounce","bounce":{"bounceSubType":"General","bounceType":"Permanent","reportingMTA":"dsn; a8-241.smtp-out.amazonses.com","bouncedRecipients":[{"action":"failed","emailAddress":"jimmyd0u812@gmail.com","status":"5.1.1","diagnosticCode":"smtp; 550-5.1.1 The email account that you tried to reach does not exist. Please tryn550-5.1.1 double-checking the recipient's email address for typos orn550-5.1.1 unnecessary spaces. Learn more atn550 5.1.1 https://support.google.com/mail/answer/6596 q141si21180496qha.77 - gsmtp"}],"timestamp":"2016-04-11T18:15:03.031Z","feedbackId":"010001540688b3f2-36ab9783-3941-431c-ad4b-9916390db8f9-000000"},"mail":{"timestamp":"2016-04-11T18:15:02.000Z","sourceArn":"arn:aws:ses:us-east-1:392188122432:identity/XXX@mautic.XXX.com","source":"XXX+bounce\_570be98377160@mautic.XXX.com","messageId":"010001540688b0ee-4a49750b-2838-4b5d-9de4-7ef3082c58a8-000000","destination":["jimmyd0u812@gmail.com"],"sendingAccountId":"392188122432"}}

–  
If you wish to stop receiving notifications from this topic, please click or visit the link below to unsubscribe:  
[https://sns.us-east-1.amazonaws.com/unsubscribe.html?SubscriptionArn=arn:aws:sns:us-east-1:392188122432:m\_bounces:36104cdf-aa1b-45de-8f5f-bd522df22eae&Endpoint=XXX@mautic.XXX.com](https://sns.us-east-1.amazonaws.com/unsubscribe.html?SubscriptionArn=arn:aws:sns:us-east-1:392188122432:m_bounces:36104cdf-aa1b-45de-8f5f-bd522df22eae&Endpoint=XXX@mautic.XXX.com)

Please do not reply directly to this email. If you have any questions or comments regarding this email, please contact us at [https://aws.amazon.com/support](https://aws.amazon.com/support)

---

<div class="post-metadata">

**Author:** ![michaelbdana](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/michaelbdana/32/422_2.png) [@michaelbdana](https://forum.mautic.org/u/michaelbdana)\
**Post date:** [April 11, 2016, 6:44pm UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/2 "2016-04-11T18:44:45Z")

</div>

I have SES and SNS configured. Bounce cron job is running and mailbox is setup.

If I send and email from Mautic to the SES test email account ([bounce@simulator.amazonses.com](mailto:bounce@simulator.amazonses.com)) the bounce notification hits my mailbox and the cron job processes the bounce and marks the lead with the “Email bounced” tag.

If I send an email from Mautic to a non-existing email account the bounce notification from SNS hits my mailbox and the cron job processes the bounce email but the lead does not get marked with the “Email bounced” tag.

There are no error messages in the log.

I do see a small difference in the bounce notifications sent from SNS (see below).  
Is Mautic not parsing the email correctly or am I doing something wrong?

SNS Bounce email that works:

```auto
{"notificationType":"Bounce","bounce":{"bounceSubType":"General","bounceType":"Permanent","reportingMTA":"dsn; a8-90.smtp-out.amazonses.com","bouncedRecipients":[{"emailAddress":"bounce@simulator.amazonses.com","status":"5.1.1","diagnosticCode":"smtp; 550 5.1.1 user unknown","action":"failed"}],"timestamp":"2016-04-11T17:57:10.056Z","feedbackId":"01000154067854c0-7ef80379-7467-42a0-8ecb-f9c21fdce54b-000000"},"mail":{"timestamp":"2016-04-11T17:57:09.000Z","source":"XXX@mautic.XXX.com","sendingAccountId":"392188122432","messageId":"01000154067851d9-e60318ad-008a-43f3-93ac-5e6973c20639-000000","destination":["bounce@simulator.amazonses.com"],"sourceArn":"arn:aws:ses:us-east-1:392188122432:identity/XXX@mautic.XXX.com"}}

--
If you wish to stop receiving notifications from this topic, please click or visit the link below to unsubscribe:
https://sns.us-east-1.amazonaws.com/unsubscribe.html?SubscriptionArn=arn:aws:sns:us-east-1:392188122432:m_bounces:36104cdf-aa1b-45de-8f5f-bd522df22eae&Endpoint=XXX@mautic.XXX.com

Please do not reply directly to this email. If you have any questions or comments regarding this email, please contact us at https://aws.amazon.com/support
```

SNS Bounce email that does not work:

```auto
{"notificationType":"Bounce","bounce":{"bounceSubType":"General","bounceType":"Permanent","reportingMTA":"dsn; a8-241.smtp-out.amazonses.com","bouncedRecipients":[{"action":"failed","emailAddress":"jimmyd0u812@gmail.com","status":"5.1.1","diagnosticCode":"smtp; 550-5.1.1 The email account that you tried to reach does not exist. Please tryn550-5.1.1 double-checking the recipient's email address for typos orn550-5.1.1 unnecessary spaces. Learn more atn550 5.1.1 https://support.google.com/mail/answer/6596 q141si21180496qha.77 - gsmtp"}],"timestamp":"2016-04-11T18:15:03.031Z","feedbackId":"010001540688b3f2-36ab9783-3941-431c-ad4b-9916390db8f9-000000"},"mail":{"timestamp":"2016-04-11T18:15:02.000Z","sourceArn":"arn:aws:ses:us-east-1:392188122432:identity/XXX@mautic.XXX.com","source":"XXX+bounce_570be98377160@mautic.XXX.com","messageId":"010001540688b0ee-4a49750b-2838-4b5d-9de4-7ef3082c58a8-000000","destination":["jimmyd0u812@gmail.com"],"sendingAccountId":"392188122432"}}

--
If you wish to stop receiving notifications from this topic, please click or visit the link below to unsubscribe:
https://sns.us-east-1.amazonaws.com/unsubscribe.html?SubscriptionArn=arn:aws:sns:us-east-1:392188122432:m_bounces:36104cdf-aa1b-45de-8f5f-bd522df22eae&Endpoint=XXX@mautic.XXX.com

Please do not reply directly to this email. If you have any questions or comments regarding this email, please contact us at https://aws.amazon.com/support
```

---

<div class="post-metadata">

**Author:** ![michaelbdana](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/michaelbdana/32/422_2.png) [@michaelbdana](https://forum.mautic.org/u/michaelbdana)\
**Post date:** [April 12, 2016, 9:56am UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/3 "2016-04-12T09:56:03Z")

</div>

I will fix it myself if someone could tell me what piece of code is being used for SES bounce emails. So far I love Mautic and don’t want to give up now.

---

<div class="post-metadata">

**Author:** ![raymondkent](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/raymondkent/32/412_2.png) [@raymondkent](https://forum.mautic.org/u/raymondkent)\
**Post date:** [April 17, 2016, 12:15pm UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/4 "2016-04-17T12:15:57Z")

</div>

Hi Michael,

I have the exact same issue. So far I have not had any responses to my enquiries either.

Ill keep an eye on my thread and if i get a response - essentially the exact same question - then ill let you know.

PS: I posted my query on March 25th…

---

<div class="post-metadata">

**Author:** ![michaelbdana](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/michaelbdana/32/422_2.png) [@michaelbdana](https://forum.mautic.org/u/michaelbdana)\
**Post date:** [April 20, 2016, 9:51am UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/5 "2016-04-20T09:51:30Z")

</div>

Thanks. I fear a response will never come.  
I have started looking into implementing the AWS SES SDK. But trying to figure out where to do it in the code is a pain. I know there have been others who have said the same but nobody has done it as far as I know.

---

<div class="post-metadata">

**Author:** ![michaelbdana](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/michaelbdana/32/422_2.png) [@michaelbdana](https://forum.mautic.org/u/michaelbdana)\
**Post date:** [April 21, 2016, 8:15pm UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/6 "2016-04-21T20:15:59Z")

</div>

I have fixed this in my environment. This fix is for Amazon SES only. Instructions follow…

1. Disable the Mautic cronjob for handling bounces (no longer needed).
2. I have created 2 php scripts. One for bounces and one for complaints. I put them in DOCUMENT\_ROOT.
3. If you followed the instructions to create 2 Amazon SNS subscriptions with the Protocol = Email, delete them.
4. Create a new Amazon SNS subscription for your bounces topic with the Protocol = HTTP or HTTPS and set the end point = to the URL of the bounces script.
5. Create a new Amazon SNS subscription for your complaints topic with the Protocol = HTTP or HTTPS and set the end point = to the URL of the complaints script.

That’s it. Done and working perfectly. I will provide the 2 scripts for anyone who wants them. Not sure if I should post them here or not. Or where to put them for others.

---

<div class="post-metadata">

**Author:** ![Macedo](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@Macedo](https://forum.mautic.org/u/Macedo)\
**Post date:** [May 1, 2016, 12:16am UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/7 "2016-05-01T00:16:39Z")

</div>

Thank you michaelbdana,  
I did exactly as you describe.  
But, the arn http subscription is as “PendingConfirmation”.  
Exists some code to confirm? Whats the way?

---

<div class="post-metadata">

**Author:** ![michaelbdana](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/michaelbdana/32/422_2.png) [@michaelbdana](https://forum.mautic.org/u/michaelbdana)\
**Post date:** [May 1, 2016, 12:23pm UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/8 "2016-05-01T12:23:23Z")

</div>

How can I share them? I cannot attach any files to this post.

---

<div class="post-metadata">

**Author:** ![michaelbdana](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/michaelbdana/32/422_2.png) [@michaelbdana](https://forum.mautic.org/u/michaelbdana)\
**Post date:** [May 1, 2016, 4:22pm UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/9 "2016-05-01T16:22:29Z")

</div>

You can find a zip file here: [https://www.dropbox.com/s/ehalrvkhmowm2rn/Archive.zip?dl=0](https://www.dropbox.com/s/ehalrvkhmowm2rn/Archive.zip?dl=0)

Unzip the file and put the certs directory and the 2 scripts in your  
document root.

Then set up your Amazon sns subscriptions:

```
point your complaints topic to https://your.domain/complaints.php
point your bounces topic to https://yourdomain/bounces.php
```

---

<div class="post-metadata">

**Author:** ![zhammer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zhammer/32/1039_2.png) [@zhammer](https://forum.mautic.org/u/zhammer)\
**Post date:** [March 6, 2020, 5:24pm UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/10 "2020-03-06T17:24:58Z")

</div>

I’m experiencing the same issues with my mautic not processing SES bounces the traditional way.

Is this solution still the best bet for fixing this?

---

<div class="post-metadata">

**Author:** ![michaelbdana](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/michaelbdana/32/422_2.png) [@michaelbdana](https://forum.mautic.org/u/michaelbdana)\
**Post date:** [March 6, 2020, 10:56pm UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/11 "2020-03-06T22:56:15Z")

</div>

my fix was a long time ago. I would assume this has been fixed. I have installed new versions of Mautic and don’t seem to have that problem any more.

I would post your problem on the main channel. It’s probably a configuration problem.

---

<div class="post-metadata">

**Author:** ![jribeiro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jribeiro/32/1003_2.png) [@jribeiro](https://forum.mautic.org/u/jribeiro)\
**Post date:** [August 1, 2020, 9:10am UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/12 "2020-08-01T09:10:28Z")

</div>

Finally I have solved by myself. The problem is that you have to configure de bouncing in SES also for the emails that you use for sending mails… Then everything works fine now.

---

<div class="post-metadata">

**Author:** ![ilseb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ilseb/32/2346_2.png) [@ilseb](https://forum.mautic.org/u/ilseb)\
**Post date:** [October 29, 2021, 7:49am UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/13 "2021-10-29T07:49:05Z")

</div>

Hi, would you be able to assist us in getting ours to work - we have been struggling for weeks now to get mautic to acknowledge bounces with no luck.

Our email config is as follows:

- AWS SES SMTP configured successfully
- we didnt specify a custom return path (bounce) address
- monitored inbox settings mapped to the same email address as where we sending emails from

AWS SES settings:

- one mailbox configured and verified with DKIM,  
 ![Screenshot 2021-10-29 at 09.47.50](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/6b20d590387dbaf7c61fc67cfd0f4b2a44bd679d.png)
- SNS configured  
 ![Screenshot 2021-10-29 at 09.46.49](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5d1cf04720f5777d6f857d5effa2fe8ea768ce93.png)
- we do receive bounce notification emails but mautic doesnt register bounces nor updates our bounce segment

any guidance appreciated  
Ilse

---

<div class="post-metadata">

**Author:** ![ilseb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ilseb/32/2346_2.png) [@ilseb](https://forum.mautic.org/u/ilseb)\
**Post date:** [November 11, 2021, 1:02pm UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/14 "2021-11-11T13:02:23Z")

</div>

any help appreciated?

---

<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:** [November 12, 2021, 8:16am UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/15 "2021-11-12T08:16:02Z")

</div>

Hi,  
If you use the Amazon SNS bounce notifications, then you don’t need to use monitored inbox settings.  
Did you set up the bounce channel in the sender email or identity as well in Amazon SES?

If you have no SNS topic here, then you’ll need to add it!

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/25e0aaad35e9785bb417b4a9c69e676a7aea7ff6.png)

---

<div class="post-metadata">

**Author:** ![ilseb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ilseb/32/2346_2.png) [@ilseb](https://forum.mautic.org/u/ilseb)\
**Post date:** [December 2, 2021, 12:18pm UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/16 "2021-12-02T12:18:35Z")

</div>

HI Joey, thanks for reaching out

I have dont quite a bit of testing and trying to figure it out, any advice appreciated:

1. Following this process 100%: Emails send; cannot get bounce & complaints to show in Mautic.  
[Mautic and Amazon SES Setup Tutorial - Send emails using AWS SES - YouTube](https://www.youtube.com/watch?v=9WJ3NPCjGsE)  

2. Then i tried following this using a new topic, sub setup process. when i send an email from the SES console everything works very well as i can see bounces in cloudwatch, but the moment i send it from the mautic console the mail sends but no bounces are registered. i think i might need to add the Configset into my mail header settings but cannot get this to work i might be doing it wrong: [Monitor opens, clicks, and bounces for Amazon SES emails](https://aws.amazon.com/premiumsupport/knowledge-center/ses-email-opens-clicks/)  

3. then i thought let me try this one as a different strategy that might work for my bounces, but still no luck :(. : [Send Marketing Emails For Basically Zero Dollars - Mautic + AWS SES - YouTube](https://www.youtube.com/watch?v=knkctzQ3LW4)  

i feel like my SES and SNS is doing what it should, but for some reason i have no idea how to tell Mautic when a mail bounced. is my expectation correct that in my email stats the bounced graph should show something right?

 ![Screenshot 2021-12-02 at 14.18.12](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/0cc434708f7bdc8451d46f2b5e4f7dbbaa3fca2d.png)

---

<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:** [December 3, 2021, 7:36am UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/17 "2021-12-03T07:36:53Z")

</div>

Hello!

Are you using SES API or SES SMTP, like Kevin suggested?  
Any errors in the logs, for example: “incoming payload cannot be inderstood.”

Joey

---

<div class="post-metadata">

**Author:** ![ilseb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ilseb/32/2346_2.png) [@ilseb](https://forum.mautic.org/u/ilseb)\
**Post date:** [December 6, 2021, 7:49pm UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/18 "2021-12-06T19:49:43Z")

</div>

Hi Joey,

I have figured out what my issue was.  
Using SES SMTP:

- i only set the notification settings on the verified domain, and not on the verified email address. the moment i added the https endpoint SNS topic to the verified email address too, it started populating the contact “do not contact” labels 🙂 yay!

Next step to getting Bounces to work properly, is now figuring out why the Channel \> Email \> graph doesnt show bounces even though there were confirmed bounces. Any idea on this? i noticed a few bug discussions on github but havent seen a formal resolution?

see screenshot:

 ![Screenshot 2021-12-06 at 21.41.44](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/6fa85ca849e57e20fdf3d47457d2a82916b7482c.png)

---

<div class="post-metadata">

**Author:** ![keyleads](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/keyleads/32/957_2.png) [@keyleads](https://forum.mautic.org/u/keyleads)\
**Post date:** [May 15, 2022, 11:30pm UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/19 "2022-05-15T23:30:22Z")

</div>

Thank you @ilseb for this solution.

Any updates on the bounce graph not working?

---

<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:** [May 16, 2022, 4:51am UTC](https://forum.mautic.org/t/ses-bounces-not-working/3482/20 "2022-05-16T04:51:02Z")

</div>

Is it a recent send you experience this issue? The timeframe of the stats on this page must include the time when the bounce happened.  
Joey
