From owner-freebsd-current Thu Mar 28 7:39:31 2002 Delivered-To: freebsd-current@freebsd.org Received: from horsey.gshapiro.net (horsey.gshapiro.net [209.220.147.178]) by hub.freebsd.org (Postfix) with ESMTP id 2443837B417; Thu, 28 Mar 2002 07:39:25 -0800 (PST) Received: from horsey.gshapiro.net (gshapiro@localhost [IPv6:::1]) by horsey.gshapiro.net (8.12.3.Beta2/8.12.3.Beta2) with ESMTP id g2SFdOGd041623 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 28 Mar 2002 07:39:24 -0800 (PST) Received: (from gshapiro@localhost) by horsey.gshapiro.net (8.12.3.Beta2/8.12.3.Beta2/Submit) id g2SFdOj0041620; Thu, 28 Mar 2002 07:39:24 -0800 (PST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15523.14636.146301.834847@horsey.gshapiro.net> Date: Thu, 28 Mar 2002 07:39:24 -0800 From: Gregory Neil Shapiro To: freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: Another possible solution for non-sendmail users X-Mailer: VM 7.00 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Given that non-sendmail users will be inconvenienced when upgrading due to the 8.12 changes (need to change sendmail_enable from "NO" to "NONE"), I thought it might be better to give them something back for their trouble. As an alternative to sendmail_enable=NONE, why not solve the boot time problem for non-sendmail users completely. The patch moves all of the sendmail startup code from /etc/rc to /etc/rc.sendmail. The source for that script will be kept in src/etc/sendmail/rc.sendmail so make.conf's NO_SENDMAIL will prevent it from being installed. A new rc.conf variable, mta_start_script specifies the script to run to start the user's preferred MTA. For backward compatibility, it will default to /etc/rc.sendmail. The specified script is called out of /etc/rc after checking to make sure it exists. I've also taken the opportunity to use /etc/rc.sendmail in /etc/mail/Makefile to reduce code duplication. A new rc.sendmail.8 man page has also been added which now houses the sendmail_* variable descriptions formerly in rc.conf.5. In a somewhat unrelated note, I also plan on arranging to move the sendmail-specific stuff out of src/etc/mail/ and into src/etc/sendmail so the installation of things like sample sendmail maps, etc. don't clutter a NO_SENDMAIL installation. I'll need to arrange this event with the CVS repomeisters. Hopefully, this change (along with the patch) will make things more palatable for non-sendmail users. The patch is against -CURRENT but should give -STABLE users a good idea of my intentions. It is available at: http://people.freebsd.org/~gshapiro/mta-start Opinions? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message