[review, wip] Smtp v17

This PR converts most of the SMTP handling to the TX API.