On Mon, Jul 09, 2007 at 08:08:12PM -0700, Thomas Spuhler wrote: > Any suggestion what needs to be uncommneted here: > > -------------------------- > > @av_scanners = ( > > # ### http://www.vanja.com/tools/sophie/ > # ['Sophie', > # \&ask_daemon, ["{}/\n", '/var/run/sophie'], > # qr/(?x)^ 0+ ( : | [\000\r\n]* $)/, qr/(?x)^ 1 ( : | [\000\r\n]* $)/, > # qr/(?x)^ [-+]? \d+ : (.*?) [\000\r\n]* $/ ], > > # ### http://www.csupomona.edu/~henson/www/projects/SAVI-Perl/ > # ['Sophos SAVI', \&sophos_savi ], > > ### http://www.clamav.net/ > ['Clam Antivirus-clamd', > \&ask_daemon, ["CONTSCAN {}\n", "/var/lib/clamav/clamd.socket"], > qr/\bOK$/, qr/\bFOUND$/, > qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], > # NOTE: run clamd under the same user as amavisd; match the socket > # name (LocalSocket) in clamav.conf to the socket name in this entry > # When running chrooted one may prefer: ["CONTSCAN {}\n","$MYHOME/clamd"], > --------------------------
That looks OK. Note that: The path given above "/var/lib/clamav.clamd.socket" must match the "LocalSocket" option value in clamd.conf. Also as others have mentioned, the user amavisd-new runs as must have access to that socket. Common methods to do this include a) defining the user for clamd with the clamd.conf "User" option, b) compile clamav using the --with-user= option so it matches amavisd-new by default, c) using "AllowSupplementaryGroups yes" in clamd.conf and adding the clamd user to the group amavisd runs as. -- Noel Jones _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html