Symptoms
-
When enabling ClamAV in the Plesk Email Security extension, the operation fails with:
PLESK_ERROR: Execution filemng has failed with exit code 1, stdout: , stderr: Job for [email protected] failed because the control process exited with error code. See “systemctl status [email protected]” and “journalctl -xe” for details.
-
When manually enabling the clamd service via SSH the operation fails with:
# systemctl status [email protected]
* [email protected] – clamd scanner (scan) daemon
Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; vendor preset: disabled)
Active: activating (start)
…
clamd[17834]: daemonize() failed: Cannot allocate memory
clamd[17834]: Socket file removed.
Cause
There is not enough memory to initialize the service. The server should have at least 4 GB of overall memory and 2 GB free memory.
Resolution
Allocate more RAM to the server.
Additional Information
The clamav-milter service, which is a part of Plesk Email Security extension, is stopped by default. The service is managed by Clam Antivirus and is started automatically on a request.