Re: [Clamav-users] Triggering freshclam with procmail

2005-12-28 Thread Kelson Vibber

Harry Phillips wrote:

I was wondering if it is possible and if it is advisable to trigger freshclam
when I receive a message that the daily database has been updated.


I used to do this, but it's no longer necessary now that freshclam can 
check for updates via a DNS query.  You can run it as a daemon, or 
hourly via cron and not put too much load on the update servers. 
Linking it to the mailing list no longer provides much of an advantage.

___
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] Triggering freshclam with procmail

2005-12-26 Thread .rp
 I was wondering if it is possible and if it is advisable to trigger
 freshclam when I receive a message that the daily database has been
 updated.
 
That is what i do.
In the .procmailrc of the user that gets the notifications I have:
:0Hc
* ^To:[EMAIL PROTECTED]
|/etc/smrsh/clamupdate.cmd


 /etc/smrsh/clamupdate.cmd is one line:
cp /root/stuff/freshclam.scr /etc/cron.hourly/


the file  /root/stuff/freshclam.scr contains:
freshclam
\rm /etc/cron.hourly/freshclam.scr
/usr/batch/clmilter_watch.pl


I put in the hourly cron so that it gets kicked off within the next hour but 
not 
right away when lots of people are probably banging away at the server.

___
http://lurker.clamav.net/list/clamav-users.html