summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-03-13 05:53:16 +0000
committerpeter <peter@FreeBSD.org>2001-03-13 05:53:16 +0000
commit3973aeb5ebaa6d704ef80ff1f91e85eb9d36b6c5 (patch)
tree9e79b41aa8c739617d49708d1422ceaa392faec9 /etc/rc
parent95047bd0c5543dcbd3f9b9d3834ac449043c8e82 (diff)
downloadFreeBSD-src-3973aeb5ebaa6d704ef80ff1f91e85eb9d36b6c5.zip
FreeBSD-src-3973aeb5ebaa6d704ef80ff1f91e85eb9d36b6c5.tar.gz
At great personal risk, touch the sendmail startup again. This adds easy
seperate knobs for inbound (accepting SMTP connections) and outbound (just occasionally dequeueing) sendmail daemon startup.
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc25
1 files changed, 17 insertions, 8 deletions
diff --git a/etc/rc b/etc/rc
index 843e1ae..3b8440f 100644
--- a/etc/rc
+++ b/etc/rc
@@ -591,14 +591,6 @@ case ${lpd_enable} in
;;
esac
-case ${sendmail_enable} in
-[Yy][Ee][Ss])
- if [ -r /etc/mail/sendmail.cf ]; then
- echo -n ' sendmail'; /usr/sbin/sendmail ${sendmail_flags}
- fi
- ;;
-esac
-
case ${sshd_enable} in
[Yy][Ee][Ss])
if [ -x ${sshd_program:-/usr/sbin/sshd} ]; then
@@ -614,6 +606,23 @@ case ${usbd_enable} in
;;
esac
+if [ -r /etc/mail/sendmail.cf ]; then
+ case ${sendmail_enable} in
+ [Yy][Ee][Ss])
+ echo -n ' sendmail'
+ /usr/sbin/sendmail ${sendmail_flags}
+ ;;
+ *)
+ case ${sendmail_outbound_enable} in
+ [Yy][Ee][Ss])
+ echo -n ' sendmail'
+ /usr/sbin/sendmail ${sendmail_outbound_flags}
+ ;;
+ esac
+ ;;
+ esac
+fi
+
echo '.'
# Recover vi editor files.
OpenPOWER on IntegriCloud