LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-24-2013, 08:23 AM   #1
NetNightmare
Member
 
Registered: Sep 2005
Location: Rome
Distribution: Slackware
Posts: 34

Rep: Reputation: 16
Question amavisd-new & clamav socket permissions


Hello guys,

I could use the help of some extra eyes here , since I'm surely missing something obvious , I installed amavisd-new & clamav from Sbo ( on slack x64 14 ) and I m hitting this problem :

Code:
May 24 14:33:43 mail amavis[2777]: (02777-03) (!)connect to /var/run/clamav/clamd.socket failed, attempt #1: Can't connect to UNIX socket /var/run/clamav/clamd.socket: No such file or directory
May 24 14:33:44 mail amavis[2777]: (02777-03) (!)connect to /var/run/clamav/clamd.socket failed, attempt #1: Can't connect to UNIX socket /var/run/clamav/clamd.socket: No such file or directory
May 24 14:33:44 mail amavis[2777]: (02777-03) (!)Clam Antivirus-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.socket, retrying (2)
May 24 14:33:50 mail amavis[2777]: (02777-03) (!)connect to /var/run/clamav/clamd.socket failed, attempt #1: Can't connect to UNIX socket /var/run/clamav/clamd.socket: No such file or directory
May 24 14:33:50 mail amavis[2777]: (02777-03) (!)Clam Antivirus-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.socket (All attempts (1) failed connecting to /var/run/clamav/clamd.socket) at (eval 131) line 600.\n
May 24 14:33:50 mail amavis[2777]: (02777-03) (!)WARN: all primary virus scanners failed, considering backups
May 24 14:33:50 mail amavis[2777]: (02777-03) (!!)AV: ALL VIRUS SCANNERS FAILED
now I checked the following
Code:
root@mail:/etc/httpd/extra# id clamav
uid=210(clamav) gid=210(clamav) groups=210(clamav),255(amavis)

root@mail:/etc/httpd/extra# id amavis
uid=255(amavis) gid=255(amavis) groups=255(amavis),210(clamav)
added
Code:
AllowSupplementaryGroup yes
to clamd.conf and freshclam.conf

this is the socket :
Code:
root@mail:/etc# ls -la /var/run/clamav/
total 16
drwxrwx--x  2 clamav clamav 4096 May 24 14:32 ./
drwxr-xr-x 16 root   root   4096 May 24 13:26 ../
-rwxrwxrwx  1 clamav clamav    4 May 24 14:31 clamd.pid*
srw-rw----  1 clamav clamav    0 May 24 14:31 clamd.socket=
-rw-rw----  1 clamav clamav    4 May 24 14:32 freshclam.pid
this is clamd starting :
Code:
May 24 14:39:53 mail clamd[3196]: clamd daemon 0.97.8 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
May 24 14:39:53 mail clamd[3196]: Running as user clamav (UID 210, GID 210)
and this is amavis :


Code:
May 22 16:40:55 mail amavisd-signer[2892]: 2013/05/22-16:40:55 AmavisSigner (type Net::Server::Multiplex) starting! pid(2892)
May 22 16:40:55 mail amavisd-signer[2892]: Binding to TCP port 20203 on host 127.0.0.1 with IPv4
May 22 16:40:55 mail amavisd-signer[2892]: Setting gid to "255 255"
May 22 16:40:55 mail amavisd-signer[2892]: Setting uid to "255"
May 22 16:40:55 mail amavis[2893]: starting. /usr/sbin/amavisd-new at mail.example.com amavisd-new-2.7.1 (20120429), Unicode aware, LANG="en_US"
May 22 16:41:21 mail amavisd-signer[2901]: Process Backgrounded
now .. anyone has any clue of why I am having this problem ? of course if I
chmod 777 the socket the problem is "solved" but first is not as intended and also I would have to script it at startup ....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Postfix, clamav, amavisd Tarikc Linux - Server 3 04-17-2010 07:20 AM
clamav and amavisd-new for sendmail ragebot Slackware 2 08-16-2008 04:42 AM
postfix + amavisd + clamav + spamassassin problem leiw Linux - Server 2 03-31-2008 05:38 AM
amavisd / clamav, spamassassin problem 70mas Linux - Server 5 07-19-2007 08:42 PM
Amavisd-new: Interface to Sendmail milter + ClamAV cyberjames Slackware 0 02-07-2005 01:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration