Ed Budd wrote:
On Thu, 11 Mar 2004 03:52:18 -0600 (CST) Eduardo Viruena Silva <[EMAIL PROTECTED]> 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 :)
-- "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] [EMAIL PROTECTED] [See Headers for Contact Info]
Description: PGP signature