Radek Sprta (Posts about antivirus)https://radeksprta.eu/categories/antivirus.atom2024-01-07T02:28:55ZRadek SprtaNikolaAutomatic ClamAV Scans With Email Notificationshttps://radeksprta.eu/posts/automatic-clamav-scans-with-email-notifications/2018-09-18T09:42:52+02:002018-09-18T09:42:52+02:00Radek Sprta<div><p>You might consider antivirus software unneccessary on a Linux box. But if you
are running a public facing server, it might be a good idea to run it
regardless. Why is that? Even though malware probably can't affect your server
much, it can still use it to infect users. To prevent that, we will learn how
to install and set up automatic <a href="https://www.clamav.net/">ClamAV</a> scans with
email notifications. In the examples below, I am using Debian 9, but the
commands should be the same for any Linux distribution.</p>
<h3>Install and configure ClamAV</h3>
<p>You can easily install the antivirus by running the following command:</p>
<div class="code"><pre class="code literal-block">$ apt install clamav clamscan
</pre></div>
<p>ClamAV is pretty well
configured out of the box. Usually, I only change the frequency of virus
signature database updates. You can do that in <code>/etc/clamav/freshclam.conf</code> by
changing the <code>Checks</code> line. Since I run the scan once a day, I lower the
frequency of updates to that as well.</p>
<div class="code"><pre class="code literal-block">Checks 1
</pre></div>
<p><a href="https://radeksprta.eu/posts/automatic-clamav-scans-with-email-notifications/">Read moreā¦</a> (1 min remaining to read)</p></div>