On Fri, May 23, 2003 at 10:27:35AM +0200, Thomas Lamy wrote:Yes, that should work. Just double check that the amavis user has read/write access to the socket.
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).
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$/ ],
Because of the &ask_daemon, which will try to connect to a socket (UNIX or INET).
How does it know that /var/amavis/clamd.socket is a file socket rather than a program that it is trying to start?
Thomas
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]