Resource icon

Amazon SES Bounces Support 2021-03-19

No permission to download
@JulianD

I'm also getting this errors:

Server-Fehlerprotokoll
  • TypeError: Argument 3 passed to XF\EmailBounce\Processor::logBounceMessage() must be an instance of XF\EmailBounce\ParseResult, bool given, called in /var/www/share/xxxxxxx.com/htdocs/src/XF/EmailBounce/Processor.php on line 134
  • src/XF/EmailBounce/Processor.php:206
  • Generiert von: Unbekanntes Konto
  • 21 Juli 2021 um 23:16

Stack-Trace​

#0 src/XF/EmailBounce/Processor.php(134): XF\EmailBounce\Processor->logBounceMessage('{"notificationT...', NULL, false, NULL)
#1 src/addons/Laneros/MailTransport/Api/Controller/SnsNotification.php(45): XF\EmailBounce\Processor->processMessage('{"notificationT...')
#2 src/XF/Mvc/Dispatcher.php(350): Laneros\MailTransport\Api\Controller\SnsNotification->actionPost(Object(XF\Mvc\ParameterBag))
#3 src/XF/Api/Mvc/Dispatcher.php(27): XF\Mvc\Dispatcher->dispatchClass('Laneros\\MailTra...', 'Post', Object(XF\Api\Mvc\RouteMatch), Object(Laneros\MailTransport\Api\Controller\SnsNotification), NULL)
#4 src/XF/Mvc/Dispatcher.php(113): XF\Api\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Api\Mvc\RouteMatch), Object(Laneros\MailTransport\Api\Controller\SnsNotification), NULL)
#5 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Api\Mvc\RouteMatch))
#6 src/XF/App.php(2344): XF\Mvc\Dispatcher->run()
#7 src/XF.php(512): XF\App->run()
#8 index.php(16): XF::runApp('XF\\Api\\App')
#9 {main}

Status der Anfrage​

array(4) {
["url"] => string(22) "/api/amazon-ses/bounce"
["referrer"] => bool(false)
["_GET"] => array(1) {
["/api/amazon-ses/bounce"] => string(0) ""
}
["_POST"] => array(0) {
}
}

Server-Fehlerprotokoll
  • ErrorException: [E_NOTICE] Trying to get property 'recipient' of non-object
  • src/XF/EmailBounce/Processor.php:106
  • Generiert von: Unbekanntes Konto
  • 21 Juli 2021 um 23:16

Stack-Trace​

#0 src/XF/EmailBounce/Processor.php(106): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/var/www/share/...', 106, Array)
#1 src/addons/Laneros/MailTransport/Api/Controller/SnsNotification.php(45): XF\EmailBounce\Processor->processMessage('{"notificationT...')
#2 src/XF/Mvc/Dispatcher.php(350): Laneros\MailTransport\Api\Controller\SnsNotification->actionPost(Object(XF\Mvc\ParameterBag))
#3 src/XF/Api/Mvc/Dispatcher.php(27): XF\Mvc\Dispatcher->dispatchClass('Laneros\\MailTra...', 'Post', Object(XF\Api\Mvc\RouteMatch), Object(Laneros\MailTransport\Api\Controller\SnsNotification), NULL)
#4 src/XF/Mvc/Dispatcher.php(113): XF\Api\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Api\Mvc\RouteMatch), Object(Laneros\MailTransport\Api\Controller\SnsNotification), NULL)
#5 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Api\Mvc\RouteMatch))
#6 src/XF/App.php(2344): XF\Mvc\Dispatcher->run()
#7 src/XF.php(512): XF\App->run()
#8 index.php(16): XF::runApp('XF\\Api\\App')
#9 {main}

Status der Anfrage​

array(4) {
["url"] => string(22) "/api/amazon-ses/bounce"
["referrer"] => bool(false)
["_GET"] => array(1) {
["/api/amazon-ses/bounce"] => string(0) ""
}
["_POST"] => array(0) {
}
}

Include original headers is activated:

View attachment 255050
Same exact issue here, but I found a fix:

Go back to AWS -> SNS -> Your topic -> Subscriptions

There are three policies:
Subscription filter policy, Redrive policy, Delivery retry policy

In any of the three policies, click "edit" and then check "Enable raw message delivery"
 
