Skip to content

Commit

Permalink
bug fix: fix opendkim port on email settings reset
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Jan 22, 2024
1 parent 22a5418 commit 8e0ee86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -2060,11 +2060,11 @@ def configureOpenDKIM(self):
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)
Expand Down

0 comments on commit 8e0ee86

Please sign in to comment.