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.
This commit is contained in:
Peter Wemm 2001-03-13 05:53:16 +00:00
parent aeccfe991a
commit b2c774aff4
2 changed files with 21 additions and 10 deletions

View File

@ -304,8 +304,10 @@ lpd_program="/usr/sbin/lpd" # path to lpd, if you want a different one.
lpd_flags="" # Flags to lpd (if enabled).
usbd_enable="NO" # Run the usbd daemon.
usbd_flags="" # Flags to usbd (if enabled).
sendmail_enable="NO" # Run the sendmail daemon (YES/NO).
sendmail_flags="-bd -q30m" # Flags to sendmail (if enabled)
sendmail_enable="NO" # Run the sendmail inbound daemon (YES/NO).
sendmail_flags="-bd -q30m" # Flags to sendmail (as a server)
sendmail_outbound_enable="YES" # Dequeue stuck mail (YES/NO).
sendmail_outbound_flags="-q30m" # Flags to sendmail (outbound only)
dumpdev="NO" # Device name to crashdump to (or NO).
savecore_flags="" # Used if dumpdev is enabled above, and present.
enable_quotas="NO" # turn on quotas on startup (or NO).

25
etc/rc
View File

@ -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.