1*86d7f5d3SJohn Marino.\" Copyright (c) 1995 2*86d7f5d3SJohn Marino.\" Jordan K. Hubbard 3*86d7f5d3SJohn Marino.\" Copyright (c) 2002 The FreeBSD Project 4*86d7f5d3SJohn Marino.\" All rights reserved. 5*86d7f5d3SJohn Marino.\" 6*86d7f5d3SJohn Marino.\" Redistribution and use in source and binary forms, with or without 7*86d7f5d3SJohn Marino.\" modification, are permitted provided that the following conditions 8*86d7f5d3SJohn Marino.\" are met: 9*86d7f5d3SJohn Marino.\" 1. Redistributions of source code must retain the above copyright 10*86d7f5d3SJohn Marino.\" notice, this list of conditions and the following disclaimer. 11*86d7f5d3SJohn Marino.\" 2. Redistributions in binary form must reproduce the above copyright 12*86d7f5d3SJohn Marino.\" notice, this list of conditions and the following disclaimer in the 13*86d7f5d3SJohn Marino.\" documentation and/or other materials provided with the distribution. 14*86d7f5d3SJohn Marino.\" 15*86d7f5d3SJohn Marino.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16*86d7f5d3SJohn Marino.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17*86d7f5d3SJohn Marino.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18*86d7f5d3SJohn Marino.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19*86d7f5d3SJohn Marino.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20*86d7f5d3SJohn Marino.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21*86d7f5d3SJohn Marino.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22*86d7f5d3SJohn Marino.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23*86d7f5d3SJohn Marino.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24*86d7f5d3SJohn Marino.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25*86d7f5d3SJohn Marino.\" SUCH DAMAGE. 26*86d7f5d3SJohn Marino.\" 27*86d7f5d3SJohn Marino.\" $FreeBSD: src/share/man/man8/rc.sendmail.8,v 1.1.2.2 2002/05/22 17:01:33 gshapiro Exp $ 28*86d7f5d3SJohn Marino.\" $DragonFly: src/share/man/man8/rc.sendmail.8,v 1.4 2008/05/02 02:05:06 swildner Exp $ 29*86d7f5d3SJohn Marino.\" 30*86d7f5d3SJohn Marino.Dd May 20, 2009 31*86d7f5d3SJohn Marino.Dt RC.SENDMAIL 8 32*86d7f5d3SJohn Marino.Os 33*86d7f5d3SJohn Marino.Sh NAME 34*86d7f5d3SJohn Marino.Nm rc.sendmail 35*86d7f5d3SJohn Marino.Nd 36*86d7f5d3SJohn Marino.Xr sendmail 8 37*86d7f5d3SJohn Marinostartup script 38*86d7f5d3SJohn Marino.Sh DESCRIPTION 39*86d7f5d3SJohn MarinoThe 40*86d7f5d3SJohn Marino.Nm 41*86d7f5d3SJohn Marinoscript is used by 42*86d7f5d3SJohn Marino.Pa /etc/rc 43*86d7f5d3SJohn Marinoat boot time to start 44*86d7f5d3SJohn Marino.Xr sendmail 8 . 45*86d7f5d3SJohn MarinoIt is meant to be 46*86d7f5d3SJohn Marino.Xr sendmail 8 47*86d7f5d3SJohn Marinospecific and not a generic script for all MTAs. 48*86d7f5d3SJohn MarinoIt is only called by 49*86d7f5d3SJohn Marino.Pa /etc/rc 50*86d7f5d3SJohn Marinoif the 51*86d7f5d3SJohn Marino.Xr rc.conf 5 52*86d7f5d3SJohn Marino.Va mta_start_script 53*86d7f5d3SJohn Marinovariable is set to 54*86d7f5d3SJohn Marino.Pa /etc/rc.sendmail . 55*86d7f5d3SJohn Marino.Pp 56*86d7f5d3SJohn MarinoThe 57*86d7f5d3SJohn Marino.Nm 58*86d7f5d3SJohn Marinoscript can take an optional argument specifying the action to 59*86d7f5d3SJohn Marinoperform. 60*86d7f5d3SJohn MarinoThe available actions are: 61*86d7f5d3SJohn Marino.Bl -tag -width ".Cm restart-mspq" 62*86d7f5d3SJohn Marino.It Cm start 63*86d7f5d3SJohn MarinoStarts both the MTA and the MSP queue runner. 64*86d7f5d3SJohn Marino.It Cm stop 65*86d7f5d3SJohn MarinoStops both the MTA and the MSP queue runner. 66*86d7f5d3SJohn Marino.It Cm restart 67*86d7f5d3SJohn MarinoRestarts both the MTA and the MSP queue runner. 68*86d7f5d3SJohn Marino.It Cm start-mta 69*86d7f5d3SJohn MarinoStarts just the MTA. 70*86d7f5d3SJohn Marino.It Cm stop-mta 71*86d7f5d3SJohn MarinoStops just the MTA. 72*86d7f5d3SJohn Marino.It Cm restart-mta 73*86d7f5d3SJohn MarinoRestarts just the MTA. 74*86d7f5d3SJohn Marino.It Cm start-mspq 75*86d7f5d3SJohn MarinoStarts just the MSP queue runner. 76*86d7f5d3SJohn Marino.It Cm stop-mspq 77*86d7f5d3SJohn MarinoStops just the MSP queue runner. 78*86d7f5d3SJohn Marino.It Cm restart-mspq 79*86d7f5d3SJohn MarinoRestarts just the MSP queue runner. 80*86d7f5d3SJohn Marino.El 81*86d7f5d3SJohn Marino.Pp 82*86d7f5d3SJohn MarinoIf no action is specified, 83*86d7f5d3SJohn Marino.Cm start 84*86d7f5d3SJohn Marinois assumed. 85*86d7f5d3SJohn Marino.Pp 86*86d7f5d3SJohn MarinoThe 87*86d7f5d3SJohn Marino.Nm 88*86d7f5d3SJohn Marinoscript is also used by 89*86d7f5d3SJohn Marino.Pa /etc/mail/Makefile 90*86d7f5d3SJohn Marinoto enable the 91*86d7f5d3SJohn Marino.Pa Makefile Ns 's 92*86d7f5d3SJohn Marino.Cm start , stop , 93*86d7f5d3SJohn Marinoand 94*86d7f5d3SJohn Marino.Cm restart 95*86d7f5d3SJohn Marinotargets. 96*86d7f5d3SJohn Marino.Sh RC.CONF VARIABLES 97*86d7f5d3SJohn MarinoThe following variables affect the behavior of 98*86d7f5d3SJohn Marino.Nm . 99*86d7f5d3SJohn MarinoThey are defined in 100*86d7f5d3SJohn Marino.Pa /etc/defaults/rc.conf 101*86d7f5d3SJohn Marinoand can be changed in 102*86d7f5d3SJohn Marino.Pa /etc/rc.conf . 103*86d7f5d3SJohn Marino.Bl -tag -width indent 104*86d7f5d3SJohn Marino.It Va sendmail_enable 105*86d7f5d3SJohn Marino.Pq Vt str 106*86d7f5d3SJohn MarinoIf set to 107*86d7f5d3SJohn Marino.Dq Li YES , 108*86d7f5d3SJohn Marinorun the 109*86d7f5d3SJohn Marino.Xr sendmail 8 110*86d7f5d3SJohn Marinodaemon at system boot time. 111*86d7f5d3SJohn MarinoIf set to 112*86d7f5d3SJohn Marino.Dq Li NO , 113*86d7f5d3SJohn Marinodo not run a 114*86d7f5d3SJohn Marino.Xr sendmail 8 115*86d7f5d3SJohn Marinodaemon to listen for incoming network mail. 116*86d7f5d3SJohn MarinoThis does not preclude a 117*86d7f5d3SJohn Marino.Xr sendmail 8 118*86d7f5d3SJohn Marinodaemon listening on the SMTP port of the loopback interface. 119*86d7f5d3SJohn MarinoThe 120*86d7f5d3SJohn Marino.Dq Li NONE 121*86d7f5d3SJohn Marinooption is deprecated and should not be used. 122*86d7f5d3SJohn MarinoIt will be removed in a future release. 123*86d7f5d3SJohn Marino.It Va sendmail_flags 124*86d7f5d3SJohn Marino.Pq Vt str 125*86d7f5d3SJohn MarinoIf 126*86d7f5d3SJohn Marino.Va sendmail_enable 127*86d7f5d3SJohn Marinois set to 128*86d7f5d3SJohn Marino.Dq Li YES , 129*86d7f5d3SJohn Marinothese are the flags to pass to the 130*86d7f5d3SJohn Marino.Xr sendmail 8 131*86d7f5d3SJohn Marinodaemon. 132*86d7f5d3SJohn Marino.It Va sendmail_submit_enable 133*86d7f5d3SJohn Marino.Pq Vt bool 134*86d7f5d3SJohn MarinoIf set to 135*86d7f5d3SJohn Marino.Dq Li YES 136*86d7f5d3SJohn Marinoand 137*86d7f5d3SJohn Marino.Va sendmail_enable 138*86d7f5d3SJohn Marinois set to 139*86d7f5d3SJohn Marino.Dq Li NO , 140*86d7f5d3SJohn Marinorun 141*86d7f5d3SJohn Marino.Xr sendmail 8 142*86d7f5d3SJohn Marinousing 143*86d7f5d3SJohn Marino.Va sendmail_submit_flags 144*86d7f5d3SJohn Marinoinstead of 145*86d7f5d3SJohn Marino.Va sendmail_flags . 146*86d7f5d3SJohn MarinoThis is intended to allow local mail submission via 147*86d7f5d3SJohn Marinoa localhost-only listening SMTP service required for running 148*86d7f5d3SJohn Marino.Xr sendmail 8 149*86d7f5d3SJohn Marinoas a non-set-user-ID binary. 150*86d7f5d3SJohn MarinoNote that this does not work inside 151*86d7f5d3SJohn Marino.Xr jail 2 152*86d7f5d3SJohn Marinosystems, as jails do not allow binding to just the localhost interface. 153*86d7f5d3SJohn Marino.It Va sendmail_submit_flags 154*86d7f5d3SJohn Marino.Pq Vt str 155*86d7f5d3SJohn MarinoIf 156*86d7f5d3SJohn Marino.Va sendmail_enable 157*86d7f5d3SJohn Marinois set to 158*86d7f5d3SJohn Marino.Dq Li NO 159*86d7f5d3SJohn Marinoand 160*86d7f5d3SJohn Marino.Va sendmail_submit_enable 161*86d7f5d3SJohn Marinois set to 162*86d7f5d3SJohn Marino.Dq Li YES , 163*86d7f5d3SJohn Marinothese are the flags to pass to the 164*86d7f5d3SJohn Marino.Xr sendmail 8 165*86d7f5d3SJohn Marinodaemon. 166*86d7f5d3SJohn Marino.It Va sendmail_outbound_enable 167*86d7f5d3SJohn Marino.Pq Vt bool 168*86d7f5d3SJohn MarinoIf set to 169*86d7f5d3SJohn Marino.Dq Li YES 170*86d7f5d3SJohn Marinoand both 171*86d7f5d3SJohn Marino.Va sendmail_enable 172*86d7f5d3SJohn Marinoand 173*86d7f5d3SJohn Marino.Va sendmail_submit_enable 174*86d7f5d3SJohn Marinoare set to 175*86d7f5d3SJohn Marino.Dq Li NO , 176*86d7f5d3SJohn Marinorun 177*86d7f5d3SJohn Marino.Xr sendmail 8 178*86d7f5d3SJohn Marinousing 179*86d7f5d3SJohn Marino.Va sendmail_outbound_flags 180*86d7f5d3SJohn Marinoinstead of 181*86d7f5d3SJohn Marino.Va sendmail_flags . 182*86d7f5d3SJohn MarinoThis is intended to allow local mail queue management 183*86d7f5d3SJohn Marinofor systems that do not offer a listening SMTP service. 184*86d7f5d3SJohn Marino.It Va sendmail_outbound_flags 185*86d7f5d3SJohn Marino.Pq Vt str 186*86d7f5d3SJohn MarinoIf both 187*86d7f5d3SJohn Marino.Va sendmail_enable 188*86d7f5d3SJohn Marinoand 189*86d7f5d3SJohn Marino.Va sendmail_submit_enable 190*86d7f5d3SJohn Marinoare set to 191*86d7f5d3SJohn Marino.Dq Li NO 192*86d7f5d3SJohn Marinoand 193*86d7f5d3SJohn Marino.Va sendmail_outbound_enable 194*86d7f5d3SJohn Marinois set to 195*86d7f5d3SJohn Marino.Dq Li YES , 196*86d7f5d3SJohn Marinothese are the flags to pass to the 197*86d7f5d3SJohn Marino.Xr sendmail 8 198*86d7f5d3SJohn Marinodaemon. 199*86d7f5d3SJohn Marino.It Va sendmail_msp_queue_enable 200*86d7f5d3SJohn Marino.Pq Vt bool 201*86d7f5d3SJohn MarinoIf set to 202*86d7f5d3SJohn Marino.Dq Li YES , 203*86d7f5d3SJohn Marinostart a client (MSP) queue runner 204*86d7f5d3SJohn Marino.Xr sendmail 8 205*86d7f5d3SJohn Marinodaemon at system boot time. 206*86d7f5d3SJohn MarinoAs of sendmail 8.12, a separate queue is used for command line 207*86d7f5d3SJohn Marinosubmissions. 208*86d7f5d3SJohn MarinoThe client queue runner ensures that nothing is 209*86d7f5d3SJohn Marinoleft behind in the submission queue. 210*86d7f5d3SJohn Marino.It Va sendmail_msp_queue_flags 211*86d7f5d3SJohn Marino.Pq Vt str 212*86d7f5d3SJohn MarinoIf 213*86d7f5d3SJohn Marino.Va sendmail_msp_queue_enable 214*86d7f5d3SJohn Marinois set to 215*86d7f5d3SJohn Marino.Dq Li YES , 216*86d7f5d3SJohn Marinothese are the flags to pass to the 217*86d7f5d3SJohn Marino.Xr sendmail 8 218*86d7f5d3SJohn Marinodaemon. 219*86d7f5d3SJohn Marino.El 220*86d7f5d3SJohn Marino.Pp 221*86d7f5d3SJohn MarinoThese variables are used to determine how the 222*86d7f5d3SJohn Marino.Xr sendmail 8 223*86d7f5d3SJohn Marinodaemons are started: 224*86d7f5d3SJohn Marino.Bd -literal -offset indent 225*86d7f5d3SJohn Marino# MTA 226*86d7f5d3SJohn Marinoif (${sendmail_enable} == NONE) 227*86d7f5d3SJohn Marino # Do nothing 228*86d7f5d3SJohn Marinoelse if (${sendmail_enable} == YES) 229*86d7f5d3SJohn Marino start sendmail with ${sendmail_flags} 230*86d7f5d3SJohn Marinoelse if (${sendmail_submit_enable} == YES) 231*86d7f5d3SJohn Marino start sendmail with ${sendmail_submit_flags} 232*86d7f5d3SJohn Marinoelse if (${sendmail_outbound_enable} == YES) 233*86d7f5d3SJohn Marino start sendmail with ${sendmail_outbound_flags} 234*86d7f5d3SJohn Marinoendif 235*86d7f5d3SJohn Marino 236*86d7f5d3SJohn Marino# MSP Queue Runner 237*86d7f5d3SJohn Marinoif (${sendmail_enable} != NONE && 238*86d7f5d3SJohn Marino [ -r /etc/mail/submit.cf] && 239*86d7f5d3SJohn Marino ${sendmail_msp_queue_enable} == YES) 240*86d7f5d3SJohn Marino start sendmail with ${sendmail_msp_queue_flags} 241*86d7f5d3SJohn Marinoendif 242*86d7f5d3SJohn Marino.Ed 243*86d7f5d3SJohn Marino.Pp 244*86d7f5d3SJohn MarinoTo completely prevent any 245*86d7f5d3SJohn Marino.Xr sendmail 8 246*86d7f5d3SJohn Marinodaemons from starting, you must 247*86d7f5d3SJohn Marinoset the following variables in 248*86d7f5d3SJohn Marino.Pa /etc/rc.conf : 249*86d7f5d3SJohn Marino.Bd -literal -offset indent 250*86d7f5d3SJohn Marinosendmail_enable="NO" 251*86d7f5d3SJohn Marinosendmail_submit_enable="NO" 252*86d7f5d3SJohn Marinosendmail_outbound_enable="NO" 253*86d7f5d3SJohn Marinosendmail_msp_queue_enable="NO" 254*86d7f5d3SJohn Marino.Ed 255*86d7f5d3SJohn Marino.Pp 256*86d7f5d3SJohn MarinoAdditionally, the setting of the 257*86d7f5d3SJohn Marino.Va sendmail_rebuild_aliases 258*86d7f5d3SJohn Marinovariable determines whether 259*86d7f5d3SJohn Marino.Xr newaliases 1 260*86d7f5d3SJohn Marinois run if necessary or not. 261*86d7f5d3SJohn MarinoIf set to 262*86d7f5d3SJohn Marino.Dq Li YES , 263*86d7f5d3SJohn Marinothe 264*86d7f5d3SJohn Marino.Pa /etc/mail/aliases.db 265*86d7f5d3SJohn Marinofile is automatically regenerated either if it is older than 266*86d7f5d3SJohn Marino.Pa /etc/mail/aliases 267*86d7f5d3SJohn Marinoor non-existent. 268*86d7f5d3SJohn Marino.Sh SEE ALSO 269*86d7f5d3SJohn Marino.Xr rc.conf 5 , 270*86d7f5d3SJohn Marino.Xr rc 8 , 271*86d7f5d3SJohn Marino.Xr sendmail 8 272*86d7f5d3SJohn Marino.Sh HISTORY 273*86d7f5d3SJohn MarinoThe 274*86d7f5d3SJohn Marino.Nm 275*86d7f5d3SJohn Marinofile appeared in 276*86d7f5d3SJohn Marino.Fx 4.6 . 277