Fix SMTP AUTH with long login

Fixes #2126