1*6cb10275Sriastradh.\" $NetBSD: mailer.conf.5,v 1.16 2014/03/18 18:20:47 riastradh Exp $ 2059e6549Sis.\" 3059e6549Sis.\" Copyright (c) 1998 4059e6549Sis.\" Perry E. Metzger. All rights reserved. 5059e6549Sis.\" 6059e6549Sis.\" Redistribution and use in source and binary forms, with or without 7059e6549Sis.\" modification, are permitted provided that the following conditions 8059e6549Sis.\" are met: 9059e6549Sis.\" 1. Redistributions of source code must retain the above copyright 10059e6549Sis.\" notice, this list of conditions and the following disclaimer. 11059e6549Sis.\" 2. Redistributions in binary form must reproduce the above copyright 12059e6549Sis.\" notice, this list of conditions and the following disclaimer in the 13059e6549Sis.\" documentation and/or other materials provided with the distribution. 14059e6549Sis.\" 3. All advertising materials mentioning features or use of this software 15059e6549Sis.\" must display the following acknowledgment: 16059e6549Sis.\" This product includes software developed for the NetBSD Project 17059e6549Sis.\" by Perry E. Metzger. 18059e6549Sis.\" 4. The name of the author may not be used to endorse or promote products 19059e6549Sis.\" derived from this software without specific prior written permission. 20059e6549Sis.\" 21059e6549Sis.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 22059e6549Sis.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 23059e6549Sis.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 24059e6549Sis.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25059e6549Sis.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26059e6549Sis.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27059e6549Sis.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28059e6549Sis.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29059e6549Sis.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30059e6549Sis.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31059e6549Sis.\" 325e7a0d0aSjruoho.Dd April 10, 2010 33059e6549Sis.Dt MAILER.CONF 5 34059e6549Sis.Os 35059e6549Sis.Sh NAME 36059e6549Sis.Nm mailer.conf 37059e6549Sis.Nd configuration file for 385811c27bSwiz.Xr mailwrapper 8 39059e6549Sis.Sh DESCRIPTION 40059e6549SisThe file 41059e6549Sis.Pa /etc/mailer.conf 42ca86df3fSiscontains a series of lines of the form 43ca86df3fSis.Pp 44ca86df3fSis.Pa name 45ca86df3fSis.Pa program 46ca86df3fSis.Op Ar arguments ... 47ca86df3fSis.Pp 48ca86df3fSisThe first word of each line is the 49399b25deSperry.Pa name 50059e6549Sisof a program invoking 51399b25deSperry.Xr mailwrapper 8 . 52399b25deSperry(For example, on a typical system 53399b25deSperry.Pa /usr/sbin/sendmail 54399b25deSperrywould be a symbolic link to 55399b25deSperry.Xr mailwrapper 8 , 56399b25deSperryas would 57059e6549Sis.Xr newaliases 1 58059e6549Sisand 59399b25deSperry.Xr mailq 1 . 60399b25deSperryThus, 61399b25deSperry.Pa name 62399b25deSperrymight be 63399b25deSperry.Dq sendmail 64399b25deSperryor 65399b25deSperry.Dq newaliases 66399b25deSperryetc.) 67ca86df3fSis.Pp 68ca86df3fSisThe second word of each line is the name of the 69ca86df3fSis.Pa program 70ca86df3fSisto actually execute when the first name is invoked. 71ca86df3fSis.Pp 72ca86df3fSisThe further 73399b25deSperry.Ar arguments , 74ca86df3fSisif any, are passed to the 75ca86df3fSis.Pa program , 76ca86df3fSisfollowed by the arguments 77ca86df3fSis.Xr mailwrapper 8 78ca86df3fSiswas called with. 79ca86df3fSis.Pp 807be6adb6SwizThe file may also contain comment lines, denoted by a 817be6adb6Swiz.Sq # 827be6adb6Swizmark in the first column of any line. 83d2dd73eeSatatat.Pp 84d2dd73eeSatatatThe default mailer is 855e7a0d0aSjruoho.Xr postfix 1 , 86d2dd73eeSatatatwhich will also start by default (unless specifically disabled via an 87d2dd73eeSatatat.Xr rc.conf 5 88d2dd73eeSatatatsetting) so that locally generated mail can be delivered, if the 89d2dd73eeSatatat.Dq sendmail 90d2dd73eeSatatatsetting in 91d2dd73eeSatatat.Pa /etc/mailer.conf 92d2dd73eeSatatatis set to 935e7a0d0aSjruoho.Dq /usr/libexec/postfix/sendmail . 94f01b2c89Swiz.Sh FILES 95f01b2c89Swiz/etc/mailer.conf 96059e6549Sis.Sh EXAMPLES 97399b25deSperryThis example shows how to set up 98059e6549Sis.Nm 995e7a0d0aSjruohoto invoke the 1005e7a0d0aSjruoho.Xr postfix 1 101399b25deSperryprogram: 102399b25deSperry.Bd -literal -offset indent 103bff76833Schristossendmail /usr/libexec/postfix/sendmail 104bff76833Schristosmailq /usr/libexec/postfix/sendmail 105bff76833Schristosnewaliases /usr/libexec/postfix/sendmail 106059e6549Sis.Ed 107399b25deSperry.Pp 1085e7a0d0aSjruohoThis example shows the use of the mini-sendmail package from 1095e7a0d0aSjruoho.Em pkgsrc 110399b25deSperryin place of 1115e7a0d0aSjruoho.Xr postfix 1 : 112399b25deSperry.Bd -literal -offset indent 113399b25deSperry# Send outgoing mail to a smart relay using mini-sendmail 114ca86df3fSissendmail /usr/pkg/sbin/mini-sendmail -srelayhost 115ca86df3fSissend-mail /usr/pkg/sbin/mini-sendmail -srelayhost 116ca86df3fSis.Ed 1175e7a0d0aSjruoho.Pp 1185e7a0d0aSjruohoNote the use of additional arguments. 119059e6549Sis.Sh SEE ALSO 120059e6549Sis.Xr mail 1 , 121059e6549Sis.Xr mailq 1 , 122059e6549Sis.Xr newaliases 1 , 123f01b2c89Swiz.Xr postfix 1 , 1245e7a0d0aSjruoho.Xr mailwrapper 8 1257be6adb6Swiz.Pp 1265e7a0d0aSjruoho.Pa pkgsrc/mail/sendmail , 1277be6adb6Swiz.Pa pkgsrc/mail/mini_sendmail 128059e6549Sis.Sh HISTORY 129059e6549Sis.Nm 130059e6549Sisappeared in 131059e6549Sis.Nx 1.4 . 132059e6549Sis.Sh AUTHORS 133a5684d07Swiz.An Perry E. Metzger Aq Mt perry@piermont.com 134059e6549Sis.Sh BUGS 1357be6adb6SwizThe entire reason this program exists is a crock. 1367be6adb6SwizInstead, a command 1375e7a0d0aSjruohofor how to submit mail should be standardized, and all the 1385e7a0d0aSjruoho.Dq behave differently if invoked with a different name 1395e7a0d0aSjruohobehavior of things like 140059e6549Sis.Xr mailq 1 141059e6549Sisshould go away. 142