Temporarily disable toplevel email check notification

This commit is contained in:
Johannes Zellner
2018-01-23 12:30:16 +01:00
parent 0ae8d1ed4d
commit 7166604fc0

View File

@@ -135,24 +135,25 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
Client.notify('Backup Configuration', 'Cloudron backups are disabled. Ensure the server is backed up using alternate means.', false, 'info', actionScope);
}
Client.getMailRelay(function (error, result) {
if (error) return console.error(error);
// FIXME this needs to change to itereate over all domains and run the checks
// Client.getMailRelay(function (error, result) {
// if (error) return console.error(error);
// the email status checks are currently only useful when using Cloudron itself for relaying
if (result.provider !== 'cloudron-smtp') return;
// // the email status checks are currently only useful when using Cloudron itself for relaying
// if (result.provider !== 'cloudron-smtp') return;
// Check if all email DNS records are set up properly only for non external DNS API
Client.getEmailStatus(function (error, result) {
if (error) return console.error(error);
// // Check if all email DNS records are set up properly only for non external DNS API
// Client.getEmailStatus(function (error, result) {
// if (error) return console.error(error);
if (!result.dns.spf.status || !result.dns.dkim.status || !result.dns.ptr.status || !result.relay.status) {
var actionScope = $scope.$new(true);
actionScope.action = '/#/email';
// if (!result.dns.spf.status || !result.dns.dkim.status || !result.dns.ptr.status || !result.relay.status) {
// var actionScope = $scope.$new(true);
// actionScope.action = '/#/email';
Client.notify('DNS Configuration', 'Please setup all required DNS records to guarantee correct mail delivery', false, 'info', actionScope);
}
});
});
// Client.notify('DNS Configuration', 'Please setup all required DNS records to guarantee correct mail delivery', false, 'info', actionScope);
// }
// });
// });
});
}