This is a discussion on Re: [AMaViS-user] Calling a simple shell script whenever a virus is found? within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Sven, > I'm currently using Amavis to use clamav for filtering emails that contain > viruses. This works great ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Sven,
> I'm currently using Amavis to use clamav for filtering emails that contain > viruses. This works great so far. > > However: Whenever a virus arrives, I need to call a shell script. This > shell script just increases a counter in a database and therefore doesn't > need any information (not the title or subject of the mail, etc.). It just > needs to be called. > > Does someone know a way that I can tell amavis to call this script when > finding a virus? Such a mechanism is not provided, you will need to modify the program. Why not use counters which are already collected in a Berkeley database? As an example on how to read it, see amavisd-agent, or just db_dump -p the database /var/amavis/db/snmp.db Mark ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=...720&dat=121642 _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/...fo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ |
![]() |
| Thread Tools | |
| Display Modes | |
|
|