Currently Bounce Mails are fetched from the smtp store, and a list of regexes are applied to the mail to try and categorize the bounce. There are 10 categories, and an eleventh for when a mail couldn't be matched (syntax bounce).
What I am missing are the defined SMTP status codes. Here is a list with an official list of codes from the RFC, as well as some lists I found convenient for translating the basic status code to the enhanced one:
- https://www.rfc-editor.org/rfc/rfc5248#page-5
- https://www.usps.org/info/smtp_status.html
- https://www.usps.org/info/smtp_codes.html
In a test environment with 4000 bounce mails, 1290 couldn't be classified (syntax bounce), but out of those ~850 mails have some form of SMTP status code.
Did anyone ran into some of those problems as well? And wouldn't it make sense to implement those codes as regexp and push them to core?
If no one has done it yet, I would offer to implement the regex, but I don't want to re-implement something. I'm curious why/if nobody ran into the same problem!