CyberPanel Community

ClosedDKIM manager not working after new install of CP

Ak
Akrobs #1

Hi all!
For the first, thanks all team and Usman for CP!!!

Problem, after new installation of CP, DKIM not working. I’m found a cause. The new version of DKIM is opendkim.x86_64 2.11.0-0.28.el8 from Epel repo. From old installation DKIM is opendkim.x86_64 2.11.0-0.17.el8.

If we see changelog:
2021-05-19 - W. Michael Petullo mike@flyn.org - 2.11.0-0.21 - Move management utilities to opendkim-tools.
For new install you need to add in setup script opendkim-tools install command.
I’m put in terminal command: dnf install opendkim-tools and key for domains work perfect.
P.S. On Github i’m creating a issue, but no answer((

9 replies
sh
shoaibkk #2

Please update cyberpanel and try then

Ak
Akrobs #3

I have allready latest version.

sh
shoaibkk #7

share error image please

Ak
Akrobs #8

Yes, of course.

Ak
Akrobs #10

The soulution is very simple.

dnf install opendkim-tools.

In script install.py we see:

def installOpenDKIM(self):
        try:
            if self.distro == centos:
                command = 'yum -y install opendkim'
            elif self.distro == cent8:
                command = 'dnf install opendkim -y'
            else:
                command = 'apt-get -y install opendkim'

            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)

                command = 'mkdir -p /etc/opendkim/keys/'
                preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)

        except BaseException as msg:
            logging.InstallLog.writeToFile('[ERROR] ' + str(msg) + " [installOpenDKIM]")
            return 0

For ubuntu dist: ‘apt install opendkim-tools -y’
For CentOs dist: only ‘dnf install opendkim -y’

You need add ‘dnf install opendkim opendkim-tools -y’ for CentOS dist for setup script.

Sign in to reply