Hello all,

I'm running amavisd-new-2.6.3-r2 with clamav-0.96.1 on a 64bit hardened
Gentoo Base System release 1.12.13 (without SELinux) and going through
postfix-2.6.6.

Amavisd-new however is unable to connect to clamav's socket, according
to the logs.

Sep 14 13:03:30 7of9 amavis[16718]: (16718-07) (!!)ClamAV-clamd
av-scanner FAILED: run_av error: Too many retries to talk to
/var/run/clamav/clamd.sock (Can't connect to UNIX socket
/var/run/clamav/clamd.sock: Connection refused) at (eval 99) line 326.\n
Sep 14 13:03:30 7of9 amavis[16718]: (16718-07) (!!)WARN: all primary
virus scanners failed, considering backups

The socket however has all the correct permissions:
  File: `/var/run/clamav/clamd.sock'
  Size: 0               Blocks: 0          IO Block: 4096   socket
Device: 903h/2307d      Inode: 63373       Links: 1
Access: (0666/srw-rw-rw-)  Uid: (  116/  clamav)   Gid: (10024/  clamav)

Amavis obvious is part of the correct group,
7of9 tmp # grep amavis /etc/group
amavis:x:10021:clamav
clamav:x:10024:amavis

and clamav does allow other groups to access the _world_ writable socket.
# Initialize supplementary group access (clamd must be started by root).
AllowSupplementaryGroups yes

I've checked all the obvious flags and options but I just can't seem to
figure it out. And the frustrating part, I have a remote server setup
identically (as far as I can tell) and it works just fine.

Any pointers, tips or suggestions would be greatly appreciated. I did
try the clamav mailing list, but they couldn't help me any further.

Thanks for your time,

Oliver


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org

Reply via email to