LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   postfix + amavisd + clamav + spamassassin problem (http://www.linuxquestions.org/questions/linux-server-73/postfix-amavisd-clamav-spamassassin-problem-631822/)

leiw 03-31-2008 01:33 AM

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

bathory 03-31-2008 04:08 AM

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;

billymayday 03-31-2008 05:38 AM

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)


All times are GMT -5. The time now is 08:49 AM.