Make sure that LocalSocket in clamd.conf points to the same socket as in
amavisd.conf
For example my clamd.conf says "LocalSocket /tmp/clamd" and in amavisd.conf
under @av_scanners = (
['ClamAV-clamd',
\&ask_daemon, ["CONTSCAN {}\n", "/tmp/clamd"],
qr/\bOK$/, qr/\bFOUND$/,
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
Regards
Klas Nyström
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carsten Laun-De
Lellis
Sent: den 13 augusti 2007 13:20
To: [email protected]
Subject: [Clamav-users] Absolute Newbie needs help
Dear all
I am an absolute newbie with postfix, amavis and clamav. I had set up an
installation on Fedora7 with postfix 2.4.2 , amavis-new and clamav.
Without content and virus filtering everything worked fine, but when i tried to
filter virus affected emails i ran into the following error message in my log
file.
Aug 13 14:12:57 pcssrvd77 amavis[3668]: (03668-04) (!!)TROUBLE in
check_mail: virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED:
ClamAV-clamd av-scanner
FAILED: CODE(0x9c5e708) Too many retries to talk to
/var/spool/amavisd/clamd.sock (Can't connect to UNIX socket
/var/spool/amavisd/clamd.sock: No such file or directory) at (eval 45) line
310. at (eval 45) line 511.
Aug 13 14:12:57 pcssrvd77 amavis[3668]: (03668-04) (!)PRESERVING EVIDENCE in
/var/spool/amavisd/tmp/amavis-20070813T141250-03668
Aug 13 14:12:57 pcssrvd77 postfix/lmtp[5492]: 51869170081:
to=<[EMAIL PROTECTED]>,
relay=127.0.0.1[127.0.0.1]:10024, delay=7.1, delays=0.
03/0/0.01/7.1, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1]
said: 451 4.5.0 Error in processing, id=03668-04, virus_scan FAILED:
virus_scan: ALL VIRU
S SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: CODE(0x9c5e708) Too many
retries to talk to /var/spool/amavisd/clamd.sock (Can't connect to UNIX socket
/va
r/spool/amavisd/clamd.sock: No such file or directory) at (eval 45) line 310.
at (eval 45) line 511. (in reply to end of DATA command))
Does anyone know what to do?
I would appreciate any help on this topic ?
Kind regards
Carsten Laun-De Lellis
--
Carsten Laun-De Lellis
Dipl.-Ing. Elektrotechnik
Certified Information Systems Auditor (CISA)
Hauptstrasse 13
67705 Trippstadt
Germany
Phone:
+49 (0)6306 992140
Mobile:
+49 (0)1520 9889178
Fax:
+49 (0)6306 992142
Email :
[EMAIL PROTECTED]
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html