diff --git a/webadmin/src/views/email.html b/webadmin/src/views/email.html index e9cb18ef6..51471c33f 100644 --- a/webadmin/src/views/email.html +++ b/webadmin/src/views/email.html @@ -96,7 +96,7 @@
- +
This feature requires the Cloudron to be on custom domain. @@ -220,7 +220,7 @@

  {{ record.name }} record - +

@@ -254,7 +254,7 @@ Outbound SMTP - +

@@ -267,16 +267,16 @@

-   +   IP Address Blacklist Check - +

-
This server's IP {{ rbl.ip }} is not blacklisted.
-
+
This server's IP {{ selectedDomain.mailStatus.rbl.ip }} is not blacklisted.
+
diff --git a/webadmin/src/views/email.js b/webadmin/src/views/email.js index 65510ba10..85ac312c5 100644 --- a/webadmin/src/views/email.js +++ b/webadmin/src/views/email.js @@ -285,6 +285,24 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio }); }; + $scope.refreshStatus = function () { + $scope.refreshBusy = true; + + Client.getMailStatusForDomain($scope.selectedDomain.domain, function (error, mailStatus) { + if (error) { + $scope.refreshBusy = false; + return console.error(error); + } + + // overwrite the selected domain status to be available for the UI + $scope.selectedDomain.mailStatus = mailStatus; + + showExpectedDnsRecords(); + + $scope.refreshBusy = false; + }); + }; + function getCatchallAddresses() { Client.getCatchallAddresses(function (error, result) { if (error) return console.error('Unable to get catchall address listing.', error);