Re: Configure ClamAV Scanner - Version 78 Documentation - cPanel Documentation
Please tell me if I have a correct and complete understanding of ClamAV.
Once plugin is installed in WHM (w/o cron job):
Please tell me if I have a correct and complete understanding of ClamAV.
Once plugin is installed in WHM (w/o cron job):
- clamd daemon is active and used for the following
- incoming mail is scanned
- outgoing mail is scanned, if configured in Exim settings
- uploads in file manager are scanned
- users can scan manually (using clamd or clamscan?)
- clamscan is used for the following
- all home directories (if using the code supplied) are scanned per the cron entry
- Is there an advantage of one over the other in the cron:
- while read domain user; do /usr/local/cpanel/3rdparty/bin/clamscan -i -r /home/"$user" 2>&1; done </etc/trueuserdomains >>/root/infections.txt
- for i in `awk '!/nobody/{print $2 | "sort | uniq" }' /etc/userdomains | sort | uniq`; do /usr/local/cpanel/3rdparty/bin/clamscan -i -r /home/$i 2>>/dev/null; done >> /root/infections&
- I have read discussions about clamd vs clamscan regarding the impact on RAM and CPU usage (about signatures being loaded, I believe). Can you provide details on this?
- What is the default behavior regarding infected files, and notification of found threats found, during cron scans? I have seen variations of cron jobs but would like docs on that.