I want to reclassify bounce, for example, at present Spam (PolicyRelated) will directly become Bounce, and I want to make it TransientFailure so that I can have time to deal with complaints.
So I think have 2 ways .
use :smtp_client_rewrite_delivery_status ; But this method need write lua code(I like helper)
OK, Thanks .It means that I can only use the first scheme mentioned at the beginning to write lua implementation. Why can’t bounces.toml be implemented? Is it my misunderstanding of this scheme. I’m just trying to deepwiki the solutions offered
The bounces.toml is for classifying bounces. You don’t want to classify those bounces, you want to rewrite them. That’s a different task and therefore a different configuration.
I will say to be careful with that. It’s one thing to rewrite temporary failures into permanent, but rewriting permanent failures into temporary ones can be considered malicious by some mailbox providers since they are telling you to stop trying to send a message and you’re ignoring them.
Yes, thanks for the reminder. We used Momentum before. it made a Block or SoftBounce when Spam message , which is give time for us to appeal for ISP . But after we migrated to kumomta, Bounce was identified as Hardbounce, which caused our Hard ratio to be abnormally high. This is also the reason for this change.