Package: clamav-daemon
Version: 0.90.3-1
Severity: normal

When clamd starts, it reads the virus definitions and only then
creates the clamd.ctl socket. When used with amavisd, this causes
amavisd to fail:

  Jun  2 09:06:02 seamus amavis[6785]: (06785-01) (!!) ClamAV-clamd
  av-scanner FAILED: Too many retries to talk to
  /var/run/clamav/clamd.ctl (Can't connect to UNIX socket
  /var/run/clamav/clamd.ctl: No such file or directory) at (eval 44)
  line 268.

and to pass the mail to the secondary AV scanners, or just pass it
if none are configured.

Would it not make more sense to create the socket immediately, and
to block, or to return something like EUNAVAIL until clamd has
finished initialising, so that amavisd know that it should wait?

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.20-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- 
 .''`.   martin f. krafft <[EMAIL PROTECTED]>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Attachment: signature.asc
Description: Digital signature (GPG/PGP)

Reply via email to