Thelv,

Do you still have the Clamd uncommented in the primary list?  This is the
error that I couldn't get around.  This is what I tried, maybe it will work
for you...

/etc/amavisd.conf

@av_scanners = (
# ### http://clamav.elektrapro.com/
 ['Clam Antivirus-clamd',
   \&ask_daemon, ["CONTSCAN {}\n", '/var/amavisd/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


Notice the /var/amavisd/clamd path.

/etc/clamav.conf

# LocalSocket /tmp/clamd
LocalSocket /var/amavisd/clamd
-snip-
# Run as selected user (clamd must be started by root).
# By default it doesn't drop privileges.
# User clamav
User amavisd

Changed the LocalSocket to match the location in the amavisd.conf file.
Also changed the user from clamav to amavisd.

But, this still didn't work for me, I started getting different errors.  So,
I gave up messing with it as it works fine when called from the "Backup"
scanners list...

Thanks,

Mark


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Friday, August 29, 2003 1:57 PM
To: [EMAIL PROTECTED]
Subject: Re: RE: RE: [Clamav-users] clam antivirus and spamassassin


ok..its me again.  Now I am getting this.  Any comments:

ug 29 14:46:54 mailr amavis[2141]: (02141-01) Clam Antivirus-clamd: Can't
connect to UNIX socket /usr/local/sbin/clamd: Connection refused, retrying
(2)
Aug 29 14:46:55 mailr amavis[2142]: (02142-01) Clam Antivirus-clamd: Can't
connect to UNIX socket /usr/local/sbin/clamd: Connection refused, retrying
(2)
Aug 29 14:47:00 mailr amavis[2141]: (02141-01) Clam Antivirus-clamd: Can't
connect to UNIX socket /usr/local/sbin/clamd: Connection refused, retrying
(3)
Aug 29 14:47:01 mailr amavis[2142]: (02142-01) Clam Antivirus-clamd: Can't
connect to UNIX socket /usr/local/sbin/clamd: Connectio

thelv

---
[This E-mail scanned for viruses by Declude Virus]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to