• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question Plesk E-Mail Security | Failed to start clamd scanner (amavisd) daemon

Michael.P

New Pleskian
Server operating system version
AlmaLinux 9.5
Plesk version and microupdate number
Plesk Obsidian 18.0.66 Update 1
I have a freshly installed AlmaLinux server. The Mail Security extension can be installed, but does not work.
Amavis, Postfix, Dovecot run, but are disfunctional.
The config check function does not work.
There are no problems with my other server with AlmaLinux 8.9.

Does anyone know the problem and have a solution?

Thanks Michael

Here is an excerpt from the logs:

[email protected]
Loaded: not-found (Reason: Unit [email protected] not found.)
Active: failed (Result: exit-code) since Thu 2025-01-02 11:14:47 CET; 54min ago
CPU: 11ms
Jan 02 11:14:47 pe*rver.de systemd[1]: [email protected]: Start request repeated too quickly.
Jan 02 11:14:47 p*server.de systemd[1]: [email protected]: Failed with result 'exit-code'.
Jan 02 11:14:47 p*server.de systemd[1]: Failed to start clamd scanner (amavisd) daemon.


2025-01-02 11:14:47errsystemd [1]

System-Daemons [3]
Failed to start clamd scanner (amavisd) daemon.
2025-01-02 11:14:47warningsystemd [1]

System-Daemons [3]
[email protected]: Failed with result 'exit-code'.
2025-01-02 11:14:47warningsystemd [1]

System-Daemons [3]
[email protected]: Start request repeated too quickly.
2025-01-02 11:14:46errsystemd [1]

System-Daemons [3]
Failed to start clamd scanner (amavisd) daemon.
2025-01-02 11:14:46warningsystemd [1]

System-Daemons [3]
[email protected]: Failed with result 'exit-code'.
2025-01-02 11:14:46noticesystemd [1]

System-Daemons [3]
[email protected]: Control process exited, code=exited, status=1/FAILURE
2025-01-02 11:14:46errclamd [26923]

E-Mail-System [2]
Can't open file or directory
2025-01-02 11:14:46infoclamd [26923]

System-Daemons [3]
ERROR: Can't open file or directory
2025-01-02 11:14:46infoclamd [26923]

System-Daemons [3]
LibClamAV Error: cli_loaddbdir: No supported database files found in /var/lib/clamav
2025-01-02 11:14:46infoclamd [26923]

E-Mail-System [2]
Bytecode: Security mode set to "TrustSigned".
2025-01-02 11:14:46infoclamd [26923]

E-Mail-System [2]
Not loading PUA signatures.
2025-01-02 11:14:46infoclamd [26923]

E-Mail-System [2]
Reading databases from /var/lib/clamav
2025-01-02 11:14:46infoclamd [26923]

E-Mail-System [2]
Log file size limited to 1048576 bytes.
2025-01-02 11:14:46infoclamd [26923]

E-Mail-System [2]
clamd daemon 1.0.7 (OS: Linux, ARCH: x86_64, CPU: x86_64)
2025-01-02 11:14:46infoclamd [26923]

E-Mail-System [2]
Received 0 file descriptor(s) from systemd.
2025-01-02 11:14:46infosystemd [1]

System-Daemons [3]
Starting clamd scanner (amavisd) daemon...
2025-01-02 11:14:46infosystemd [1]

System-Daemons [3]
Stopped clamd scanner (amavisd) daemon.
2025-01-02 11:14:46infosystemd [1]

System-Daemons [3]
[email protected]: Scheduled restart job, restart counter is at 4.
 
@Michael.P could you please execute:



and let us know if you see any errors/entries related to amavisd.service?

I installed Emailsecurity again and the following data about journalctl -xe.

░░ Subject: A start job for unit [email protected] has begun execution
░░ Defined-By: systemd
░░ Defined-By: systemd
░░ Support: Help and Support | AlmaLinux Wiki
░░
░░ A start job for unit [email protected] has begun execution.
░░
░░ The job identifier is 1057690.
Jan 08 10:07:21 per*server.de amavis[1460249]: No ext program for .lz4, tried: lz4c -d
Jan 08 10:07:21 per*server.de amavis[1460249]: No ext program for .rar, tried: unrar, rar
Jan 08 10:07:21 per*server.de amavis[1460249]: No decoder for .lz4
Jan 08 10:07:21 per*server.de amavis[1460249]: Found primary av scanner ClamAV-clamdscan at /usr/bin/clamdscan
Jan 08 10:07:21 per*server.de amavis[1460249]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Jan 08 10:07:21 per*server.de systemd[1]: Started Amavis mail content checker.
░░ Subject: A start job for unit amavisd.service has finished successfully
░░ Defined-By: systemd
░░ Support: Help and Support | AlmaLinux Wiki
░░
░░ A start job for unit amavisd.service has finished successfully.
░░
░░ The job identifier is 1057464.
Jan 08 10:07:21 per*server.de clamd[1460280]: Received 0 file descriptor(s) from systemd.
Jan 08 10:07:21 per*server.de clamd[1460280]: clamd daemon 1.0.7 (OS: Linux, ARCH: x86_64, CPU: x86_64)
Jan 08 10:07:21 per*server.de clamd[1460280]: Log file size limited to 1048576 bytes.
Jan 08 10:07:21 per*server.de clamd[1460280]: Reading databases from /var/lib/clamav
Jan 08 10:07:21 per*server.de clamd[1460280]: Not loading PUA signatures.
Jan 08 10:07:21 per*server.de clamd[1460280]: Bytecode: Security mode set to "TrustSigned".
Jan 08 10:07:21 per*server.de clamd[1460280]: LibClamAV Error: cli_loaddbdir: No supported database files found in />
Jan 08 10:07:21 per*erver.de clamd[1460280]: ERROR: Can't open file or directory
Jan 08 10:07:21 per*server.de clamd[1460280]: Can't open file or directory
Jan 08 10:07:21 per*server.de systemd[1]: [email protected]: Control process exited, code=exited, status=1/FAILU>
-------------------------------------------------------------------------------------------------------------------------------------------------------

