Install clamav in the admin directory with fast method

The clamav firewall is a very powerful and versatile antivirus capable of installing on Windows and Linux, with the installation of clamav in the admin directory, 

Linux servers will become more secure in the future How to install it with antivirus.

One of the benefits of being free and open source is it, which means that the latest security updates and patches will be released to you by developers as quickly as possible.

Steps to install clamav in the admin directory

In order to install it from a binary file in the panel, simply connect to your server with root access via ssh.

Then, enter the Costume Builder directory with the following command.

  cd / usr / local / directadmin / custombuild

Then enter the following commands to install clamav in the admin directory respectively.

  ./build update
 ./build set clamav yes
 ./build clamav

Depending on your server and Internet hardware, it may take about a few minutes for the clamav installation to take place.

If your admin directory uses custombuild2 to compile files, changes will not be needed after installing the exim.conf file, and you can skip this step or upgrade clamav before installing the admin directory , otherwise Follow up on the training.

Open an exim configuration file in / etc / exim.conf with an editor and paste the following code before the primary_hostname line.

  av_scanner = clamd: 3310

If you are using custombuild2 , there is no need to do the above step, as these changes will be automatically included in the exim.clamav.load.conf file.

When you are editing an exim.conf file, also search for check_message: and paste the following code snippet.

  deny message = This message contains malformed MIME ($ demime_reason)
 demime = *
 condition = $ {if> {$ demime_errorlevel} {2} {1} {0}}
 deny message = This message contains viruses or other harmful content ($ malware_name)
 demime = *
 malware = * / defer_ok
 deny message = This message contains an attachment of a type we do not accept (. $ found_extension)
 demime = bat: com: pif: prf: scr: vbs
 warn message = X-Antivirus-Scanner: Clean mail though you should still use an Antivirus

Now reset your exim to save the changes by following the Linux distribution.

  /etc/init.d/exim restart # Redhat / Debian
 /usr/local/etc/rc.d/exim restart #FreeBSD

Installing clamav in the admin directory is now complete, you can now manage the clamav command via ssh or make changes to the admin directory.

A command that can be used to scan a specific directory

  clamscan -i -r / path

Enter the directory name of the directory you want to scan instead of / path.

Source: directadmin

How helpful was the training for you?

Leave a Reply

Your email address will not be published. Required fields are marked *