Last edited:
  • InvalidArgumentException: Bounce message processing failed: Unsupported notification type:
    • InvalidArgumentException: Bounce message processing failed: Unsupported notification type: {"notificationType":"Delivery","mail": mail accepted for delivery","remoteMtaIp":"xxx.xxx.xxx.xx.xx","reportingMTA":"a9-7.smtp-out.amazonses.com"}}
    • src/addons/Laneros/MailTransport/AwsBounce/Parser.php:44
    • Generated by: Unknown account
    • May 31, 2022 at 7:38 AM

Stack trace​

#0 src/XF/EmailBounce/Processor.php(94): Laneros\MailTransport\AwsBounce\Parser->parseMessage('{"notificationT...')
#1 src/addons/Laneros/MailTransport/Api/Controller/SnsNotification.php(45): XF\EmailBounce\Processor->processMessage('{"notificationT...')
#2 src/XF/Mvc/Dispatcher.php(352): Laneros\MailTransport\Api\Controller\SnsNotification->actionPost(Object(XF\Mvc\ParameterBag))
#3 src/XF/Api/Mvc/Dispatcher.php(27): XF\Mvc\Dispatcher->dispatchClass('Laneros\\MailTra...', 'Post', Object(XF\Api\Mvc\RouteMatch), Object(Laneros\MailTransport\Api\Controller\SnsNotification), NULL)
#4 src/XF/Mvc/Dispatcher.php(115): XF\Api\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Api\Mvc\RouteMatch), Object(Laneros\MailTransport\Api\Controller\SnsNotification), NULL)
#5 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Api\Mvc\RouteMatch))
#6 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#7 src/XF.php(517): XF\App->run()
#8 index.php(16): XF::runApp('XF\\Api\\App')
#9 {main}

Request state​

array(4) {
["url"] => string(22) "/api/amazon-ses/bounce"
["referrer"] => bool(false)
["_GET"] => array(1) {
["/api/amazon-ses/bounce"] => string(0) ""
}
["_POST"] => array(0) {
}
}

Anyone seen a way to fix these errors?
 
Slick add-on @JulianD!

I'm a newb working with SES & SNS, is it possible to create an SNS Topic for XF's Automated unsubscribe email handler so we can get rid of that email address as well?
 
Hi Julian, thanks for a great addon. I am looking to get this enabled on our forums, as we use SES to process emails. Quick q:

In the SNS topic for our forum, under subscriptions I see that the Endpoint for our HTTPS protocol is showing as pending confirmation. I can request confirmation, but have zero clue where this is going to. Any idea?
 
Unfortunately no, i have it enabled on my site but between work and school, it's impossible for me to keep developing it.

The license should allow anyone who wants to keep developing it to do so.
Thank you for the start. I may look into it.
 
It would be really nice if someone that was able to provide some longer term stability to this took it over.
Currently I have my bounce/unsubscribe at another hosting provider... but being able to eliminate that would be nice. I'm not really willing to install this as what I have is working fine with an alternative bounce/unsubscribe MTA as compared to the Amazon SES sending MTA.
 
Any step by step guide to configure this addon after installing?

1. If I set my automated email handling for bounce/unsubscribe to my gmail address then how can I tell AWS SES to send bounce notification to my gmail address?
2. Can I use single gmail account for bounce + unsubscribe?
 
Any step by step guide to configure this addon after installing?

1. If I set my automated email handling for bounce/unsubscribe to my gmail address then how can I tell AWS SES to send bounce notification to my gmail address?
2. Can I use single gmail account for bounce + unsubscribe?
You need to follow the XenForo manual instructions to setup your Gmail address as a bounce address. This addon works if you send mails using Amazon SES service. I will try to update the instructions in case something has changed.
 
I know Julian mentioned he no longer maintains this but curious if it still works for those using it :unsure:
 
ErrorException: [E_WARNING] Attempt to read property "recipient" on bool src/XF/EmailBounce/Processor.php:106
Generated by: Unknown account Apr 7, 2023 at 10:27 AM
Stack trace
#0 src/XF/EmailBounce/Processor.php(106): XF::handlePhpError(2, '[E_WARNING] Att...', '/home/domain/...', 106)
#1 src/addons/Laneros/MailTransport/Api/Controller/SnsNotification.php(45): XF\EmailBounce\Processor->processMessage('{"notificationT...')
#2 src/XF/Mvc/Dispatcher.php(352): Laneros\MailTransport\Api\Controller\SnsNotification->actionPost(Object(XF\Mvc\ParameterBag))
#3 src/XF/Api/Mvc/Dispatcher.php(27): XF\Mvc\Dispatcher->dispatchClass('Laneros\\MailTra...', 'Post', Object(XF\Api\Mvc\RouteMatch), Object(Laneros\MailTransport\Api\Controller\SnsNotification), NULL)
#4 src/XF/Mvc/Dispatcher.php(115): XF\Api\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Api\Mvc\RouteMatch), Object(Laneros\MailTransport\Api\Controller\SnsNotification), NULL)
#5 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Api\Mvc\RouteMatch))
#6 src/XF/App.php(2483): XF\Mvc\Dispatcher->run()
#7 src/XF.php(524): XF\App->run()
#8 index.php(16): XF::runApp('XF\\Api\\App')
#9 {main}
 
Top Bottom