> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Dennis Peterson > Sent: dinsdag 28 november 2006 22:58 > To: ClamAV users ML > Subject: Re: [Clamav-users] How to run clamscan for a list of > files from afile?
First of all, when it comes to scanning mail, I have a hard time finding reasons for justifying doing a ClamAV scan other than at reception/delivery time. Scanning mail dirs periodically means you always have gaping windows of insecure time during which people will retrieve mail. > ... This looks interesting: > http://www.fpsn.net/index.cgi?pg=products&product=File::Scan::ClamAV > > It allows sending files as streams to clamd so there is only a single > invocation of perl and clamd is presumed already running. It also says: "Note that the resource must be readable by the user the ClamdAV clamd service is running as." Ay, there's the rub. For scanning a mail dir periodically (which I *also* do, next to scanning at delivery time, so as to potentially catch a virus after-the-fact when new definitions are available), I once wrote a little Perl script that uses the local POP server to retrieve mail. It has the advantage that you don't need to have clamd running as root (and I use the same POP protocol to then delete individually infected messages, too). - Mark _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html