On Mon, 20 Oct 2003 at 21:44:22 -0400, Gerard Ceraso wrote: > I am trying to use amavis, with clamav scan. Amavis seems to be having > problems connecting to clamav and I getting this error. > > Oct 20 20:48:22 cyrus postfix/smtp[712]: 9D99F2E030: > to=<[EMAIL PROTECTED]>, relay=127.0.0.1[127.0.0.1], delay=6108, > status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in > processing, id=00429-04, virus_scan FAILED: ALL VIRUS SCANNERS FAILED: > Clam Antivirus-clamd av-scanner FAILED: Too many retries to talk to > /var/run/clamav/clamd (Can't connect to UNIX socket > /var/run/clamav/clamd: No such file or directory) at (eval 52) line 179. > (in reply to end of DATA command)) > > I am running FreeBSD with postfix and cyrus imap and in the > /usr/local/etc/clamav.conf I have the local socket as "LocalSocket > /var/run/clamav/clamd" and in the /usr/local/etc/amavisd.conf file I > have this line: > > ### http://clamav.elektrapro.com/ > ['Clam Antivirus-clamd', > \&ask_daemon, ["CONTSCAN {}\n", '/var/run/clamav/clamd'], > qr/\bOK$/, qr/\bFOUND$/, > qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], > # NOTE: run clamd under the same user as amavisd, > # match the socket name in clamav.conf to the socket name in this entry > > Any ideas what I am doing wrong? > > ~gerard
But does /var/run/clamav/clamd exist? If not, maybe clamd can't create the file (permission problem?). Does clamd process exist? -- Tomasz Papszun SysAdm @ TP S.A. Lodz, Poland | And it's only [EMAIL PROTECTED] http://www.lodz.tpsa.pl/ | ones and zeros. ------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users