Thanks for bringing this up - I’ve also been getting this warning recently with mautic versions v2.15.3 and v.2.16.0. PHP v7.1.
Bounce and Complaint notifications both don’t work. No one is being marked DNC or Email Bounced. I’ve received hundreds of the above mentioned warnings.
[2020-05-22 09:38:06] mautic.WARNING: Received SES webhook of type 'Notification' but couldn't understand payload [] []
I have no delivery or any other type of notification enabled.
Also a few periodic errors like this which appear specific to the bounce payload:
mautic.NOTICE: PHP Notice - Undefined index: diagnosticCode - in file /var/www/html/**/app/bundles/EmailBundle/Swiftmailer/Transport/AmazonTransport.php - at line 147 {"payload":{"Type":"Notification","MessageId”:”**”,”TopicArn":"arn:aws:sns:us-east-1:**”,”Message":"{\"notificationType\":\"Bounce\",\"bounce\":{\"bounceType\":\"Permanent\",\"bounceSubType\":\"General\",\"bouncedRecipients\":[{\"emailAddress\":\"nancybwallace@suddenlink.net\",\"action\":\"failed\",\"status\":\"4.2.2\"}],\"timestamp\":\"2020-05-26T14:32:09.000Z\",\"feedbackId\”:\”**\”,\”reportingMTA\":\"dns; dalifep04.suddenlink.net\"},\"mail\":{\"timestamp\":\"2020-05-26T13:55:08.000Z\",\"source\”:\”foo\”,\”sourceArn\”:\”foo\”,\”sourceIp\”:\”**\”,\”sendingAccountId\”:\”**\”,\”messageId\”:\”**\”,\”destination\”:[\”foo@suddenlink.net\"]}}","Timestamp":"2020-05-26T14:32:10.705Z","SignatureVersion":"1","Signature":"","SigningCertURL":"https://sns.us-east-1.amazonaws.com","UnsubscribeURL":""},"message":{"notificationType":"Bounce","bounce":{"bounceType":"Permanent","bounceSubType":"General","bouncedRecipients":[{"emailAddress":"","action":"failed","status":"4.2.2"}],"timestamp":"2020-05-26T14:32:09.000Z","feedbackId":"","reportingMTA":"dns;"},"mail":{"timestamp":"2020-05-26T13:55:08.000Z","source":"","sourceArn":"/","sourceIp":"","sendingAccountId":"","messageId":"","destination”:[“foo@suddenlink.net"]}},"bouncedRecipients":[{"emailAddress”:”foo@suddenlink.net","action":"failed","status":"4.2.2"}],"bouncedRecipient":{"emailAddress”:”foo@suddenlink.net","action":"failed","status":"4.2.2"}} []
I haven’t seen any issue brought up in the mautic repo, but I’ll keep looking and/or open it myself. I’m also going to contact SES to see if they’ve changed their payload structure.