Hello, I am running clamav-daemon 0.99.4+dfsg-1+deb9u1 on Debian Stretch. Clamav-daemon has been installed from the stretch backports. I am using VirusEvent to trigger a short bash script which sends an email to me. Executed from the command line the script sends exactly on email, which is what I want it to do. But when I open a File with the Eicar test signature I get multiple emails. I think this may be a bug, since one email is sent for each FOUND-line in /var/log/clamav/clamav.log. How can I prevent this behaviour from happening?
This is the relevant part of my configuration - everything else is untouched. User root ScanOnAccess yes OnAccessMountPath / OnAccessExtraScanning yes OnAccessPrevention no VirusEvent /usr/local/bin/virusevent And this is /usr/local/bin/virusevent #!/bin/bash HOST=`echo $HOSTNAME`; LOGFILE="/var/log/clamav/clamav.log"; EMAIL_FROM="clamav-daily@$HOST.netfed.de"; EMAIL_TO="[email protected]"; echo "Virus auf $HOST gefunden"|heirloom-mailx -a "$LOGFILE" -s "Virus gefunden" -r "$EMAIL_FROM" "$EMAI$ exit 0 Yours sincerely Stefan Malte Schumacher Stefan Schumacher Systemadministrator NetFederation GmbH - Fon: +49 (0)2236/3936-708 E-Mail: [email protected] Internet: http://www.net-federation.de Besuchen Sie uns doch auch auf facebook, twitter, Google+, flickr, Slideshare, XING oder unserem Blog. Wir freuen uns! ******************************************************************************* Touchpoint Presse-Website ******************************************************************************* Unsere Analyse von 75 Presse-Websites Websites zeigt: Grundlegende Anforderungen sind erfüllt, aber die Arbeit könnte den Zielgruppen noch mehr erleichtert werden. Alle Ergebnisse, Rankings, Best Practices unter www.mr-benchmark.de. ***************************************************** NetFederation GmbH Geschäftsführung: Christian Berens, Thorsten Greiten Amtsgericht Köln, HRB Nr. 32660 ***************************************************** The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee and access to the e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you have received this e-mail in error please forward to: [email protected] Die in dieser E-Mail enthaltenen Informationen sind vertraulich und können von rechtlicher Bedeutung sein. Diese Mail ist ausschließlich für den Adressaten bestimmt und jeglicher Zugriff durch andere Personen ist nicht zulässig. Falls Sie nicht der beabsichtigte Empfänger sind, ist jegliche Veröffentlichung, Vervielfältigung, Verteilung oder sonstige in diesem Zusammenhang stehende Handlung untersagt und unter Umständen ungesetzlich. Falls Sie diese E-Mail irrtümlich erhalten haben, leiten Sie sie bitte weiter an: [email protected] _______________________________________________ clamav-users mailing list [email protected] http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
