HTTP Anti-Virus Proxy
http://havp.hege.li/forum/

ClamAV does not send mails with HAVP (VirusEvent)
http://havp.hege.li/forum/viewtopic.php?f=3&t=27
Page 1 of 1

Author:  agruener [ 08 Mar 2006 14:18 ]
Post subject:  ClamAV does not send mails with HAVP (VirusEvent)

Hello :-)

First let me report, that Squid, HAVP and ClamAV seem to work fine.

There is only a problem with ClamAV. In the config file clamd.conf there are some lines saying:

# Execute a command when virus is found. In the command string %v will
# be replaced by a virus name.
# Default: disabled
#VirusEvent /usr/local/bin/send_sms 123456789 "VIRUS ALERT: %v"

So I configured:

VirusEvent echo "%v" | /bin/mail -s "VIRUS ALERT Proxy1: %v" user@domain.de

Unfortunately this does not work at all. Pointing my browser to the eicar test files HAVP reports the virus, it is logged to havp.log. But a mail is never sent out. No logging to /var/log/messages, /var/log/mail, /var/log/clamd etc.

When I call the command like this (because ClamAV is running as user vscan) everthing works fine.

sudo -u vscan echo "%v" | /bin/mail -s "VIRUS ALERT Proxy1: %v" user@domain.de

I also tried some changes in clamd.conf already to check wether this file is the one ClamAV really uses. But ClamAV is just doing nothing at all. Same result as if I comment this line out.

Any ideas ?

Thanks & Regards,
Alexander

Author:  hege [ 08 Mar 2006 14:33 ]
Post subject: 

Hi, I think there is a small misunderstanding here..

HAVP does not use clamd, so clamd.conf has no effect. :)

Cheers,
Henrik

Author:  agruener [ 08 Mar 2006 15:39 ]
Post subject:  clamscan

Hi Henrik :-)

Sorry for this 'silly' question. Embarassing....but it explains why it does not work at all like this :oops:

Does it use clamscan which does not use clamd.conf ? If so, how can I get a mail in case clamscan finds something ?

As far as I understand the issue so far, clamscan is called by HAVP.

Perhaps that's another 'silly' question but unfortunately I have not found a solution in the documentation nor via Google... 8)

Regards,
Alexander

Author:  hege [ 08 Mar 2006 16:30 ]
Post subject: 

HAVP uses ClamAV library. So it is kind of "clamd/clamscan" in itself, loads patterns and scans the files..

Clamd and clamscan are also "stand-alone" programs that use the library. :)

Cheers,
Henrik

Author:  agruener [ 08 Mar 2006 16:58 ]
Post subject:  Mail

Hi Henrik,

thanks for your explination.

Do you know a way in HAVP to get an email if a virus was found ? Or just use something like logsurfer or swatch ?

Regards,
Alexander

Author:  hege [ 08 Mar 2006 17:43 ]
Post subject: 

I guess you just need a simple script.. robm here is already doing the same thing.

Cheers,
Henrik

Page 1 of 1 All times are UTC + 2 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/