From owner-freebsd-bugs Sun Apr 12 21:20:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA27707 for freebsd-bugs-outgoing; Sun, 12 Apr 1998 21:20:08 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA27701; Sun, 12 Apr 1998 21:20:03 -0700 (PDT) (envelope-from gnats) Received: from alembic.isegoria.com (ppp0a008.std.com [208.192.100.8]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id VAA26946 for ; Sun, 12 Apr 1998 21:13:48 -0700 (PDT) (envelope-from aecolley@world.std.com) Received: from aecolley by alembic.isegoria.com with local (Exim 1.82 #1) id 0yOaab-0000ul-00; Mon, 13 Apr 1998 00:11:25 -0400 Message-Id: Date: Mon, 13 Apr 1998 00:11:25 -0400 From: aecolley@world.std.com Reply-To: aecolley@world.std.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: conf/6284: Can't disable sendmail in favour of exim Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 6284 >Category: conf >Synopsis: Can't disable sendmail in favour of exim >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Apr 12 21:20:02 PDT 1998 >Last-Modified: >Originator: Adrian Colley >Organization: Sun Microsystems, Inc. >Release: FreeBSD 2.2.6-STABLE i386 >Environment: Exim: I've installed the mail/exim port and overwritten /usr/sbin/{sendmail,purgestat} and /usr/bin/{mailq,hoststat,newaliases} with symlinks to /usr/local/sbin/exim. DNS: The machine name is `alembic.isegoria.com', which isn't yet registered. Mail: Exim is configured to recognise `isegoria.com' as local; fetchmail is used to grab mail from aecolley@world.std.com and redirect it to aecolley@isegoria.com via localhost. (Works fine.) >Description: I cvsupped and made world and rebooted. After a few hours, I discovered that sendmail (the real sendmail) was running. Duh; I forgot to nuke it again after the make world, so my symlinks to exim had been replaced by a newly-compiled sendmail. Of course, sendmail isn't configured to know about isegoria.com. It is, however, smart enough to know how to send bounce messages and drop all other mail. An option, NO_SENDMAIL, in /etc/make.conf is probably in order. Patch file attached. Please to commit. Thank you. Some related comments: /etc/rc starts /usr/sbin/sendmail by name instead of making it an rc.conf-variable Too many mail-sending things have "sendmail" hardcoded in them (such as, er, send-pr), so the symlink is necessary. I removed /etc/sendmail.cf, but of course it's another thing installed by make world, so it will be back. Please accept my apologies-in-advance if I've sorely abused send-pr or any of its fields. >How-To-Repeat: Install something to replace sendmail; configure it; make world; reboot. Watch sendmail come back to life like a nethack troll. Sendmail bites. Sendmail bites! Your scrolls of mail crumble to dust. --More-- >Fix: Patch generated with CVSROOT=/home/ncvs cvs diff -u \ src/etc/make.conf src/usr.sbin/Makefile : Index: src/etc/make.conf =================================================================== RCS file: /home/ncvs/src/etc/make.conf,v retrieving revision 1.37.2.13 diff -u -r1.37.2.13 make.conf --- make.conf 1998/04/01 21:09:31 1.37.2.13 +++ make.conf 1998/04/13 03:18:57 @@ -187,3 +187,9 @@ # /etc/passwd. The default number is 20011. # #TOP_TABLE_SIZE= 101 + +# +# If you use an alternative mailer such as qmail or exim, you may want +# to define this to avoid compiling and installing sendmail. +#NO_SENDMAIL= true + Index: src/usr.sbin/Makefile =================================================================== RCS file: /home/ncvs/src/usr.sbin/Makefile,v retrieving revision 1.98.2.7 diff -u -r1.98.2.7 Makefile --- Makefile 1998/01/21 06:03:59 1.98.2.7 +++ Makefile 1998/04/13 02:57:38 @@ -9,10 +9,14 @@ newsyslog nslookup pccard pciconf pcvt pkg_install pnpinfo portmap \ ppp pppctl pppd pppstats pstat pw pwd_mkdb quot quotaon rarpd \ repquota rmt rndcontrol rpc.lockd rpc.statd rpc.yppasswdd rpc.ypxfrd \ - rwhod sa sendmail sliplogin slstat \ + rwhod sa sliplogin slstat \ spray sysctl syslogd tcpdump timed traceroute trpt tzsetup vipw \ vnconfig watch wlconfig wormcontrol xntpd xten ypbind yp_mkdb \ yppoll yppush ypset ypserv zic + +.if !defined(NO_SENDMAIL) +SUBDIR+= sendmail +.endif SUBDIR+=IPXrouted >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message