relay: add option to accept self-signed certs

This commit is contained in:
Girish Ramakrishnan
2019-04-23 15:19:33 -07:00
parent 7f9b078430
commit 91877f7b2d
3 changed files with 4 additions and 0 deletions

View File

@@ -180,6 +180,8 @@ function checkSmtpRelay(relay, callback) {
};
}
if (relay.acceptSelfSignedCerts) options.tls = { rejectUnauthorized: false };
var transporter = nodemailer.createTransport(smtpTransport(options));
transporter.verify(function(error) {