add dkim keys to dns records during fetch

This commit is contained in:
Usman Nasir
2020-05-10 02:20:10 +05:00
parent 157da73ae2
commit b82360f01b
4 changed files with 22 additions and 16 deletions

View File

@@ -617,6 +617,8 @@ class MailServerManager:
command = "sudo cat " + path
privateKey = ProcessUtilities.outputExecutioner(command, 'opendkim')
DNS.createDKIMRecords(domainName)
data_ret = {'status': 1, 'fetchStatus': 1, 'keysAvailable': 1, 'publicKey': output[leftIndex:rightIndex],
'privateKey': privateKey, 'dkimSuccessMessage': 'Keys successfully fetched!',
'error_message': "None"}