Re: [AMaViS-user] Can't connect to UNIX socket /var/run/clamav/clamd: Permission denied

2007-06-02 Thread Gary V
lists wrote:

 Hallo,

 I installed amavis-new for the first time this morning and noticed
 this message in my logs. I have not been able to solve it by myself,
 so ask for some assistance.
 Clamd runs as user clamav:clamav. User amavis:amavis also belong to
 group clamav.
 Directory /var/run/clamav is owned by clamav:clamav, permissions
 rwxrwx---; socket /var/run/clamav/clamd is owned by clamav:clamav,
 permissions srwxrwxrwx.
 What is it that I don't see?

 Groeten,

Hans.

Possibly missing:
AllowSupplementaryGroups yes
in clamd.conf

http://www200.pair.com/mecham/spam/clamav-amavisd-new.html

Gary V


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Can't connect to UNIX socket /var/run/clamav/clamd:

2007-06-02 Thread Gary V
lists wrote:

 Hallo Gary,

 Op zaterdag 02 juni 2007 schreef Gary V aan amavis-user@lists.sourceforge.net:

   I installed amavis-new for the first time this morning and
   noticed this message in my logs.
  GV Possibly missing:
  GV AllowSupplementaryGroups yes
  GV in clamd.conf

 Alas. I saw that one mentioned in the docs and did put it in.

 Groeten,

Hans.

 User amavis:amavis also belong to group clamav.

This may not help, but I always add the clamav user to the amavis
group, not the amavis user to the clamav group. Then:

stop amavisd
stop clamd
start clamd
start amavisd

Gary V


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Can't connect to UNIX socket /var/run/clamav/clamd: Permission denied

2007-06-02 Thread Mark Martinec
Hans,

 I installed amavis-new for the first time this morning and noticed
 this message in my logs. I have not been able to solve it by myself,
 so ask for some assistance.
 Clamd runs as user clamav:clamav.
 Directory /var/run/clamav is owned by clamav:clamav, permissions 
 rwxrwx---; socket /var/run/clamav/clamd is owned by clamav:clamav,
 permissions srwxrwxrwx.

 User amavis:amavis also belong to group clamav.

As Gary noticed, this is irrelevant, what matters is
placing user clamav to the amavis group, as documented
in the INSTALL document:

- 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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


RE: [AMaViS-user] Can't connect to UNIX socket /var/run/clamav/clamd

2005-06-20 Thread MJ
The issue has already been resolved.
Thanks,
MJ

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mohammad
Junaid
Sent: Wednesday, June 08, 2005 7:37 PM
To: amavis-user@lists.sourceforge.net
Subject: [AMaViS-user] Can't connect to UNIX socket
/var/run/clamav/clamd

Hi,
Can someone help with following error?

amavis[556]: [ID 702911 mail.error] (00556-05) ClamAV-clamd av-scanner
FAILED: Too many retries to talk to /var
/run/clamav/clamd (Can't connect to UNIX socket /var/run/clamav/clamd:
No such file or directory) at (eval 39) line 264.
Jun  8 17:11:53 sune amavis[556]: [ID 702911 mail.error] (00556-05)
WARN: all primary virus scanners failed, considering backups
earun  8 17:11:53 sune amavis[556]: [ID 702911 mail.debug] (00556-05)
Using (ClamAV-clamscan): /usr/local/bin/clamscan --stdout --di
sable-summary -r --tempdir=/var/amavis/tmp
/var/amavis/tmp/amavis-20050608T165159-00556/parts



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Can't connect to UNIX socket /var/run/clamav/clamd

2005-06-08 Thread Bill Landry
- Original Message - 
From: MJ [EMAIL PROTECTED]



Hi,
Can someone help with following error?


Check the path to your clamd socket in clamd.conf and amavisd.conf.  They 
need to point to the correct location of the socket and they both need to 
match.


Look for this section in your clamd.conf:
# Path to a local socket file the daemon will listen on.
LocalSocket /var/amavis/clamd.socket

Look for this section in your amavisd.conf:
['ClamAV-clamd',
 \ask_daemon, [CONTSCAN {}\n, /var/amavis/clamd.socket],

Bill 




---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r=20

___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Can't connect to UNIX socket /var/run/clamav/clamd

2005-06-08 Thread Gary V
MJ wrote:

 Hi,
 Can someone help with following error?

 amavis[556]: [ID 702911 mail.error] (00556-05) ClamAV-clamd av-scanner
 FAILED: Too many retries to talk to /var
 /run/clamav/clamd (Can't connect to UNIX socket /var/run/clamav/clamd:
 No such file or directory) at (eval 39) line 264.
 Jun  8 17:11:53 sune amavis[556]: [ID 702911 mail.error] (00556-05)
 WARN: all primary virus scanners failed, considering backups
 earun  8 17:11:53 sune amavis[556]: [ID 702911 mail.debug] (00556-05)
 Using (ClamAV-clamscan): /usr/local/bin/clamscan --stdout --di
 sable-summary -r --tempdir=/var/amavis/tmp
 /var/amavis/tmp/amavis-20050608T165159-00556/parts

http://www200.pair.com/mecham/spam/clamav-amavisd-new.html

Gary V



---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r=20
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/