improve smtp_tls support

This patch will improve TLS support further.