░░ The process' exit code is 'exited' and its exit status is 1.
Jan 08 10:07:21 per*server.de systemd[1]: [email protected]: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: Help and Support | AlmaLinux Wiki
░░
░░ The unit [email protected] has entered the 'failed' state with result 'exit-code'.
Jan 08 10:07:21 per*server.de systemd[1]: Failed to start clamd scanner (amavisd) daemon.


---------------------------------------------------------------------------------------------------------------------------------------------------------
Jan 08 10:07:28 per*server.de systemd[1]: run-plesk-task-11489.service: Failed to open /run/systemd/transient/run-pl>
Jan 08 10:07:28 per*server.de systemd[1]: run-plesk-task-11489.service: Failed to open /run/systemd/transient/run-pl>
Jan 08 10:07:28 per*server.de systemd[1]: run-plesk-task-11489.service: Failed to open /run/systemd/transient/run-pl>

---------------------------------------------------------------------------------------------------------------------------------------------------------
░░ The unit spamassassin.service completed and consumed the indicated resources.
Jan 08 10:07:28 per*server.de systemd[1]: Reloading.
Jan 08 10:07:28 per*server.de systemd-rc-local-generator[1461465]: /etc/rc.d/rc.local is not marked executable, skipping.
Jan 08 10:07:28 per*server.de systemd[1]: /usr/lib/systemd/system/imunify-antivirus.service:16: PIDFile= references a path below legacy directory /var/run/, updating /var/run/imunify-antivirus.pid → /run/imunify-antivirus.pid; please up>
Jan 08 10:07:28 per*server.de systemd[1]: /usr/lib/systemd/system/imunify-antivirus-sensor.socket:6: ListenStream= references a path below legacy directory /var/run/, updating /var/run/defence360agent/generic_sensor.sock.2 → /run/defenc>
Jan 08 10:07:28 per*server.de systemd[1]: /usr/lib/systemd/system/imunify-antivirus-user.socket:6: ListenStream= references a path below legacy directory /var/run/, updating /var/run/defence360agent/non_root_simple_rpc.sock → /run/defen>
Jan 08 10:07:28 per*server.de systemd[1]: /usr/lib/systemd/system/imunify-antivirus.socket:6: ListenStream= references a path below legacy directory /var/run/, updating /var/run/defence360agent/simple_rpc.sock → /run/defence360agent/sim>
Jan 08 10:07:28 per*server.de systemd[1]: Configuration file /usr/lib/systemd/system/aibolit-resident.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding>
Jan 08 10:07:28 per*server.de systemd[1]: /usr/lib/systemd/system/aibolit-resident.socket:6: ListenDatagram= references a path below legacy directory /var/run/, updating /var/run/defence360agent/aibolit-resident.sock → /run/defence360ag>
Jan 08 10:07:28 per*server.de systemd[1]: /usr/lib/systemd/system/spamassassin.service.d/pidfile.conf:2: PIDFile= references a path below legacy directory /var/run/, updating /var/run/spamd.pid → /run/spamd.pid; please update the unit f>
Jan 08 10:07:28 per*server.de crontab[1461476]: (root) REPLACE (psaadm)
Jan 08 10:07:28 per*server.de systemd[1]: run-plesk-task-11489.service: Deactivated successfully.
 
The error indicates there is a problem with the Clamav definition database.

Try to kill freshclam if it's running and manually start freshclam. The cron takes a random number that is passed to the sleep command in order to prevent DB servers from being hammered at the same time of day.
 
The error indicates there is a problem with the Clamav definition database.

Try to kill freshclam if it's running and manually start freshclam. The cron takes a random number that is passed to the sleep command in order to prevent DB servers from being hammered at the same time of day.
Thank you, but that is not a solution for me.
 
Back
Top