Select tls based on port

Note that starttls is always supported

part of #188
This commit is contained in:
Girish Ramakrishnan
2017-06-28 16:56:11 -05:00
parent ae1dff980a
commit 7edf43c627
2 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -263,7 +263,7 @@ function createMailConfig(callback) {
const enabled = relay.provider === 'cloudron-smtp' ? true : false,
host = relay.host || '',
port = relay.port || 25,
tls = !!relay.tls,
tls = !!relay.tls, // Whether to connect with TLS (not STARTTLS)
username = relay.username || '',
password = relay.password || '';