mail exchange does not have trailing dot

This commit is contained in:
Girish Ramakrishnan
2018-02-23 17:24:41 -08:00
parent b6fb49956f
commit 470c9971f8
+2 -2
View File
@@ -260,8 +260,8 @@ function checkMx(domain, callback) {
if (error) return callback(error, mx);
if (mxRecords.length !== 0) {
mx.status = mxRecords.length == 1 && mxRecords[0].exchange === (config.mailFqdn() + '.');
mx.value = mxRecords.map(function (r) { return r.priority + ' ' + r.exchange; }).join(' ');
mx.status = mxRecords.length == 1 && mxRecords[0].exchange === config.mailFqdn();
mx.value = mxRecords.map(function (r) { return r.priority + ' ' + r.exchange + '.'; }).join(' ');
}
callback(null, mx);