RE: [AMaViS-user] Calling a simple shell script whenever a virus is found?

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; > -----Original Message----- > From: amavis-user-admin@lists.sourceforge.net [mailto:amavis-user- > admin@lists.sourceforge.net] On ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-14-2006
Ed Lucero
 
Posts: n/a
Default RE: [AMaViS-user] Calling a simple shell script whenever a virus is found?



> -----Original Message-----
> From: amavis-user-admin@lists.sourceforge.net [mailto:amavis-user-
> admin@lists.sourceforge.net] On Behalf Of Sven Abels
> Sent: Friday, March 10, 2006 5:09 AM
> To: amavis-user@lists.sourceforge.net
> Subject: [AMaViS-user] Calling a simple shell script whenever a virus is
> found?
>
> Hi,
>
> 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?
>
> Best greetings,
>
> Sven
>


Clamav as a parameter you can use to call a script when a virus is found.

Here is the parameter from the clamav.conf.default file

Ed

# 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"




-------------------------------------------------------
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/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:00 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0