summaryrefslogtreecommitdiffstats
path: root/etc/defaults
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2002-03-28 03:29:22 +0000
committergshapiro <gshapiro@FreeBSD.org>2002-03-28 03:29:22 +0000
commitcdfdb8738b09b4df46928d752fd71e5c3de88f1a (patch)
tree77a941acc46b72c62fccb43d2f7e9f42bb8def18 /etc/defaults
parentd6e11fba687af94af47813e31bb9871a9ebc3eea (diff)
downloadFreeBSD-src-cdfdb8738b09b4df46928d752fd71e5c3de88f1a.zip
FreeBSD-src-cdfdb8738b09b4df46928d752fd71e5c3de88f1a.tar.gz
Provide a way for users to completely prevent sendmail from trying to start
at boot time. Instead of rc.conf's sendmail_enable only accepting YES or NO, it can now also accept NONE. If set to NONE, none of the other sendmail related startup items will be done. Remove an extra queue running daemon might be started that wasn't necessary (it didn't hurt anything but it wasn't needed). The new logic is: # MTA if ${sendmail_enable} == NONE # Do nothing else if ${sendmail_enable} == YES start sendmail with ${sendmail_flags} else if ${sendmail_submit_enable} == YES start sendmail with ${sendmail_submit_flags} else if ${sendmail_outbound_enable} == YES start sendmail with ${sendmail_outbound_flags} endif # MSP Queue Runner if ${sendmail_enable} != NONE && [ -r /etc/mail/submit.cf] && ${sendmail_msp_queue_enable} == YES start sendmail with ${sendmail_msp_queue_flags} endif Discussed with: Thomas Quinot <Thomas.Quinot@Cuivre.FR.EU.ORG>, Christopher Schulte <schulte+freebsd@nospam.schulte.org> MFC after: 1 week
Diffstat (limited to 'etc/defaults')
-rw-r--r--etc/defaults/rc.conf11
1 files changed, 6 insertions, 5 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index e8847f9..32bf9b3 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -335,16 +335,17 @@ 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 inbound daemon (YES/NO).
+sendmail_enable="NO" # Run the sendmail inbound daemon (YES/NO/NONE).
+ # If NONE, don't start any sendmail processes.
sendmail_flags="-L sm-mta -bd -q30m" # Flags to sendmail (as a server)
+sendmail_submit_enable="YES" # Start a localhost-only MTA for mail submission
+sendmail_submit_flags="-L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost"
+ # Flags for localhost-only MTA
sendmail_outbound_enable="YES" # Dequeue stuck mail (YES/NO).
sendmail_outbound_flags="-L sm-queue -q30m" # Flags to sendmail (outbound only)
sendmail_msp_queue_enable="YES" # Dequeue stuck clientmqueue mail (YES/NO).
sendmail_msp_queue_flags="-L sm-msp-queue -Ac -q30m"
- # Dequeue stuck clientmqueue mail (YES/NO).
-sendmail_submit_enable="YES" # Start a localhost-only MTA for mail submission
-sendmail_submit_flags="-L sm-mta-submit -bd -q30m -ODaemonPortOptions=Addr=localhost"
- # Flags for localhost-only MTA
+ # Flags for sendmail_msp_queue daemon.
dumpdev="NO" # Device name to crashdump to (or NO).
dumpdir="/var/crash" # Directory where crash dumps are to be stored
savecore_flags="" # Used if dumpdev is enabled above, and present.
OpenPOWER on IntegriCloud