Add port and tls settings to smtp config.