Configure retries based on bounce classification

Hello,

I was wondering if it’s currently possible to configure max number of retries, max retry interval & base retry interval based on the bounce_classification

My use case is this :

Let’s say i have a bounce of classification QuotaIssues i wouldn’t want to retry 5min after first attempt, but maybe a day later, and doing only 2 attempts

But if i have a GreyList bounce, i may want to retry sooner than the QuotaIssues bounce & doing more attempts

Could this be possible currently in KumoMTA ? I tried to look around in the documentation and didn’t find anything

Thanks for your help

Configure retries based on bounce classification

So here’s the thing, TSA is doing traffic shaping automation, and shaping is about the behavior of the Ready queue. Retry interval is a Scheduled queue property, and it applies at the queue level. Because of that you’re not going to find a solution in TSA for this.

BUT…

You could possibly create a secondary Scheduled queue with your anticipated configuration, then load the message into that queue based on the bounce you encountered, using requeue_message - KumoMTA Docs

But I haven’t tested that use case and am only theorizing, but it could be a path forward.

Alright i see, so inside the requeue_message event, with the message object, do we have access to the bounce_classification ? Or do we only have the smtp_response part ?

You have smtp_response