Add a way to re-sync mail DNS records

Also, make restore resync the admin domain record which gets messed
up by the dns setup
This commit is contained in:
Girish Ramakrishnan
2018-03-08 17:26:07 -08:00
parent f284245e16
commit 6bc5add023
4 changed files with 44 additions and 5 deletions

View File

@@ -313,6 +313,9 @@ function restore(backupConfig, backupId, version, callback) {
async.series([
backups.restore.bind(null, backupConfig, backupId),
autoprovision,
// currently, our suggested restore flow is after a dnsSetup. This re-creates DKIM keys and updates the DNS
// for this reason, we have to re-setup DNS after a restore. Once we have a 100% IP based restore, we can skip this
mail.update.bind(null, config.adminDomain()),
shell.sudo.bind(null, 'restart', [ RESTART_CMD ])
], function (error) {
debug('restore:', error);