diff --git a/install/install.py b/install/install.py index db99d5717..499f170fb 100644 --- a/install/install.py +++ b/install/install.py @@ -2038,6 +2038,10 @@ class preFlightsChecks: cmd = shlex.split(command) res = subprocess.call(cmd) + command = "mkdir -p /etc/pki/dovecot/certs/" + cmd = shlex.split(command) + res = subprocess.call(cmd) + command = "mkdir -p /etc/opendkim/keys/" cmd = shlex.split(command) res = subprocess.call(cmd) @@ -2045,6 +2049,9 @@ class preFlightsChecks: command = "sed -i 's/auth_mechanisms = plain/#auth_mechanisms = plain/g' /etc/dovecot/conf.d/10-auth.conf" subprocess.call(shlex.split(command)) + command = "systemctl restart dovecot" + subprocess.call(shlex.split(command)) + logging.InstallLog.writeToFile("Postfix and Dovecot configured") @@ -2845,12 +2852,12 @@ class preFlightsChecks: preFlightsChecks.stdOut("Succcessfully installed opendkim!") break - if self.distro == ubuntu: - command = 'apt install opendkim-tools' - subprocess.call(shlex.split(command)) + if self.distro == ubuntu: + command = 'apt install opendkim-tools' + subprocess.call(shlex.split(command)) - command = 'mkdir -p /etc/opendkim/keys/' - subprocess.call(shlex.split(command)) + command = 'mkdir -p /etc/opendkim/keys/' + subprocess.call(shlex.split(command)) except OSError, msg: @@ -3417,4 +3424,4 @@ def main(): if __name__ == "__main__": - main() + main() \ No newline at end of file