From 74cc11c2df9f0a28ce91873debb8041e2e3c2a24 Mon Sep 17 00:00:00 2001 From: Gregory Neil Shapiro Date: Tue, 20 Nov 2001 03:31:54 +0000 Subject: [PATCH] Handle the sendmail_outbound_enable knob in the start target. PR: 32033 MFC after: 3 days --- etc/mail/Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/etc/mail/Makefile b/etc/mail/Makefile index 3c9a88c30f89..4ff4549a998f 100644 --- a/etc/mail/Makefile +++ b/etc/mail/Makefile @@ -157,10 +157,18 @@ install: ${INSTALL_CF} 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: