Hello
Attached is a patch that adds a plugin hook for SMTP authentication. I use it to setup a custom SASL authentication.
I suspect I have already submitted it some time ago and that it is superseeded by the smtp_auth_callbacks feature that is just below. Is there any documentation or example on how to use the later?