Problem with clamav socket

Hi, I have a problem with clamav-0.95.2 on linux OS, I have use clamav with freshclam/postfix/amavisd-new and in log file I have:

Apr 16 11:30:51 mail amavis[2321]: (02321-02) ClamAV-clamd av-scanner FAILED: Too many retries to talk to /tmp/clamd (Can't connect to UNIX socket /tmp/clamd: No such file or directory) at (eval 74) line 257.

and on boot I have:

clamd: /bin/bash: line 1 File size limit exceeded /tmp/clamd

in /etc/init.d/clamd I have:
ulimit -f 30000

I can add that I have made upgrade from 0.92.1 to 0.95.2 on three mail server and on all mail server I have the same problem about:

Apr 16 11:30:51 mail amavis[2321]: (02321-02) ClamAV-clamd av-scanner FAILED: Too many retries to talk to /tmp/clamd (Can't connect to UNIX socket  /tmp/clamd: No such file or directory) at (eval 74) line 257.

also if I use in amavisd.conf:

['ClamAV-clamd',
\&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.sock"]

I have the same error message.

Thanks.
-
 Salvatore.
sasapixAsked:
Who is Participating?
 
sasapixConnect With a Mentor Author Commented:
Hi, I have incresead more value from:

ulimit -f 30000

to:

ulimit -f 80000

Thanks.

-
 Salvatore.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.