Bug 32033

Summary: /etc/mail/Makefile should cater for sendmail_outbound_enable="YES"
Product: Base System Reporter: send-pr <send-pr>
Component: binAssignee: Gregory Neil Shapiro <gshapiro>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   

Description send-pr 2001-11-16 06:30:01 UTC
Currently,

	(cd /etc/mail; make start)

will only look at /etc/rc.conf's sendmail_enable environment
variable when starting sendmail. It should also consider
sendmail_outbound_enable to start a non-listening sendmail.

Fix: 

Well. This is a straightforward addition to the Makefile... If a patch
is required I'll be happy to provide it.
Comment 1 Crist J. Clark freebsd_committer freebsd_triage 2001-11-17 22:34:37 UTC
Responsible Changed
From-To: freebsd-bugs->gshapiro

Over to FreeBSD's Mr. Sendmail.
Comment 2 Gregory Neil Shapiro freebsd_committer freebsd_triage 2001-11-19 04:40:01 UTC
Let me know if this patch fixes it for you:

--- /etc/mail/Makefile	Tue Oct 16 21:18:45 2001
+++ /etc/mail/Makefile	Sun Nov 18 16:59:29 2001
@@ -157,10 +157,18 @@
 
 start:
 	(. /etc/defaults/rc.conf; source_rc_confs; \
-	   if [ "$${sendmail_enable}" = "YES" -a -r /etc/mail/sendmail.cf ];\
-	   then \
-	     ${SENDMAIL} $${sendmail_flags}; \
-	   fi \
+	case "$${sendmail_enable}" in \
+	[Yy][Ee][Ss]) \
+		/usr/sbin/sendmail $${sendmail_flags} \
+		;; \
+	*) \
+		case "$${sendmail_outbound_enable}" in \
+		[Yy][Ee][Ss]) \
+			/usr/sbin/sendmail $${sendmail_outbound_flags} \
+			;; \
+		esac \
+		;; \
+	esac \
 	)
 
 stop:
Comment 3 send-pr 2001-11-19 09:35:53 UTC
Gregory Neil Shapiro:
> Let me know if this patch fixes it for you:

Perfectly! Please MFC as well.

Helge
Comment 4 Gregory Neil Shapiro freebsd_committer freebsd_triage 2001-11-20 03:31:59 UTC
State Changed
From-To: open->feedback

The fix has been committed to the HEAD.  It will be MFC'ed in 3 days, at 
which point this PR will be closed.
Comment 5 Gregory Neil Shapiro freebsd_committer freebsd_triage 2001-12-10 19:34:26 UTC
State Changed
From-To: feedback->closed

The change was MFC'ed