Date: Thu, 11 Mar 2004 14:05:17 -0600 (CST) From: Eduardo Viruena Silva <mrspock@esfm.ipn.mx> To: "Jonathan T. Sage" <sagejona@theatre.msu.edu> Cc: freebsd-questions@freebsd.org Subject: Re: ClamAV 0.67, SendMail, FreeBSD 5.2.1-RELEASE-p1 Message-ID: <20040311135830.H34406@Gina.esfm.ipn.mx> In-Reply-To: <4050AFBE.5040700@theatre.msu.edu> References: <20040311030414.D951@Gina.esfm.ipn.mx> <20040311073017.7d7e40f1.ebudd@grokking.org> <4050AFBE.5040700@theatre.msu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 11 Mar 2004, Jonathan T. Sage wrote: > > > Ed Budd wrote: > > On Thu, 11 Mar 2004 03:52:18 -0600 (CST) > > Eduardo Viruena Silva <mrspock@esfm.ipn.mx> wrote: > > > >>1. Compile the port: > >> cd /usr/ports/security/clamav > >> make WITH_MILTER=yes install > >> ---- > >> there is a problem with this port: > >> it does not compile, the line 384 of > >> /usr/ports/security/clamav/work/clamav-0.67/clamav-milter/clama > >> v-milter.c has a problem, it requires to include > >> "malloc.h" which is obsolete and is reduced > >> to issue a error message saying "stdlib.h > >> must be included instead. > >> I changed this line to include "stdlib.h" > >> and make the port again. It installed it. > >> --- > > > > Don't know why you'd have to do this. I've got similar combo > > (FBSD 5.2.1,sendmail, clamav, clamav-milter) to you and never had to do > > anything like this. Maybe you cvsup'ed at a bad time or your ports tree > > needs cleaning/updating??. > > > I can verify this as happening. Tried 2 nights ago, however > clamav-devel works fine. (-current) Thanks Jonathan. My ports are ok, Ed. > > > >>3. Modify /etc/rc.conf: > >> clamav_clamd_enable="YES" > >> clamav_clamd_socket="/var/run/clamav/clamd.sock" > >> clamav_freshclam_enable="YES" > >> clamav_milter_enable="YES" > >> clamav_milter_socket="/var/run/clamav/clamd.sock" > >> > > > > > > > > This is the same as mine except I don't include the socket path in > > rc.conf. I don't think you need to unless you're putting it in a > > non-default location (which yours is). Also, you've got two entries here > > for the same socket file. I don't think this is correct. On > > my system, clamav-milter uses/var/run/clamav/clmilter.sock and it's > > created via the sendmail config - not through rc.conf. Try taking that > > last line out and trying again. > > > > bingo. clamd and clamav-milter do NOT use the same socket. > clamav-milter needs to make it's own which sendmail talks to, then it in > turn talks to clamd. Thanks again, Jonathan & Ed. That explains the problem. It works fine, now. > > > > > >>---- > >>INPUT_MAIL_FILTER(`spamassassin', > >>`S=local:/var/run/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m') > >>define(`confMILTER_LOG_LEVEL', 7) > >> > >>INPUT_MAIL_FILTER(`clamav',`S=local:/var/run/clamav/clamd.sock, F=, > >>T=S:4m;R:4m')dnl > >>define(`confINPUT_MAIL_FILTERS',`spamassassin,clamav')---- > >> > > you're gonna run into trouble here mostly because you are trying to > connect to the clamd socket when you *should* be connecting to the > clamav-milter socket. (two different sockets, per above) > > > hope this helps, let me know if ya need any more pointers. > > FWIW - set both these up 2 days ago, and damn are they cool :) > Yes, spamassassin has no mercy, Thanks to all gods! and now clamav is filtering all the windows fauna. Thank you guys! > ~j > > > -- > "Yesterday upon the stair I saw a man > who wasn't there, he wasn't there > again today, oh how i wish he'd go away" > > Rev. Jonathan T. Sage > Lighting / Set Designer > Professional Web Design > > [HTTP://theatre.msu.edu] > [sagejona@theatre.msu.edu] > [See Headers for Contact Info] > - ______ _ * / /###\ / \ __ /\ /\ * / ./#### \ * \__|_/ | | / \/ \ | b#####| * _ | __ | | __ = .. \____ \ \_\#####/ / \| / \ | | /\_\/ = \_| * \___\###/ * \_/\_/\__/\__\/_/\__/ = \______/ _ | |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040311135830.H34406>