I've shipped my SMTP AUTH implementation for #qmail. It's designed to avoid patch conflicts, add new user-controlled features, and perhaps offer desirable
security properties. More: https://marc.info/?l=qmail&m=154048252009339&w=2
If you use #pkgsrc, just update to the latest qmail and qmail-run. :-)