From owner-freebsd-bugs Tue Sep 22 19:40:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA04578 for freebsd-bugs-outgoing; Tue, 22 Sep 1998 19:40:09 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA04516 for ; Tue, 22 Sep 1998 19:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id TAA28791; Tue, 22 Sep 1998 19:40:01 -0700 (PDT) Received: from kendra.ne.mediaone.net (kendra.ne.mediaone.net [24.128.94.182]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA02558 for ; Tue, 22 Sep 1998 19:32:41 -0700 (PDT) (envelope-from ahd@kew.com) Received: (from ahd@localhost) by kendra.ne.mediaone.net (8.9.1/8.9.1) id VAA00547; Tue, 22 Sep 1998 21:44:40 -0400 (EDT) Message-Id: <199809230144.VAA00547@kendra.ne.mediaone.net> Date: Tue, 22 Sep 1998 21:44:40 -0400 (EDT) From: software@kew.com Reply-To: software@kew.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: conf/8031: /etc/rc looks for /etc/sendmail.cf at startup Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8031 >Category: conf >Synopsis: /etc/rc looks for /etc/sendmail.cf at startup >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Sep 22 19:40:01 PDT 1998 >Last-Modified: >Originator: Drew Derbyshire >Organization: Kendra Electronic Wonderworks >Release: FreeBSD 2.2.7-RELEASE i386 >Environment: standard FreeBSD 2.2.7 but with sendmail 8.9.1 installed with "new" location for sendmail.cf of /etc/mail >Description: As pointed out in the sendmail 8.9.x documentation, sendmail's configuration files are moving over the course of the next few releases to /etc/mail. FreeBSD will lag this, of course, but there is no reason to actively break such a configuration of advanced releases. Futhermore, if the system admin somehow deletes the file and expects the rc.conf enablement of sendmail to handle the details, no error message is issued if the file is missing -- sendmail just doesn't start. >How-To-Repeat: Install sendmail with sendmail.cf in /etc/mail (must patch source). Delete /etc/sendmail.cf. Reboot. >Fix: Delete the redundant check with the following patch. Note that if the file *is* missing and needed, sendmail prints out a (useful) nasty message about its missing file *** rc Tue Sep 22 20:18:46 1998 --- rc.old Tue Sep 22 20:18:32 1998 *************** *** 250,256 **** echo -n ' printer'; lpd ${lpd_flags} fi ! if [ "X${sendmail_enable}" = X"YES" ]; then echo -n ' sendmail'; /usr/sbin/sendmail ${sendmail_flags} fi --- 250,256 ---- echo -n ' printer'; lpd ${lpd_flags} fi ! if [ "X${sendmail_enable}" = X"YES" -a -r /etc/sendmail.cf ]; then echo -n ' sendmail'; /usr/sbin/sendmail ${sendmail_flags} fi >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message