diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2002-02-17 22:19:14 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2002-02-17 22:19:14 +0000 |
commit | f9b416a6c3a812faf3766993dfac38090a9b2376 (patch) | |
tree | e1035d9e7c83b22ffb393c2b81c85d750a93a6a2 /etc | |
parent | 0db14425f9c73f67ad0f23d0bd0bade3c0728e1b (diff) | |
download | FreeBSD-src-f9b416a6c3a812faf3766993dfac38090a9b2376.zip FreeBSD-src-f9b416a6c3a812faf3766993dfac38090a9b2376.tar.gz |
Add infrastructure for sendmail 8.12. If users are not starting a daemon
at boot (sendmail_enable=NO), a localhost-only daemon may started
(sendmail_submit_enable) as it is needed to accept mail from command line
submissions. If this isn't desired, see etc/mail/README for more hints.
Optionally (sendmail_msp_queue_enable) start a queue runner for the
submission queue in case a daemon isn't available to accept command line
submitted mail at submission time.
Note that the syslog labels for all of these sendmail processes have been
uniquified for easier log parsing.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/defaults/rc.conf | 10 | ||||
-rw-r--r-- | etc/rc | 17 |
2 files changed, 24 insertions, 3 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index 4444c5d..b9c0e3a 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -336,9 +336,15 @@ 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_flags="-bd -q30m" # Flags to sendmail (as a server) +sendmail_flags="-L sm-mta -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) +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 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. @@ -695,13 +695,28 @@ case ${sendmail_enable} in *) case ${sendmail_outbound_enable} in [Yy][Ee][Ss]) - echo -n ' sendmail' + echo -n ' sendmail-outbound' /usr/sbin/sendmail ${sendmail_outbound_flags} ;; esac + case ${sendmail_submit_enable} in + [Yy][Ee][Ss]) + echo -n ' sendmail-submit' + /usr/sbin/sendmail ${sendmail_submit_flags} + ;; + esac ;; esac +if [ -r /etc/mail/submit.cf ]; then + case ${sendmail_msp_queue_enable} in + [Yy][Ee][Ss]) + echo -n ' sendmail-clientmqueue' + /usr/sbin/sendmail ${sendmail_msp_queue_flags} + ;; + esac +fi + echo '.' # Recover vi editor files. |