LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 01: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, 04:08 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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, 05:38 AM   #3
billymayday
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)
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:47 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
Open Source Consulting | Domain Registration