On Fri, May 23, 2003 at 10:27:35AM +0200, Thomas Lamy wrote:
> ODHIAMBO Washington wrote:
> >* clamav <[EMAIL PROTECTED]> [20030523 01:10]: wrote:
> >
> >>Does anyone know how to setup amavisd-new with clamd? More specifically,
> >>I would like amavisd to talk to clamd (currently running) through the
> >>local file socket that I have setup in clamd.conf.
> >>
> >>If this is possible, please advise on how. Thank you.
> >
> >
> >Chris Hastie posted something about this in the amavis lists. I am not
> >sure which one since I don't use Amavis, but google should know.
> >
> >
> >-Wash
> >
> There are (at least in debian) filed bugs on this. I used to get around 
> it by chmod'ing the clamd socket (in the clamav-daemon and amavis 
> startup scripts) to give the user amavis rw access to it.
> Be sure to set the correct path in /etc/amavis/amavisd.conf, in my 
> config file it's around line 1070 (search for clamd).

This is what I have in my amavisd.conf with regards to clamd:

 ['Clam Antivirus-clamd',
   \&ask_daemon, ["CONTSCAN {}\n", '/var/amavis/clamd'],
   qr/\bOK$/, qr/\bFOUND$/,
   qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],


Since I currently have clamd listening on /var/amavis/clamd.socket, can
I simply change the above to say:

 ['Clam Antivirus-clamd',
   \&ask_daemon, ["CONTSCAN {}\n", '/var/amavis/clamd.socket'],
   qr/\bOK$/, qr/\bFOUND$/,
   qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],


How does it know that /var/amavis/clamd.socket is a file socket rather
than a program that it is trying to start?

Thank you for helping on this. I will search the debian lists for the
above mentioned posts.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to