Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  8 Oct 2001 05:06:28 -0700 (PDT)
From:      sean@chittenden.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   conf/31134: /etc/rc doesn't allow you to specify a different sendmail daemon
Message-ID:  <20011008120628.4122813D55@tim1.hosting.flyingcroc.net>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011008120628.4122813D55>