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


  Search this Thread
Old 03-31-2008, 01:33 AM   #1
Registered: Apr 2006
Posts: 131

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


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.

Old 03-31-2008, 04:08 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,479

Rep: Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481
Check if the following condition (quoted from amavisd.conf) is met:
# # 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, 05:38 AM   #3
LQ 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)


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

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

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