> Date: Tue, 12 Aug 2008 15:23:10 -0400> From: [EMAIL PROTECTED]> To: [EMAIL 
> PROTECTED]> CC: clamav-users@lists.clamav.net> Subject: Re: [Clamav-users] 
> Clamav Config Debian Help> > Chuck Swiger wrote:> > Your config looks to be 
> about the smallest valid config, but there might > > be a bigger one with 
> comment'ed out examples called amavisd.conf-dist or > > amavisd.conf-sample 
> floating around somewhere. Of course, I am working > > under the assumption 
> that you are using amavisd-new (as in > > 
> http://www.ijs.si/software/amavisd/, and not the older one).> > > > I will 
> check for a more detailed config however Debian has multiple > amavisd-new 
> config files rather than /etc/amavis.conf. I checked to make > sure and I am 
> fairly certain I have amavisd-new rather than the older > version according 
> to my distributions package manager:> > email:/# apt-cache policy 
> amavisd-new> amavisd-new:> Installed: 1:2.4.2-6.1> Candidate: 1:2.4.2-6.1> 
> Version table:> *** 1:2.4.2-6.1 0> 500 http://ftp.us.debian.org etch/main 
> Packages> 100 /var/lib/dpkg/status> > > You'd need a complete entry like:> > 
> > > @av_scanners = (> > # ### http://www.clamav.net/> > ['ClamAV-clamd',> > 
> \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"],> > qr/\bOK$/, 
> qr/\bFOUND$/,> > qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ]> > );> > > > > > 
> OK - I will append that to my config. I assume it can go at the very > bottom 
> or it does not matter.> > > OK; in that case, I believe you'd want to enable 
> the > > AllowSupplementaryGroups option in clamd.conf, and add clamav to the 
> > > amavis group.> > > > Regards,> > Here are my groups on my system:> > 
> amavis:x:107:> clamav:x:108:> > So you suggest I run the following once I 
> enable "AllowSupplementaryGroups"?> > usermod -g 108 -G 107 clamav
 
On Debian you could do :
gpasswd -a clamav amavis
This adds the clamav user to the amavis group
 
Look in 
/etc/amavis/conf.d/15-av_scanners
 
You will see clamd is already configured:
 
 ### http://www.clamav.net/['ClamAV-clamd',   \&ask_daemon, ["CONTSCAN {}\n", 
"/var/run/clamav/clamd.ctl"],   qr/\bOK$/, qr/\bFOUND$/,   qr/^.*?: (?!Infected 
Archive)(.*) FOUND$/ ],# NOTE: remember to add the clamav user to the amavis 
group, and# to properly set clamd to init supplementary groups# When running 
chrooted one may prefer: ["CONTSCAN {}\n","$MYHOME/clamd"],
 
All you should need to do now is enable virus scanning. It is disabled by 
default. Read the instructions in /etc/amavis/conf.d/15-content_filter_mode, 
then reload amavisd-new.
 
Gary V
_________________________________________________________________
Get Windows Live and get whatever you need, wherever you are.  Start here.
http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home_082008
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to