1.\" $NetBSD: mailer.conf.5,v 1.2 1999/05/29 18:18:30 christos Exp $ 2.\" 3.\" Copyright (c) 1998 4.\" Perry E. Metzger. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 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. 14.\" 3. All advertising materials mentioning features or use of this software 15.\" must display the following acknowledgment: 16.\" This product includes software developed for the NetBSD Project 17.\" by Perry E. Metzger. 18.\" 4. The name of the author may not be used to endorse or promote products 19.\" derived from this software without specific prior written permission. 20.\" 21.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 22.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 23.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 24.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31.\" 32.\" $FreeBSD$ 33.\" 34.Dd December 26, 2017 35.Dt MAILER.CONF 5 36.Os 37.Sh NAME 38.Nm mailer.conf 39.Nd configuration file for 40.Xr mailwrapper 8 41.Sh DESCRIPTION 42The file 43.Pa /etc/mail/mailer.conf 44contains a series of lines of the form 45.Pp 46.Ar name 47.Ar program 48.Op Ar arguments ... 49.Pp 50The first word of each line is the 51.Ar name 52of a program invoking 53.Xr mailwrapper 8 . 54(For example, on a typical system 55.Pa /usr/sbin/sendmail 56would be a symbolic link to 57.Xr mailwrapper 8 , 58as would 59.Xr newaliases 1 60and 61.Xr mailq 1 . 62Thus, 63.Ar name 64might be 65.Dq Li sendmail 66or 67.Dq Li newaliases 68etc.) 69.Pp 70The second word of each line is the name of the 71.Ar program 72to actually execute when the first name is invoked. 73.Pp 74The further 75.Ar arguments , 76if any, are passed to the 77.Ar program , 78followed by the arguments 79.Xr mailwrapper 8 80was called with. 81.Pp 82The file may also contain comment lines, denoted by a 83.Ql # 84mark in the first column of any line. 85.Sh FILES 86.Bl -tag -width Pa 87.It Pa /etc/mail/mailer.conf 88.El 89.Sh EXAMPLES 90This example shows how to set up 91.Nm 92to invoke the traditional 93.Xr sendmail 8 94program: 95.Bd -literal -offset indent 96# Execute the "real" sendmail program located in 97# /usr/libexec/sendmail/sendmail 98sendmail /usr/libexec/sendmail/sendmail 99mailq /usr/libexec/sendmail/sendmail 100newaliases /usr/libexec/sendmail/sendmail 101.Ed 102.Pp 103Using 104.Nm Postfix 105(from ports) 106to replace 107.Xr sendmail 8 : 108.Bd -literal -offset indent 109# Emulate sendmail using postfix 110sendmail /usr/local/sbin/sendmail 111mailq /usr/local/sbin/sendmail 112newaliases /usr/local/sbin/sendmail 113.Ed 114.Pp 115Using 116.Nm Exim 117(from ports) 118to replace 119.Xr sendmail 8 : 120.Bd -literal -offset indent 121# Emulate sendmail using exim 122sendmail /usr/local/sbin/exim 123mailq /usr/local/sbin/exim -bp 124newaliases /usr/bin/true 125rmail /usr/local/sbin/exim -i -oee 126.Ed 127.Pp 128Using 129.Nm mini_sendmail 130(from ports) 131to replace 132.Xr sendmail 8 : 133.Bd -literal -offset indent 134# Send outgoing mail to a smart relay using mini_sendmail 135sendmail /usr/local/bin/mini_sendmail -srelayhost 136.Ed 137.Pp 138Using 139.Xr dma 8 140to replace 141.Xr sendmail 8 : 142.Bd -literal -offset indent 143# Execute dma instead of sendmail 144sendmail /usr/libexec/dma 145mailq /usr/libexec/dma 146newaliases /usr/libexec/dma 147rmail /usr/libexec/dma 148.Ed 149.Sh SEE ALSO 150.Xr mail 1 , 151.Xr mailq 1 , 152.Xr newaliases 1 , 153.Xr dma 8 , 154.Xr mailwrapper 8 , 155.Xr sendmail 8 156.Pp 157.Xr postfix 1 Pq Pa ports/mail/postfix , 158.Xr dma 8 Pq Pa ports/mail/dma , 159.Xr exim 8 Pq Pa ports/mail/exim , 160.Xr mini_sendmail 8 Pq Pa ports/mail/mini_sendmail 161.Sh HISTORY 162.Nm 163appeared in 164.Nx 1.4 . 165.Sh AUTHORS 166.An Perry E. Metzger Aq Mt perry@piermont.com 167.Sh BUGS 168The entire reason this program exists is a crock. 169Instead, a command 170for how to submit mail should be standardized, and all the "behave 171differently if invoked with a different name" behavior of things like 172.Xr mailq 1 173should go away. 174