From 605930938bcfc3be20ece56ba28ab53ba3dc1633 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Mon, 22 Jan 2024 10:03:26 +0500 Subject: [PATCH] bug fix: fix opendkim port on email settings reset --- install/install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/install.py b/install/install.py index 266923246..c48022117 100755 --- a/install/install.py +++ b/install/install.py @@ -2060,11 +2060,11 @@ milter_default_action = accept writeToFile.write(configData) writeToFile.close() - if self.distro == ubuntu: + if self.distro == ubuntu or self.distro == cent8: data = open(openDKIMConfigurePath, 'r').readlines() writeToFile = open(openDKIMConfigurePath, 'w') for items in data: - if items.find('Socket') > -1 and items.find('local:') and items[0] != '#': + if items.find('Socket') > -1 and items.find('local:'): writeToFile.writelines('Socket inet:8891@localhost\n') else: writeToFile.writelines(items)