summaryrefslogtreecommitdiffstats
path: root/etc/mail
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2001-11-20 03:31:54 +0000
committergshapiro <gshapiro@FreeBSD.org>2001-11-20 03:31:54 +0000
commit823ad9f7c7fd63b01291bf4bb698b9369600b49d (patch)
tree2868f8d9c21d5e10f7c13d31dd40a47d5be5fa93 /etc/mail
parentc069ca765da1cd21e0835a3fcf797b4a908015e0 (diff)
downloadFreeBSD-src-823ad9f7c7fd63b01291bf4bb698b9369600b49d.zip
FreeBSD-src-823ad9f7c7fd63b01291bf4bb698b9369600b49d.tar.gz
Handle the sendmail_outbound_enable knob in the start target.
PR: 32033 MFC after: 3 days
Diffstat (limited to 'etc/mail')
-rw-r--r--etc/mail/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/etc/mail/Makefile b/etc/mail/Makefile
index 3c9a88c..4ff4549 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:
OpenPOWER on IntegriCloud