ClamAV is running & enabled in hestiaCP but not appearing in HestiaCP nor showing enabled as Antivirus at Mail.
How to solve this?
ClamAV is running & enabled in hestiaCP but not appearing in HestiaCP nor showing enabled as Antivirus at Mail.
How to solve this?
Have you installed manualy? If yes, what have steps have you done?
Thanks for the attention,
I have applied these steps to installing this as:
sudo systemctl status clamav-daemon
dpkg -l | grep clamav
sudo apt update && sudo apt install clamav clamav-daemon -y
sudo freshclam [But was not working that time.]
then,
sudo chown clamav:clamav /var/log/clamav
sudo chmod 750 /var/log/clamav
sudo touch /var/log/clamav/freshclam.log
sudo chown clamav:clamav /var/log/clamav/freshclam.log
sudo chmod 640 /var/log/clamav/freshclam.log
sudo systemctl restart clamav-freshclam
sudo systemctl restart clamav-daemon
sudo freshclam
sudo systemctl status clamav-daemon
sudo systemctl status clamav-freshclam
If you do that, follow the installer steps:
What you probaly miss is:
Which means you should adjust hestia.conf to the related values.
ok,
I have taken these steps:
sudo systemctl stop clamav-daemon
sudo nano /etc/clamav/clamd.conf
#making sure for these values have here
LocalSocket /run/clamav/clamd.ctl
PidFile /run/clamav/clamd.pid
User clamav
Save and exit (Ctrl+X
, then Y
, then Enter
)
Run the Configuration Script:
sudo gpasswd -a clamav mail
sudo gpasswd -a clamav Debian-exim
sudo cp -f /usr/local/hestia/clamav/clamd.conf /etc/clamav/
sudo update-rc.d clamav-daemon defaults
if [ ! -d “/run/clamav” ]; then
sudo mkdir /run/clamav
fi
sudo chown -R clamav:clamav /run/clamav
if [ -e “/lib/systemd/system/clamav-daemon.service” ]; then
exec_pre1=‘ExecStartPre=-/bin/mkdir -p /run/clamav’
exec_pre2=‘ExecStartPre=-/bin/chown -R clamav:clamav /run/clamav’
sudo sed -i “s|[Service]|[Service]\n$exec_pre1\n$exec_pre2|g”
/lib/systemd/system/clamav-daemon.service
sudo systemctl daemon-reload
fi
sudo systemctl start clamav-daemon
sudo systemctl status clamav-daemon
sudo freshclam
sudo systemctl restart clamav-daemon
sudo systemctl status clamav-daemon
ls -l /run/clamav
And finally the result is success [for antivirus] but spam filter is disappearing.
see…
Now, how to solve this?