# Receiving error 400 Bad Request on callback for bounce management with Amazon SES, SNS

**URL:** <https://forum.mautic.org/t/receiving-error-400-bad-request-on-callback-for-bounce-management-with-amazon-ses-sns/32160>\
**Category:** Product Support\
**Created:** [May 25, 2024, 4:50pm UTC](https://forum.mautic.org/t/receiving-error-400-bad-request-on-callback-for-bounce-management-with-amazon-ses-sns/32160 "2024-05-25T16:50:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aibanez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aibanez/32/3875_2.png) [@aibanez](https://forum.mautic.org/u/aibanez)\
**Post date:** [May 25, 2024, 4:50pm UTC](https://forum.mautic.org/t/receiving-error-400-bad-request-on-callback-for-bounce-management-with-amazon-ses-sns/32160/1 "2024-05-25T16:50:37Z")

</div>

**Your software**  
My Mautic version is: 5.0.4  
My PHP version is: 8.1  
My Database type and version is: MySQL 8  
Ubuntu 22.04, Nginx, Cloudflare DNS  
Symphony Amazon SES transport  
@joeyk Plugin [https://github.com/jos0405/mauticawsmailer.git](https://github.com/jos0405/mauticawsmailer.git)

**Your problem**  
My problem is:  
I have been installed succesfully Mautic 5.0.4 with Amazon SES (ses+api), the mauils are sent correctly, I have my subscriptions to the [https://mysite.com/mailer/amazon/callback](https://mysite.com/mailer/amazon/callback) confirmed and running, also I have configured the email notification for my Identity.  
When I test a bounce, I receive the email from Amazon but the bounce management via the Amazon SES plugin is never reached because the logs does not have anything and I know that the plugin when a request arrives writes to the log that event.  
I tested my endpoint with Postman with a Payload example from Amazon SNS for a bounce and I receive the Mautic Page " Looks like I encountered an error (error #400). If I do it again, please report me to the system administrator!

#### **400** Bad Request

Mautibot"

The payload used to test via POSTMAN was:  
{  
“bounceType”:“Permanent”,  
“bounceSubType”: “General”,  
“bouncedRecipients”:[  
{  
“status”:“5.0.0”,  
“action”:“failed”,  
“diagnosticCode”:“smtp; 550 user unknown”,  
“[emailAddress":"recipient1@example.com](mailto:emailAddress%22:%22recipient1@example.com)”  
},  
{  
“status”:“4.0.0”,  
“action”:“delayed”,  
“[emailAddress":"recipient2@example.com](mailto:emailAddress%22:%22recipient2@example.com)”  
}  
],  
“reportingMTA”: “[example.com](http://example.com)”,  
“timestamp”:“2012-05-25T14:59:38.605Z”,  
“feedbackId”:“000001378603176d-5a4b5ad9-6f30-4198-a8c3-b1eb0c270a1d-000000”,  
“remoteMtaIp”:“127.0.2.0”  
}  
With headers : Content-Type, application/json

These errors are showing in the log: None, the log is empty

Steps I have tried to fix the problem: using Postman to test the Endpoint
