improve smtp_tls support