From owner-freebsd-questions@FreeBSD.ORG Thu Aug 4 07:47:07 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3C8716A41F for ; Thu, 4 Aug 2005 07:47:07 +0000 (GMT) (envelope-from dennyboy@cableone.net) Received: from S2.cableone.net (s2.cableone.net [24.116.0.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B3AD43D49 for ; Thu, 4 Aug 2005 07:47:06 +0000 (GMT) (envelope-from dennyboy@cableone.net) Received: from dualman.cableone.net (unverified [24.119.190.179]) by S2.cableone.net (CableOne SMTP Service S2) with ESMTP id 26450877 for multiple; Thu, 04 Aug 2005 01:41:35 -0700 Date: Thu, 4 Aug 2005 02:47:05 -0500 (CDT) From: Denny White To: Martin Welk In-Reply-To: <20050804064417.GA97899@theatre.sax.de> Message-ID: <20050804024124.B594@dualman.cableone.net> References: <20050803085535.N85321@dualman.cableone.net> <20050803211223.GB97146@theatre.sax.de> <20050803203002.B709@dualman.cableone.net> <20050804064417.GA97899@theatre.sax.de> X-GPG-PUBLIC_KEY: http://wwwkeys.nl.pgp.net X-GPG-FINGERPRINT: D0A9 AD44 1F10 E09E OE67 EC25 CB44 F2E5 1644 E79A MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-IP-stats: Incoming Last 1, First 80, in=55, out=0, spam=0 X-External-IP: 24.119.190.179 X-Abuse-Info: Send abuse complaints to abuse@cableone.net Cc: NKoch@demig.de, freebsd-questions@freebsd.org Subject: Re: antivir-milter question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2005 07:47:07 -0000 Today Martin Welk had this to say: > Good morning, > > on Wed, Aug 03, 2005 at 08:41:53PM -0500, Denny White wrote: > >> I had read where I needed to edit sendmail.mc but couldn't find >> it. Then read the equivalent mc file for freebsd I needed to edit >> was /etc/mail/freebsd.mc to which I added: >> >> INPUT_MAIL_FILTER( >> `antivir-milter', >> `S=unix:/var/spool/avmilter/avmilter.sock, F=T, T=S:10m;R:10m;E:10m' >> )dnl >> >> Then I did a `make install' to rebuild, what I thought, was >> sendmail.cf, but it's looking like I was way off beam. Here's >> what's in /var/mail/maillog: > (...) > > I looks like your avmilter never gets used. Please have a look at your > /etc/make.conf. This might include a line stating what sendmail mc file > to use for generating your individual sendmail.cf: > > SENDMAIL_MC=/etc/mail/theatre.sax.de.mc > > Than, the corresponding line in /etc/mail/theatre.sax.de.mc is: > > INPUT_MAIL_FILTER(`avmilter',`S=inet:3333@localhost,F=R,T=S:10m;R:10m;E:10m') > > This is exactly from the antivir-milter documentation, and the only thing I > did afterwards was > make > make install > make restart > Since than, it's just working. Of course, I've set up a start script in > /usr/local/etc/rc.d that enables avmilter at system startup. Do you > probably have some older version? Mine is using sockets, not a pipe. > > Does your avmilter listen on some port? (Mine is using default, 3333.) > > Regards, > Martin > > -- > ,,Oh, there's a lot of opportunities, if you're knowing to take them, > you know, there's a lot of opportunities, if there aren't > you can make them, make or break them!'' (Tennant/Lowe) > Okay, maybe the script avmilter.sh in /usr/local/etc/rc.d is the problem. If you issue the command in the MANUAL to use port 3333@localhost, it looks like this: avmilter -p inet:3333@localhost But, here's the relevant portion from the script: case "$1" in start) if [ -x /usr/local/sbin/avmilter ]; then umask 0077 /bin/rm -f /var/spool/avmilter/avmilter.sock /usr/sbin/daemon -f /usr/local/sbin/avmilter \ -P /usr/local/etc/avmilter \ -p local:/var/spool/avmilter/avmilter.sock & umask 0022 echo -n " avmilter" fi ;; stop) So, theres no mention of it there. This has really got me stumped! I checked /etc/make.conf & there's nothing there except some stuff I put for when I'm updating src & rebuilding. Nothing about sendmail. GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A