[CentOS] Clamd and Amavis

Mon Apr 13 16:58:59 UTC 2009
Anne Wilson <cannewilson at googlemail.com>

On Monday 13 April 2009 13:02:55 Ned Slider wrote:
> Anne Wilson wrote:
> > I'm trying to get amavis  to play using clamd and tried to follow this:
> >
> > # ### http://www.clamav.net/
> > ['ClamAV-clamd',
> >    \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"],
> >    qr/\bOK$/, qr/\bFOUND$/,
> >    qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
> > # # NOTE: run clamd under the same user as amavisd, or run it under its
> > own # #   uid such as clamav, add user clamav to the amavis group, and
> > then add # #   AllowSupplementaryGroups to clamd.conf;
> > # # NOTE: match socket name (LocalSocket) in clamav.conf to the socket
> > name in # #   this entry; when running chrooted one may prefer socket
> > "$MYHOME/clamd".
> >
> > # ### http://www.clamav.net/ and CPAN  (memory-hungry! clamd is
> > preferred) # # note that Mail::ClamAV requires perl to be build with
> > threading! # ['Mail::ClamAV', \&ask_clamav, "*", [0], [1], qr/^INFECTED:
> > (.+)/],
> >
> > I came unstuck with the instruction regarding the LocalSocket.  If I
> > change that in clamd.conf to $MYHOME/amavisd.sock or $MYHOME/clamd the
> > clamd service won't start, saying the socket doesn't exist.
> >
> > What am I doing wrong?
> >
> > Anne
>
> Check the settings match in both /etc/amavisd.conf AND /etc/clamd.conf
> (eg, /var/run/clamav/clamd). IIRC they are different by default so you
> must change one of them.
>
> Also, in /etc/clamd.conf make sure you've commented out TCPSocket if
> you're using a local UNIX socket.
>
OK, done all that.  We'll see what logwatch reports tomorrow.

> For reference:
>
> http://wiki.centos.org/HowTos/Amavisd
>
I'd looked for configuration help on the web and found some, but found them 
difficult to understand.  This one looks much more useful, thanks.

Anne
-- 
New to KDE4? - get help from http://userbase.kde.org
Just found a cool new feature?  Add it to UserBase
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.centos.org/pipermail/centos/attachments/20090413/13603798/attachment-0005.sig>