Help with Amavisd-new

Alexander Leidinger Alexander at
Tue May 9 18:37:44 UTC 2006

Quoting derrick at (Mon, 8 May 2006 11:03:34 -0400 (EDT)):

> May  9 02:33:08 mail amavis[15471]: (15471-01) (!!) ask_av (ClamAV-clamd)
> FAILED - unexpected result:
> /var/amavis/tmp/amavis-20060509T023307-15471/parts: lstat() failed. ERROR\n
> FreeBSD 6.1-RC i386 SMP-GENERIC
> amavisd-new-2.4.0,1 Performance-enhanced daemonized version of amavis-perl
> clamav-0.88.2       Command line virus scanner written entirely in C
> Hi, I continue to get this error message with amavisd-new. I made sure
> that permissions were good on the directories. Anything I am missing.

Are you sure?

I don't remember the error message (and the above doesn't look like you
should do the following, but not AFAIR I searched for the problem for a
while), but maybe the following helps.

chown -R clamav:vscan /var/run/clamav; chmod -R g+w /var/run/clamav;

If you use portupgrade I suggest to make sure
your /usr/local/etc/pkgtools.conf contains something similar to this:
        'security/clamav' => '/usr/local/etc/rc.d/ stop; /usr/local/etc/rc.d/ stop',

    'security/clamav' => 'chown -R clamav:vscan /var/run/clamav; chmod -R g+w /var/run/clamav; /usr/local/etc/rc.d/ start; /usr/local/etc/rc.d/ start',


                   Press every key to continue.                       Alexander @
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7

More information about the freebsd-ports mailing list