Run MX and DMARC checks only if mail is enabled
This commit is contained in:
@@ -276,6 +276,7 @@ function checkMailStatus(callback) {
|
||||
if (error || erroredDomainObjects.length === 0) return callback(error);
|
||||
|
||||
const erroredDomains = erroredDomainObjects.map((d) => d.domain);
|
||||
debug(`checkMailStatus: ${erroredDomains.join(',')} failed status checks`);
|
||||
if (erroredDomains.length) notifications.mailStatusWarning(`Email status check of one or more domains failed - ${erroredDomains.join(',')}`);
|
||||
|
||||
callback();
|
||||
|
||||
Reference in New Issue
Block a user