Wforum Wforum
2018-08-10 08:19:16 UTC
Hi,
I try to use ' VirusEvent' in clamd.conf to send an email if a Virus is
detected. But it seems that it is not executed. I also tried to execute a
script but did not work either.
VirusEvent tail -1 /var/log/clamav/clamav.log > /tmp/clammail && mail -s
"Clamav Virus Alert" mailaddress < /tmp/clammail
or
VirusEvent /etc/clamv/script.sh
The Virus is detected and logged in /var/log/clamav/clamav.log
How can I use 'VirusEvent'?
Thanks!!
I try to use ' VirusEvent' in clamd.conf to send an email if a Virus is
detected. But it seems that it is not executed. I also tried to execute a
script but did not work either.
VirusEvent tail -1 /var/log/clamav/clamav.log > /tmp/clammail && mail -s
"Clamav Virus Alert" mailaddress < /tmp/clammail
or
VirusEvent /etc/clamv/script.sh
The Virus is detected and logged in /var/log/clamav/clamav.log
How can I use 'VirusEvent'?
Thanks!!