Sebastian,

> I have installed amavis with clamav and postfix on debian etch.
>
> Clamd is working - ps aux | grep clamd shows
>
> clamav    3961  0.1  7.7  97116 76760 ?        Ss   11:31   0:10 clamd
>
> The /var/run/clamav/clamd.ctl
>
> ist there too.
>
> If I send a infected message for example the eicar-test-virus
> to the mailrelay - the virus is filtered and quarantined.
>
> But the mail.log shows:
>
> Jun 20 13:41:03 server amavis[10738]: (10738-07) (!!) ask_av (ClamAV-clamd)
> FAILED - unexpected result:
> /var/lib/amavis/tmp/amavis-20080620T132641-10738/parts: lstat() failed.
> ERROR\n Jun 20 13:41:03 ks360112 amavis[10738]: (10738-07) (!!) WARN: all
> primary virus scanners failed, considering backups
>
> What is wrong?

clamd can't access files in /var/lib/amavis/tmp/amavis-2008.../parts.


INSTALL:

- some virus scanners run as daemons or change UID when checking files.
  It is easiest to run such virus scanners under the same UID/GID (or at least
  within the same group) as amavisd, to avoid file permission problems
  when virus scanner reads files prepared for checking by amavisd daemon.
  Some virus scanners may require write permission to the $TEMPBASE directory
  to be able to create auxiliary files there.

  If a different UID is preferred for an AV scanner, a solution for ClamAV
  is to add user clamav to the amavis group (e.g.:  vscan:*:110:clamav
  in a file /etc/group), and then add:  AllowSupplementaryGroups yes
  to clamd.conf.


Mark

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to