# Amazon SES/SNS email complaints not received, bounces missing information

**URL:** <https://meta.discourse.org/t/amazon-ses-sns-email-complaints-not-received-bounces-missing-information/239247>\
**Category:** Self-hosting\
**Tags:** email\
**Created:** [September 16, 2022, 11:59pm UTC](https://meta.discourse.org/t/amazon-ses-sns-email-complaints-not-received-bounces-missing-information/239247 "2022-09-16T23:59:48Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ipoopfool](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@ipoopfool](https://meta.discourse.org/u/ipoopfool)\
**Post date:** [September 16, 2022, 11:59pm UTC](https://meta.discourse.org/t/amazon-ses-sns-email-complaints-not-received-bounces-missing-information/239247/1 "2022-09-16T23:59:48Z")

</div>

> [@Configure VERP to handle bouncing e-mails](https://meta.discourse.org/t/handling-bouncing-e-mails/45343):
>
> Setting up bounces handling Discourse uses the [Variable envelope return path (VERP)](https://en.wikipedia.org/wiki/Variable_envelope_return_path) technique to handle bouncing e-mails. To enable VERP, set the “reply by email address” site setting with an email address template that uses the + sign. The default of replies+%{reply\_key}@discourse.example.com … works fine. If you are using your own or your company’s email server, then, that’s it tada Your discourse instance must be able to receive email sent to this address. This should work via POP, bu…

I followed the instructions linked above and set up SES with SNS email forwarding. I’m running into two problems.

# 1. Rejected/complaint emails not being received by Discourse

I’m currently receiving a spike in SES email complaints so I really need to be receiving and handling email rejections. However, setting it up with the above instructions does not yield any results in the email rejected tab even though bounces are coming through.

Even when I send emails to [SES’s mailbox simulator](https://aws.amazon.com/blogs/aws/mailbox-simulator-for-the-amazon-simple-email-service/), no rejected emails show up.

# 2. Bounced email details showing a `Discourse::NotFound` error

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/b/5/cb50c3d97d6996ae3060604942bcc7935ce1153a.png)

When I click the (i) icon in any bounced email row, it gives me an error.

With the email logging setting turned on and checking the /logs url, I am not able to find anything obviously wrong in the logs when using the filter term “mail”.

This seems to be the case regardless if I have SES’s “Include original headers” setting turned on or not.

* * *

# Related topics I found

> [@"Discourse::NotFound" error when click "Email Type" field on admin/email/bounced](https://meta.discourse.org/t/discourse-notfound-error-when-click-email-type-field-on-admin-email-bounced/176011):
>
> I think clicking on an “Email Type” field, e.g. user\_watching\_first\_post is meant to display details of the bounce message received from the intended recipient. But on my self-hosted site I get the error message stated above. Is there anything I can do to fix this? Thanks.

> [@Bounced e-mails from Amazon SES/SNS not working](https://meta.discourse.org/t/bounced-e-mails-from-amazon-ses-sns-not-working/200209):
>
> I was aware that Discourse offers an endpoint to handle SNS notifications from Amazon SES. The endpoint is /webhooks/aws, and here is where I got aware of it: [https://meta.discourse.org/t/handling-bouncing-e-mails/45343/177?u=wlandgraf](https://meta.discourse.org/t/handling-bouncing-e-mails/45343/177) Everything is “almost” working. I can see that AWS is sending the notifications to that endpoint, via CloudWatch log. I also see that Discourse is responding the notification with successful status code (200), after I configured it to send the raw message. Howe…

---

_[View the full topic](https://meta.discourse.org/t/amazon-ses-sns-email-complaints-not-received-bounces-missing-information/239247)._
