From owner-freebsd-bugs Wed Aug 22 22:35:17 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by hub.freebsd.org (Postfix) with ESMTP id BBA8B37B40A; Wed, 22 Aug 2001 22:35:11 -0700 (PDT) (envelope-from andre.albsmeier@mchp.siemens.de) X-Envelope-Sender-Is: andre.albsmeier@mchp.siemens.de (at relayer david.siemens.de) Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by david.siemens.de (8.11.0/8.11.0) with ESMTP id f7N5Z4c21470; Thu, 23 Aug 2001 07:35:04 +0200 (MET DST) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail2.siemens.de (8.11.6/8.11.6) with ESMTP id f7N5Z3m21531; Thu, 23 Aug 2001 07:35:03 +0200 (MET DST) Received: (from localhost) by curry.mchp.siemens.de (8.11.6/8.11.6) id f7N5Z3L68302; Date: Thu, 23 Aug 2001 07:35:03 +0200 From: Andre Albsmeier To: Peter Wemm Cc: freebsd-bugs@FreeBSD.ORG, Ruslan Ermilov , Andre.Albsmeier@mchp.siemens.de Subject: Re: conf/29699: Setting NO_MAILWRAPPER results in a system without working MTA Message-ID: <20010823073503.A15122@curry.mchp.siemens.de> References: <200108152350.f7FNo2o26457@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200108152350.f7FNo2o26457@freefall.freebsd.org>; from peter@wemm.org on Wed, Aug 15, 2001 at 04:50:02PM -0700 X-Echelon: BND CIA NSA Mossad KGB MI6 IRA detonator nuclear assault strike Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ruslan, Peter, any chance of getting this (or something similar) into the tree before 4.4-RELEASE? Anything I can do to help? Thanks, -Andre On Wed, 15-Aug-2001 at 16:50:02 -0700, Peter Wemm wrote: > The following reply was made to PR conf/29699; it has been noted by GNATS. > > ... > > > The attached patch fixes this and the "old (potentially dangerous) setuid > > binary" problem, but in a different way. With NO_MAILWRAPPER, we should > > install sendmail(8) and friends into its canonical paths. > > This is even worse. If you have NO_SENDMAIL, then /usr/bin/newalises > is not installed at all. > > If you are going to persist in this line, then you can allow the sendmail > makefile to *also* install symlinks if NO_MAILWRAPPER is set. > > usr.sbin/sendmail/Makefile belongs to gshapiro now anyway. > > > Also, Peter, why did you drop the support for /usr/bin/hoststat and > > /usr/sbin/purgestat in sendmail/Makefile 1.14 -> mailwrapper/Makefile 1.1 > > change? > > Because they weren't generally useful and we dont install .cf files with it > active. Dont forget, purgestat and hoststat are aliases for > sendmail -bh (hoststat) and sendmail -bH (purgestat). > > Anyway, I'd prefer something like this: > > Index: Makefile > =================================================================== > RCS file: /home/ncvs/src/usr.sbin/mailwrapper/Makefile,v > retrieving revision 1.8 > diff -u -r1.8 Makefile > --- Makefile 2001/07/20 06:19:59 1.8 > +++ Makefile 2001/08/15 23:43:50 > @@ -1,19 +1,27 @@ > # $FreeBSD: src/usr.sbin/mailwrapper/Makefile,v 1.8 2001/07/20 06:19:59 obrien Exp $ > > +.if !defined(NO_MAILWRAPPER) > PROG= mailwrapper > MAN= mailwrapper.8 > > DPADD= ${LIBUTIL} > LDADD= -lutil > +.endif > > SYMLINKS= ${BINDIR}/mailwrapper /usr/sbin/sendmail \ > ${BINDIR}/mailwrapper /usr/bin/newaliases \ > ${BINDIR}/mailwrapper /usr/bin/mailq > > +.if defined(NO_MAILWRAPPER) && !defined(NO_SENDMAIL) > +SYMLINKS+= /usr/libexec/sendmail/sendmail ${BINDIR}/mailwrapper > +.endif > + > afterinstall: > +.if !defined(NO_MAILWRAPPER) > .if !exists(${DESTDIR}/etc/mail/mailer.conf) > ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \ > ${.CURDIR}/../../etc/mail/mailer.conf ${DESTDIR}/etc/mail > +.endif > .endif > > .include > > peter@daintree[4:43pm]~src/usr.sbin/mailwrapper-145> make -i install NO_MAILWRAPPER=yes > /usr/sbin/sendmail -> /usr/sbin/mailwrapper > /usr/bin/newaliases -> /usr/sbin/mailwrapper > /usr/bin/mailq -> /usr/sbin/mailwrapper > /usr/sbin/mailwrapper -> /usr/libexec/sendmail/sendmail > > And of course the corresponding change to usr.sbin/Makefile. > > Cheers, > -Peter > -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message