ClamAV requires a significant amount of RAM (~1GB). Used as a daemon, memory will be used first.
In the application configuration, it is possible to activate systematic scanning of all files uploaded to the server using an antivirus installed on the machine.
Only ClamAV is officially supported by Ametys.
The default configuration is based on the use of clamdscan , the daemon version of ClamAV. It must therefore be activated for this to work.
To do this, install the daemon
sudo apt-get install clamav-daemon
This should install two services : clamav-freshclam.service and clamav-daemon.service.
The first updates the database regularly. The second is the daemon that takes care of scanning files.
It is recommended to activate the first, and necessary to activate the second so thatAmetys can scan files.
sudo systemctl enable clamav-freshclam sudo systemctl start clamav-freshclam sudo systemctl enable clamav-daemon sudo systemctl start clamav-daemon
You can test that the daemon is functional by calling
clamdscan --fdpass <path/to/file>