LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 03-31-2008, 02:33 AM   #1
leiw
Member
 
Registered: Apr 2006
Posts: 131

Rep: Reputation: 15
postfix + amavisd + clamav + spamassassin problem


Hello

The following log reminded me the clamav or amavisd has some problem:

clamav/clamd (Can't connect to UNIX socket /var/run/clamav/clamd: Connection refused) at (eval 89) line 310.
Mar 31 14:31:48 gateway amavis[8781]: (08781-06) (!!)ClamAV-clamd av-scanner FAILED: CODE(0x96ccde8) Too many retries to talk to /var/run/clamav/clamd (Can't connect to UNIX socket /var/run/clamav/clamd: Connection refused) at (eval 89) line 310. at (eval 89) line 511.

The /var/run/clamav/clamd is exist and clamd folder is full contorl permission.

Thx
 
Old 03-31-2008, 05:08 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Check if the following condition (quoted from amavisd.conf) is met:
Quote:
# # NOTE: run clamd under the same user as amavisd, or run it under its own
# # uid such as clamav, add user clamav to the amavis group, and then add
# # AllowSupplementaryGroups to clamd.conf;
 
Old 03-31-2008, 06:38 AM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You also need to make sure that the setup for the socket is the same in amavisd.conf and clamd.conf. If you make the changes in the post above, make sure that the various directory/file permissions are correct (just changing user groups won't change existing files)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to setup Mailscanner, ClamAV, Postfix, SpamAssassin (my notes) squintr Linux - Software 2 05-31-2012 02:10 PM
retrive message id in Postfix, Amavisd-new, SpamAssassin or Mailzu Isangika Linux - Software 0 09-17-2007 12:12 AM
amavisd / clamav, spamassassin problem 70mas Linux - Server 5 07-19-2007 09:42 PM
rbl problem with postfix-amavisd-spamassassin rointy Linux - Server 6 01-25-2007 11:01 AM
Spamassassin setup with Postfix, Dovecot and Amavisd snurckle Linux - General 2 04-07-2005 01:16 PM


All times are GMT -5. The time now is 09:36 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration