Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 2004 13:28:14 -0500
From:      "Jonathan T. Sage" <sagejona@theatre.msu.edu>
To:        Ed Budd <ebudd@grokking.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ClamAV 0.67,  SendMail, FreeBSD 5.2.1-RELEASE-p1
Message-ID:  <4050AFBE.5040700@theatre.msu.edu>
In-Reply-To: <20040311073017.7d7e40f1.ebudd@grokking.org>
References:  <20040311030414.D951@Gina.esfm.ipn.mx> <20040311073017.7d7e40f1.ebudd@grokking.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig79D0F7F1E4D843205CA28E85
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit



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)


>>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.

> 

>>----
>>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 :)

~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]

--------------enig79D0F7F1E4D843205CA28E85
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAUK/CoVmW2UUup/ERAkz6AJsGAFX9kfVWyeOyiUmdlRHaOB2TXwCaAl1b
LkxtnUwGvQorJh0oz8k3yk8=
=Sh7Y
-----END PGP SIGNATURE-----

--------------enig79D0F7F1E4D843205CA28E85--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4050AFBE.5040700>