From owner-freebsd-bugs Mon Oct 8 5:10:13 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E35EB37B407 for ; Mon, 8 Oct 2001 05:10:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f98CA1F74767; Mon, 8 Oct 2001 05:10:01 -0700 (PDT) (envelope-from gnats) Received: from tim1.hosting.flyingcroc.net (tim1.hosting.flyingcroc.net [207.246.157.196]) by hub.freebsd.org (Postfix) with ESMTP id 4F32837B406 for ; Mon, 8 Oct 2001 05:07:03 -0700 (PDT) Received: by tim1.hosting.flyingcroc.net (Postfix, from userid 0) id 4122813D55; Mon, 8 Oct 2001 05:06:28 -0700 (PDT) Message-Id: <20011008120628.4122813D55@tim1.hosting.flyingcroc.net> Date: Mon, 8 Oct 2001 05:06:28 -0700 (PDT) From: sean@chittenden.org Reply-To: sean-freebsd-gnats@chittenden.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: conf/31134: /etc/rc doesn't allow you to specify a different sendmail daemon 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 >Number: 31134 >Category: conf >Synopsis: /etc/rc doesn't allow you to specify a different sendmail daemon >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 08 05:10:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Sean Chittenden >Release: FreeBSD 4.4-RELEASE i386 >Organization: >Environment: System: FreeBSD tim1.hosting.flyingcroc.net 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Sep 18 11:57:08 PDT 2001 murray@builder.FreeBSD.org:/usr/src/sys/compile/GENERIC i386 >Description: I use the postfix mailer instead of sendmail and would like to continue to use sendmail -bd as the way of starting postfix. That said, /etc/rc and /etc/defaults/rc.conf need to be updated to include a sendmail_program variable. /etc/rc also relies on /etc/mail/sendmail.cf to be present for sendmail to be enabled: this is not true for postfix and has been disabled. >How-To-Repeat: >Fix: --- /etc/defaults/rc.conf.orig Mon Oct 8 05:01:03 2001 +++ /etc/defaults/rc.conf Mon Oct 8 05:02:04 2001 @@ -322,6 +322,7 @@ usbd_flags="" # Flags to usbd (if enabled). sendmail_enable="YES" # Run the sendmail inbound daemon (or NO). sendmail_flags="-bd -q30m" # Flags to sendmail (as a server) +sendmail_program="/usr/sbin/sendmail" # Which sendmail executable to run (if enabled). sendmail_outbound_enable="NO" # Dequeue stuck mail (or YES). sendmail_outbound_flags="-q30m" # Flags to sendmail (outbound only) dumpdev="NO" # Device name to crashdump to (or NO). --- /etc/rc Mon Oct 8 05:04:08 2001 +++ /etc/rc.orig Mon Oct 8 05:00:20 2001 @@ -516,20 +516,22 @@ ;; esac -case ${sendmail_enable} in -[Yy][Ee][Ss]) - echo -n ' sendmail' - ${sendmail_program} ${sendmail_flags} - ;; -*) - case ${sendmail_outbound_enable} in +if [ -r /etc/mail/sendmail.cf ]; then + case ${sendmail_enable} in [Yy][Ee][Ss]) echo -n ' sendmail' - ${sendmail_program} ${sendmail_outbound_flags} + /usr/sbin/sendmail ${sendmail_flags} + ;; + *) + case ${sendmail_outbound_enable} in + [Yy][Ee][Ss]) + echo -n ' sendmail' + /usr/sbin/sendmail ${sendmail_outbound_flags} + ;; + esac ;; esac - ;; -esac +fi echo '.' >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message