Skip to main content

setupclamav

Clamav Antivirus Setup Tool

This tool will help you to install ClamAV service and clamd daemon on your server.  We use a custom build clamav distribution which will provide live virus protection using ClamAV On-Access Scanner service. 

Clamd is a CPU intensive application. It uses a lot of cpu resources. 

Command :

/usr/local/eenos/scripts/setupclamav

Command Options :

/usr/local/eenos/scripts/setupclamav
Copyright(c) 2020-2022, eenos.com
Eenos Clamav  setup tool
This tool will help you to install Clamav Antivirus

Usage: /usr/local/eenos/scripts/setupclamav  <options>=[values]

Command Groups:
Options:
    --install           -   Install Clamav
    --rebuildconf       -   Rebuild Clamav configuration

Example  : /usr/local/eenos/scripts/setupclamav --install

What are included with ClamAV  package?

The eenos clamav package includes,  clamav daemon,  clamav On-Access scanner and Clamav  Database updation.

Clamd 

The clamav  daemon service provides antivirus scanning of emails. It is integrated with the eenos exim mail server.

On-Access scanner 

This service is a live virus scanner.  Whenever a new  virus file is uploaded to the server, it will be moved to the quarantine folder /var/lib/quarantine  automatically

Some containers like LXC need special privileges to access the fanotify_init  from kernel.

Freshclam

This is a timer application which will automatically update  the clamav virus database.

Install ClamAV and Related Services

You may use the following command to install ClamAV ,  ClamAV On-Access Scanner  and Clamd services.

Command:

 /usr/local/eenos/scripts/setupclamav --install

Rebuild ClamAV Configuration

The following command will rebuild ClamAV configuration.

Command:

/usr/local/eenos/scripts/setupclamav --rebuildconf
Restart Clamd Service

Command:

systemctl restart clamav-daemon.service
Restart ClamAV  On-Access Scanner

Command:

systemctl restart clamav-clamonacc.service
Restart ClamAV Virus Database Updater

Command :

systemctl restart clamav-freshclam.service