186d7f5d3SJohn Marino.\" Copyright (c) 1995 286d7f5d3SJohn Marino.\" Jordan K. Hubbard 386d7f5d3SJohn Marino.\" Copyright (c) 2002 The FreeBSD Project 486d7f5d3SJohn Marino.\" All rights reserved. 586d7f5d3SJohn Marino.\" 686d7f5d3SJohn Marino.\" Redistribution and use in source and binary forms, with or without 786d7f5d3SJohn Marino.\" modification, are permitted provided that the following conditions 886d7f5d3SJohn Marino.\" are met: 986d7f5d3SJohn Marino.\" 1. Redistributions of source code must retain the above copyright 1086d7f5d3SJohn Marino.\" notice, this list of conditions and the following disclaimer. 1186d7f5d3SJohn Marino.\" 2. Redistributions in binary form must reproduce the above copyright 1286d7f5d3SJohn Marino.\" notice, this list of conditions and the following disclaimer in the 1386d7f5d3SJohn Marino.\" documentation and/or other materials provided with the distribution. 1486d7f5d3SJohn Marino.\" 1586d7f5d3SJohn Marino.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1686d7f5d3SJohn Marino.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1786d7f5d3SJohn Marino.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1886d7f5d3SJohn Marino.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1986d7f5d3SJohn Marino.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2086d7f5d3SJohn Marino.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2186d7f5d3SJohn Marino.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2286d7f5d3SJohn Marino.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2386d7f5d3SJohn Marino.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2486d7f5d3SJohn Marino.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2586d7f5d3SJohn Marino.\" SUCH DAMAGE. 2686d7f5d3SJohn Marino.\" 2786d7f5d3SJohn Marino.\" $FreeBSD: src/share/man/man8/rc.sendmail.8,v 1.1.2.2 2002/05/22 17:01:33 gshapiro Exp $ 2886d7f5d3SJohn Marino.\" $DragonFly: src/share/man/man8/rc.sendmail.8,v 1.4 2008/05/02 02:05:06 swildner Exp $ 2986d7f5d3SJohn Marino.\" 3086d7f5d3SJohn Marino.Dd May 20, 2009 3186d7f5d3SJohn Marino.Dt RC.SENDMAIL 8 3286d7f5d3SJohn Marino.Os 3386d7f5d3SJohn Marino.Sh NAME 3486d7f5d3SJohn Marino.Nm rc.sendmail 3586d7f5d3SJohn Marino.Nd 3686d7f5d3SJohn Marino.Xr sendmail 8 3786d7f5d3SJohn Marinostartup script 3886d7f5d3SJohn Marino.Sh DESCRIPTION 3986d7f5d3SJohn MarinoThe 4086d7f5d3SJohn Marino.Nm 4186d7f5d3SJohn Marinoscript is used by 4286d7f5d3SJohn Marino.Pa /etc/rc 4386d7f5d3SJohn Marinoat boot time to start 4486d7f5d3SJohn Marino.Xr sendmail 8 . 4586d7f5d3SJohn MarinoIt is meant to be 4686d7f5d3SJohn Marino.Xr sendmail 8 4786d7f5d3SJohn Marinospecific and not a generic script for all MTAs. 4886d7f5d3SJohn MarinoIt is only called by 4986d7f5d3SJohn Marino.Pa /etc/rc 5086d7f5d3SJohn Marinoif the 5186d7f5d3SJohn Marino.Xr rc.conf 5 5286d7f5d3SJohn Marino.Va mta_start_script 5386d7f5d3SJohn Marinovariable is set to 5486d7f5d3SJohn Marino.Pa /etc/rc.sendmail . 5586d7f5d3SJohn Marino.Pp 5686d7f5d3SJohn MarinoThe 5786d7f5d3SJohn Marino.Nm 5886d7f5d3SJohn Marinoscript can take an optional argument specifying the action to 5986d7f5d3SJohn Marinoperform. 6086d7f5d3SJohn MarinoThe available actions are: 6186d7f5d3SJohn Marino.Bl -tag -width ".Cm restart-mspq" 6286d7f5d3SJohn Marino.It Cm start 6386d7f5d3SJohn MarinoStarts both the MTA and the MSP queue runner. 6486d7f5d3SJohn Marino.It Cm stop 6586d7f5d3SJohn MarinoStops both the MTA and the MSP queue runner. 6686d7f5d3SJohn Marino.It Cm restart 6786d7f5d3SJohn MarinoRestarts both the MTA and the MSP queue runner. 6886d7f5d3SJohn Marino.It Cm start-mta 6986d7f5d3SJohn MarinoStarts just the MTA. 7086d7f5d3SJohn Marino.It Cm stop-mta 7186d7f5d3SJohn MarinoStops just the MTA. 7286d7f5d3SJohn Marino.It Cm restart-mta 7386d7f5d3SJohn MarinoRestarts just the MTA. 7486d7f5d3SJohn Marino.It Cm start-mspq 7586d7f5d3SJohn MarinoStarts just the MSP queue runner. 7686d7f5d3SJohn Marino.It Cm stop-mspq 7786d7f5d3SJohn MarinoStops just the MSP queue runner. 7886d7f5d3SJohn Marino.It Cm restart-mspq 7986d7f5d3SJohn MarinoRestarts just the MSP queue runner. 8086d7f5d3SJohn Marino.El 8186d7f5d3SJohn Marino.Pp 8286d7f5d3SJohn MarinoIf no action is specified, 8386d7f5d3SJohn Marino.Cm start 8486d7f5d3SJohn Marinois assumed. 8586d7f5d3SJohn Marino.Pp 8686d7f5d3SJohn MarinoThe 8786d7f5d3SJohn Marino.Nm 8886d7f5d3SJohn Marinoscript is also used by 8986d7f5d3SJohn Marino.Pa /etc/mail/Makefile 9086d7f5d3SJohn Marinoto enable the 9186d7f5d3SJohn Marino.Pa Makefile Ns 's 9286d7f5d3SJohn Marino.Cm start , stop , 9386d7f5d3SJohn Marinoand 9486d7f5d3SJohn Marino.Cm restart 9586d7f5d3SJohn Marinotargets. 9686d7f5d3SJohn Marino.Sh RC.CONF VARIABLES 9786d7f5d3SJohn MarinoThe following variables affect the behavior of 9886d7f5d3SJohn Marino.Nm . 9986d7f5d3SJohn MarinoThey are defined in 10086d7f5d3SJohn Marino.Pa /etc/defaults/rc.conf 10186d7f5d3SJohn Marinoand can be changed in 10286d7f5d3SJohn Marino.Pa /etc/rc.conf . 10386d7f5d3SJohn Marino.Bl -tag -width indent 10486d7f5d3SJohn Marino.It Va sendmail_enable 10586d7f5d3SJohn Marino.Pq Vt str 10686d7f5d3SJohn MarinoIf set to 10786d7f5d3SJohn Marino.Dq Li YES , 10886d7f5d3SJohn Marinorun the 10986d7f5d3SJohn Marino.Xr sendmail 8 11086d7f5d3SJohn Marinodaemon at system boot time. 11186d7f5d3SJohn MarinoIf set to 11286d7f5d3SJohn Marino.Dq Li NO , 11386d7f5d3SJohn Marinodo not run a 11486d7f5d3SJohn Marino.Xr sendmail 8 11586d7f5d3SJohn Marinodaemon to listen for incoming network mail. 11686d7f5d3SJohn MarinoThis does not preclude a 11786d7f5d3SJohn Marino.Xr sendmail 8 11886d7f5d3SJohn Marinodaemon listening on the SMTP port of the loopback interface. 11986d7f5d3SJohn MarinoThe 12086d7f5d3SJohn Marino.Dq Li NONE 12186d7f5d3SJohn Marinooption is deprecated and should not be used. 12286d7f5d3SJohn MarinoIt will be removed in a future release. 12386d7f5d3SJohn Marino.It Va sendmail_flags 12486d7f5d3SJohn Marino.Pq Vt str 12586d7f5d3SJohn MarinoIf 12686d7f5d3SJohn Marino.Va sendmail_enable 12786d7f5d3SJohn Marinois set to 12886d7f5d3SJohn Marino.Dq Li YES , 12986d7f5d3SJohn Marinothese are the flags to pass to the 13086d7f5d3SJohn Marino.Xr sendmail 8 13186d7f5d3SJohn Marinodaemon. 13286d7f5d3SJohn Marino.It Va sendmail_submit_enable 13386d7f5d3SJohn Marino.Pq Vt bool 13486d7f5d3SJohn MarinoIf set to 13586d7f5d3SJohn Marino.Dq Li YES 13686d7f5d3SJohn Marinoand 13786d7f5d3SJohn Marino.Va sendmail_enable 13886d7f5d3SJohn Marinois set to 13986d7f5d3SJohn Marino.Dq Li NO , 14086d7f5d3SJohn Marinorun 14186d7f5d3SJohn Marino.Xr sendmail 8 14286d7f5d3SJohn Marinousing 14386d7f5d3SJohn Marino.Va sendmail_submit_flags 14486d7f5d3SJohn Marinoinstead of 14586d7f5d3SJohn Marino.Va sendmail_flags . 14686d7f5d3SJohn MarinoThis is intended to allow local mail submission via 14786d7f5d3SJohn Marinoa localhost-only listening SMTP service required for running 14886d7f5d3SJohn Marino.Xr sendmail 8 14986d7f5d3SJohn Marinoas a non-set-user-ID binary. 15086d7f5d3SJohn MarinoNote that this does not work inside 15186d7f5d3SJohn Marino.Xr jail 2 15286d7f5d3SJohn Marinosystems, as jails do not allow binding to just the localhost interface. 15386d7f5d3SJohn Marino.It Va sendmail_submit_flags 15486d7f5d3SJohn Marino.Pq Vt str 15586d7f5d3SJohn MarinoIf 15686d7f5d3SJohn Marino.Va sendmail_enable 15786d7f5d3SJohn Marinois set to 15886d7f5d3SJohn Marino.Dq Li NO 15986d7f5d3SJohn Marinoand 16086d7f5d3SJohn Marino.Va sendmail_submit_enable 16186d7f5d3SJohn Marinois set to 16286d7f5d3SJohn Marino.Dq Li YES , 16386d7f5d3SJohn Marinothese are the flags to pass to the 16486d7f5d3SJohn Marino.Xr sendmail 8 16586d7f5d3SJohn Marinodaemon. 16686d7f5d3SJohn Marino.It Va sendmail_outbound_enable 16786d7f5d3SJohn Marino.Pq Vt bool 16886d7f5d3SJohn MarinoIf set to 16986d7f5d3SJohn Marino.Dq Li YES 17086d7f5d3SJohn Marinoand both 17186d7f5d3SJohn Marino.Va sendmail_enable 17286d7f5d3SJohn Marinoand 17386d7f5d3SJohn Marino.Va sendmail_submit_enable 17486d7f5d3SJohn Marinoare set to 17586d7f5d3SJohn Marino.Dq Li NO , 17686d7f5d3SJohn Marinorun 17786d7f5d3SJohn Marino.Xr sendmail 8 17886d7f5d3SJohn Marinousing 17986d7f5d3SJohn Marino.Va sendmail_outbound_flags 18086d7f5d3SJohn Marinoinstead of 18186d7f5d3SJohn Marino.Va sendmail_flags . 18286d7f5d3SJohn MarinoThis is intended to allow local mail queue management 18386d7f5d3SJohn Marinofor systems that do not offer a listening SMTP service. 18486d7f5d3SJohn Marino.It Va sendmail_outbound_flags 18586d7f5d3SJohn Marino.Pq Vt str 18686d7f5d3SJohn MarinoIf both 18786d7f5d3SJohn Marino.Va sendmail_enable 18886d7f5d3SJohn Marinoand 18986d7f5d3SJohn Marino.Va sendmail_submit_enable 19086d7f5d3SJohn Marinoare set to 19186d7f5d3SJohn Marino.Dq Li NO 19286d7f5d3SJohn Marinoand 19386d7f5d3SJohn Marino.Va sendmail_outbound_enable 19486d7f5d3SJohn Marinois set to 19586d7f5d3SJohn Marino.Dq Li YES , 19686d7f5d3SJohn Marinothese are the flags to pass to the 19786d7f5d3SJohn Marino.Xr sendmail 8 19886d7f5d3SJohn Marinodaemon. 19986d7f5d3SJohn Marino.It Va sendmail_msp_queue_enable 20086d7f5d3SJohn Marino.Pq Vt bool 20186d7f5d3SJohn MarinoIf set to 20286d7f5d3SJohn Marino.Dq Li YES , 20386d7f5d3SJohn Marinostart a client (MSP) queue runner 20486d7f5d3SJohn Marino.Xr sendmail 8 20586d7f5d3SJohn Marinodaemon at system boot time. 20686d7f5d3SJohn MarinoAs of sendmail 8.12, a separate queue is used for command line 20786d7f5d3SJohn Marinosubmissions. 20886d7f5d3SJohn MarinoThe client queue runner ensures that nothing is 20986d7f5d3SJohn Marinoleft behind in the submission queue. 21086d7f5d3SJohn Marino.It Va sendmail_msp_queue_flags 21186d7f5d3SJohn Marino.Pq Vt str 21286d7f5d3SJohn MarinoIf 21386d7f5d3SJohn Marino.Va sendmail_msp_queue_enable 21486d7f5d3SJohn Marinois set to 21586d7f5d3SJohn Marino.Dq Li YES , 21686d7f5d3SJohn Marinothese are the flags to pass to the 21786d7f5d3SJohn Marino.Xr sendmail 8 21886d7f5d3SJohn Marinodaemon. 21986d7f5d3SJohn Marino.El 22086d7f5d3SJohn Marino.Pp 22186d7f5d3SJohn MarinoThese variables are used to determine how the 22286d7f5d3SJohn Marino.Xr sendmail 8 22386d7f5d3SJohn Marinodaemons are started: 22486d7f5d3SJohn Marino.Bd -literal -offset indent 22586d7f5d3SJohn Marino# MTA 22686d7f5d3SJohn Marinoif (${sendmail_enable} == NONE) 22786d7f5d3SJohn Marino # Do nothing 22886d7f5d3SJohn Marinoelse if (${sendmail_enable} == YES) 22986d7f5d3SJohn Marino start sendmail with ${sendmail_flags} 23086d7f5d3SJohn Marinoelse if (${sendmail_submit_enable} == YES) 23186d7f5d3SJohn Marino start sendmail with ${sendmail_submit_flags} 23286d7f5d3SJohn Marinoelse if (${sendmail_outbound_enable} == YES) 23386d7f5d3SJohn Marino start sendmail with ${sendmail_outbound_flags} 23486d7f5d3SJohn Marinoendif 23586d7f5d3SJohn Marino 23686d7f5d3SJohn Marino# MSP Queue Runner 23786d7f5d3SJohn Marinoif (${sendmail_enable} != NONE && 23886d7f5d3SJohn Marino [ -r /etc/mail/submit.cf] && 23986d7f5d3SJohn Marino ${sendmail_msp_queue_enable} == YES) 24086d7f5d3SJohn Marino start sendmail with ${sendmail_msp_queue_flags} 24186d7f5d3SJohn Marinoendif 24286d7f5d3SJohn Marino.Ed 24386d7f5d3SJohn Marino.Pp 24486d7f5d3SJohn MarinoTo completely prevent any 24586d7f5d3SJohn Marino.Xr sendmail 8 24686d7f5d3SJohn Marinodaemons from starting, you must 24786d7f5d3SJohn Marinoset the following variables in 24886d7f5d3SJohn Marino.Pa /etc/rc.conf : 24986d7f5d3SJohn Marino.Bd -literal -offset indent 25086d7f5d3SJohn Marinosendmail_enable="NO" 25186d7f5d3SJohn Marinosendmail_submit_enable="NO" 25286d7f5d3SJohn Marinosendmail_outbound_enable="NO" 25386d7f5d3SJohn Marinosendmail_msp_queue_enable="NO" 25486d7f5d3SJohn Marino.Ed 25586d7f5d3SJohn Marino.Pp 25686d7f5d3SJohn MarinoAdditionally, the setting of the 25786d7f5d3SJohn Marino.Va sendmail_rebuild_aliases 25886d7f5d3SJohn Marinovariable determines whether 25986d7f5d3SJohn Marino.Xr newaliases 1 26086d7f5d3SJohn Marinois run if necessary or not. 26186d7f5d3SJohn MarinoIf set to 26286d7f5d3SJohn Marino.Dq Li YES , 26386d7f5d3SJohn Marinothe 26486d7f5d3SJohn Marino.Pa /etc/mail/aliases.db 26586d7f5d3SJohn Marinofile is automatically regenerated either if it is older than 26686d7f5d3SJohn Marino.Pa /etc/mail/aliases 26786d7f5d3SJohn Marinoor non-existent. 26886d7f5d3SJohn Marino.Sh SEE ALSO 26986d7f5d3SJohn Marino.Xr rc.conf 5 , 27086d7f5d3SJohn Marino.Xr rc 8 , 27186d7f5d3SJohn Marino.Xr sendmail 8 27286d7f5d3SJohn Marino.Sh HISTORY 27386d7f5d3SJohn MarinoThe 27486d7f5d3SJohn Marino.Nm 27586d7f5d3SJohn Marinofile appeared in 27686d7f5d3SJohn Marino.Fx 4.6 . 277