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 and nginx
Your problem
My problem is: When I try to use ses+api transport plugin and trying to send Test email, after a few seconds (test button with the circle is working) mautic crashes and end in a 500 Internal Server Error
Hi J,
Yes I installed both, Iâm thinking that maybe is something with Cloudflare? Iâm using free cloudflasre protection and Proxied DNS. Iâm not an expert.
Thank you @joeyk , finally I decided to reinstall everything from scratch and now everything is working, I installed your plugin and now the Subscriptions (SES and SNS) are confirmed, but, I canât test if the bounce management is really working, I created a segment with a filter for (email-bounce), I created a contact with an inexistent email. I sent the email to that contact, all the cron jobs are up and running but the contacts never gets assigned to the segment (bounced). I really donât know how to test the callback.
Thanks again for your kindness,
Thank you @joeyk, I followed your recommendations but nothing happen, I sent an email campaign for three contacts one of them with correct email, the other two contacts are both bounce@simulator.amazonses.com and bounce+label1@simulator.amazonses.com. The contact with correct email received correctly the email campaign, but nothing happened with the bounces.
In Amazon SES I have configured the notificacions for the Identity:
-Email feedback forwarding (enabled)
-Feedback notifications (pointing for bounces and complaints) both to the topics with their respectives subscriptions confirmed and pointing to https://mydomain.com/mailer/amazon/callback.
The thing is that the Feedback Email that is supposed to be sent by Amazon when a bounce occurs never arrives but when I test an email sent from Amazon SES platform simulating a bounce with the bounce@simulator.amazonses.com, at least the email comming from Amazon arrives me, but nothing happen with Mautic.
Maybe Iâm missing something in Amazon SES or SNS configuratons?
Iâm little lost here.
Thanks again!
@joeyk I simulated a POST with a Postman to my endpoint using the following Payload:
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â
},
{
âstatusâ:â4.0.0â,
âactionâ:âdelayedâ,
âemailAddress":"recipient2@example.comâ
}
],
âreportingMTAâ: â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
I received a 400 error Bad Request page of Mautic, nothing in the logs of Nginx, Mautic or other logs.
Also I receive a 400 Bad Request Mautic page when I use: curl -X POST https://tu-dominio.com/mailer/amazon/callback
I thing using this CURL I must receive a Success message from the plugin Right?
Iâm using Cloudflare DNS (proxied)
Thx!!
UPDATE @joeyk Finally, I managed to get the callback working through Postman with the following message:
{
âTypeâ: âNotificationâ,
âMessageâ: â{"notificationType":"Bounce","bounce":{"bounceType":"Permanent","bounceSubType":"General","bouncedRecipients":[{"emailAddress":"bounced@bounced.xyz","diagnosticCode":"smtp; 550 5.1.1 user unknown"}],"timestamp":"2024-05-25T00:00:00.000Z"},"mail":{"timestamp":"2024-05-25T00:00:00.000Z","source":"sender@bounced.xyz","messageId":"00000123456789012345","destination":["bounced@bounced.xyz"]}}â
}
The contact bounced@bounced.xyz was added to segement bounce and appear like this in Mautic:
But I tested again sending emails Thru Mautic but nothing happened with amazon SNS, I think the message coming form Amazon SNS is not correct and itâs causing 400 error, but I donât understant why? There are some other things that I need to configure in the Topics or Subscription?
Thx!
I finally get all working, I needed to also configure notifications on Amazon SES to my verified email (the email address on which my mails are sent).
Also I needed to modify the Amazon SES plugin, it was only Donât Contact to emails that came on Amazon SNS as a simple email address jhon@dough.com if the email address came like âJhon Dough jhon@dough.comâ the plugin does not clasify the email as Donât Contact.
Problem solved.