3 .\" Copyright (c) 2002 The FreeBSD Project
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 .\" $FreeBSD: src/share/man/man8/rc.sendmail.8,v 1.1.2.2 2002/05/22 17:01:33 gshapiro Exp $
28 .\" $DragonFly: src/share/man/man8/rc.sendmail.8,v 1.4 2008/05/02 02:05:06 swildner Exp $
47 specific and not a generic script for all MTAs.
54 .Pa /etc/rc.sendmail .
58 script can take an optional argument specifying the action to
60 The available actions are:
61 .Bl -tag -width ".Cm restart-mspq"
63 Starts both the MTA and the MSP queue runner.
65 Stops both the MTA and the MSP queue runner.
67 Restarts both the MTA and the MSP queue runner.
73 Restarts just the MTA.
75 Starts just the MSP queue runner.
77 Stops just the MSP queue runner.
79 Restarts just the MSP queue runner.
82 If no action is specified,
88 script is also used by
89 .Pa /etc/mail/Makefile
97 The following variables affect the behavior of
100 .Pa /etc/defaults/rc.conf
101 and can be changed in
103 .Bl -tag -width indent
104 .It Va sendmail_enable
110 daemon at system boot time.
115 daemon to listen for incoming network mail.
116 This does not preclude a
118 daemon listening on the SMTP port of the loopback interface.
121 option is deprecated and should not be used.
122 It will be removed in a future release.
123 .It Va sendmail_flags
129 these are the flags to pass to the
132 .It Va sendmail_submit_enable
143 .Va sendmail_submit_flags
146 This is intended to allow local mail submission via
147 a localhost-only listening SMTP service required for running
149 as a non-set-user-ID binary.
150 Note that this does not work inside
152 systems, as jails do not allow binding to just the localhost interface.
153 .It Va sendmail_submit_flags
160 .Va sendmail_submit_enable
163 these are the flags to pass to the
166 .It Va sendmail_outbound_enable
173 .Va sendmail_submit_enable
179 .Va sendmail_outbound_flags
182 This is intended to allow local mail queue management
183 for systems that do not offer a listening SMTP service.
184 .It Va sendmail_outbound_flags
189 .Va sendmail_submit_enable
193 .Va sendmail_outbound_enable
196 these are the flags to pass to the
199 .It Va sendmail_msp_queue_enable
203 start a client (MSP) queue runner
205 daemon at system boot time.
206 As of sendmail 8.12, a separate queue is used for command line
208 The client queue runner ensures that nothing is
209 left behind in the submission queue.
210 .It Va sendmail_msp_queue_flags
213 .Va sendmail_msp_queue_enable
216 these are the flags to pass to the
221 These variables are used to determine how the
224 .Bd -literal -offset indent
226 if (${sendmail_enable} == NONE)
228 else if (${sendmail_enable} == YES)
229 start sendmail with ${sendmail_flags}
230 else if (${sendmail_submit_enable} == YES)
231 start sendmail with ${sendmail_submit_flags}
232 else if (${sendmail_outbound_enable} == YES)
233 start sendmail with ${sendmail_outbound_flags}
237 if (${sendmail_enable} != NONE &&
238 [ -r /etc/mail/submit.cf] &&
239 ${sendmail_msp_queue_enable} == YES)
240 start sendmail with ${sendmail_msp_queue_flags}
244 To completely prevent any
246 daemons from starting, you must
247 set the following variables in
249 .Bd -literal -offset indent
251 sendmail_submit_enable="NO"
252 sendmail_outbound_enable="NO"
253 sendmail_msp_queue_enable="NO"