Fix SMTP auth logic