install opendkim-tools on almalinux

This commit is contained in:
Usman Nasir
2022-05-10 13:57:40 +05:00
parent d5c151ba0a
commit 87526ce1b9
2 changed files with 8 additions and 0 deletions

View File

@@ -1827,6 +1827,10 @@ imap_folder_list_limit = 0
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
if self.distro == cent8:
command = 'dnf install opendkim-tools -y'
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
if self.distro == ubuntu:
command = 'apt install opendkim-tools -y'
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)

View File

@@ -1539,6 +1539,10 @@ class MailServerManagerUtils(multi.Thread):
def configureOpenDKIM(self):
try:
if ProcessUtilities.decideDistro() == ProcessUtilities.cent8:
command = 'dnf install opendkim-tools -y'
ProcessUtilities.executioner(command)
## Configure OpenDKIM specific settings
openDKIMConfigurePath = "/etc/opendkim.conf"