clamav and mailscanner

Glenn Steen glenn.steen at gmail.com
Wed Feb 28 17:06:47 CET 2007


On 28/02/07, Zivago Lee <z at ziff.net> wrote:
> On Wed, 2007-02-28 at 10:01 +0100, Glenn Steen wrote:
> > On 28/02/07, Zivago Lee <z at ziff.net> wrote:
> > > I've been noticing an issue with clamav and mailscanner.  I can run
> > > clamscan just fine separately, however, in mailscanner, I get this error
> > > in debug mode:
> > >
> > > Feb 26 13:18:38 www MailScanner[2871]: Commencing scanning by clamav...
> > > Feb 26 13:18:38 www MailScanner[2871]: ERROR: Unable to open file or
> > > directory
> > > Feb 26 13:18:38 www MailScanner[2871]: Completed scanning by clamav
> > > Any ideas on what directories I need it to give permissions on?
> >
> > /Var/spool/MailScanner/incoming perhaps?
>
> Here are my current perms:
>
> drwx------   4 postfix postfix  4096 Feb 28 07:49 incoming
>
> I don't think I changed anything recently besides updating clamav to
> 0.90.  Are these the correct perms for this directory?  I'm assuming
> that the postfix user is running clamscan so it shouldn't have any
> issues, correct?
>
Try it as that user:
su - postfix -s /bin/bash
clamscan ....
and perhaps try the wrapper too.
Should show a more eloquent error, if any.
When you call the wrapper, you should use the options as specified in
SweepViruses.pm ...
Something like
/usr/lib/MailScanner/clamav-wrapper /usr/local -r --disable-summary --stdout .
.... somewhere appropriate.

Cheers
-- 
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se


More information about the MailScanner mailing list