Symptoms
- Unable to install the Plesk Email Security, the error below is shown:
***** problem report *****
Warning: restart service amavisd failed
, stderr: Job for amavisd.service failed because the control process exited with err or code. See "systemctl status amavisd.service" and "journalctl -xe" for details.
ERR [panel] Execution pleskrc has failed with exit code 1, stdout: INFO: : Service: amavisd, Action: restart
Trying to restart service amavisd... active
example.com systemd[1]: amavisd.service: control proces s exited, code=exited status=255
example.com systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
example.com systemd[1]: Unit amavisd.service entered failed state.
example.com systemd[1]: amavisd.service failed.
***** problem report ***** -
In an attempt to execute the command from the error, the following messages are shown:
# journalctl -xe
Unit amavisd.service has begun starting up.
example.com amavisd[22804]: ERROR: MISSING REQUIRED ADDITIONAL MODULES:
example.com amavisd[22804]: DBD::mysql
example.com amavisd[22804]: DBD::mysql - Email is stuck is queue
Cause
The package perl-DBD-MySQL
that is required for the Amavis service is missed.
Resolution
Apply one of the solutions below:
For RHEL based systems (CentOS/CloudLinux)
- Log into the server via SSH.
- Execute the command below to install the
perl-DBD-MySQL
package:# yum install perl-DBD-MySQL
For Debian based systems (Ubuntu/Debian)
- Log into the server via SSH.
- Execute the command below to install the
perl-DBD-MySQL
package:# apt-get install libdbd-mysql-perl