1*6c421c94Sjmc.\" $OpenBSD: mailer.conf.5,v 1.18 2018/09/17 15:46:37 jmc Exp $ 2a53d1a28Sjakob.\" $NetBSD: mailer.conf.5,v 1.1 1999/03/25 16:40:17 is Exp $ 3a53d1a28Sjakob.\" 4a53d1a28Sjakob.\" Copyright (c) 1998 5a53d1a28Sjakob.\" Perry E. Metzger. All rights reserved. 6a53d1a28Sjakob.\" 7a53d1a28Sjakob.\" Redistribution and use in source and binary forms, with or without 8a53d1a28Sjakob.\" modification, are permitted provided that the following conditions 9a53d1a28Sjakob.\" are met: 10a53d1a28Sjakob.\" 1. Redistributions of source code must retain the above copyright 11a53d1a28Sjakob.\" notice, this list of conditions and the following disclaimer. 12a53d1a28Sjakob.\" 2. Redistributions in binary form must reproduce the above copyright 13a53d1a28Sjakob.\" notice, this list of conditions and the following disclaimer in the 14a53d1a28Sjakob.\" documentation and/or other materials provided with the distribution. 15a53d1a28Sjakob.\" 3. All advertising materials mentioning features or use of this software 16a53d1a28Sjakob.\" must display the following acknowledgment: 17a53d1a28Sjakob.\" This product includes software developed for the NetBSD Project 18a53d1a28Sjakob.\" by Perry E. Metzger. 19a53d1a28Sjakob.\" 4. The name of the author may not be used to endorse or promote products 20a53d1a28Sjakob.\" derived from this software without specific prior written permission. 21a53d1a28Sjakob.\" 22a53d1a28Sjakob.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 23a53d1a28Sjakob.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 24a53d1a28Sjakob.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 25a53d1a28Sjakob.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 26a53d1a28Sjakob.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 27a53d1a28Sjakob.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28a53d1a28Sjakob.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29a53d1a28Sjakob.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30a53d1a28Sjakob.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 31a53d1a28Sjakob.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32a53d1a28Sjakob.\" 33*6c421c94Sjmc.Dd $Mdocdate: September 17 2018 $ 34a53d1a28Sjakob.Dt MAILER.CONF 5 35a53d1a28Sjakob.Os 36a53d1a28Sjakob.Sh NAME 37a53d1a28Sjakob.Nm mailer.conf 38e34c0550Sschwarze.Nd configuration file for mailwrapper(8) 39a53d1a28Sjakob.Sh DESCRIPTION 40a53d1a28SjakobThe file 41a53d1a28Sjakob.Pa /etc/mailer.conf 42cdbdb68aSaaroncontains a series of pairs. 43cdbdb68aSaaronThe first member of each pair is the name of a program invoking 44a53d1a28Sjakob.Xr mailwrapper 8 45a53d1a28Sjakobwhich is typically a symbolic link to 46a53d1a28Sjakob.Pa /usr/sbin/sendmail . 47a53d1a28Sjakob(On a typical system, 48c46cc601Smillert.Xr newaliases 8 49a53d1a28Sjakoband 501c64d2e4Sderaadt.Xr mailq 8 51a53d1a28Sjakobwould be set up this way.) 52a53d1a28SjakobThe second member of each pair is the name of the program to 53cdbdb68aSaaronactually execute when the first name is invoked. 54cdbdb68aSaaronThe file may also contain comments, denoted by a 55a53d1a28Sjakob.Ql # 56a53d1a28Sjakobcharacter in the first column of any line. 579d0b46bcSjmc.Sh FILES 589d0b46bcSjmc.Bl -tag -width /etc/mailer.conf -compact 599d0b46bcSjmc.It Pa /etc/mailer.conf 609d0b46bcSjmc.El 61a53d1a28Sjakob.Sh EXAMPLES 621163bceeSjakobThe following is an example of how to set up 63a53d1a28Sjakob.Nm 64834d90c3Sgillesfor the default 65834d90c3Sgilles.Xr smtpd 8 66*6c421c94SjmcMTA suite: 67834d90c3Sgilles.Bd -literal 68834d90c3Sgilles# Emulate sendmail using smtpd 69834d90c3Sgillessendmail /usr/sbin/smtpctl 70834d90c3Sgillessend-mail /usr/sbin/smtpctl 71834d90c3Sgillesmailq /usr/sbin/smtpctl 72e964f004Ssunilmakemap /usr/sbin/smtpctl 73e964f004Ssunilnewaliases /usr/sbin/smtpctl 74834d90c3Sgilles.Ed 75834d90c3Sgilles.Pp 76834d90c3SgillesThis example shows how to invoke the traditional 771163bceeSjakob.Xr sendmail 8 78834d90c3SgillesMTA suite in place of 79*6c421c94Sjmc.Xr smtpd 8 : 80a53d1a28Sjakob.Bd -literal 81*6c421c94Sjmc# Execute the "real" sendmail program 82*6c421c94Sjmcsendmail /usr/local/libexec/sendmail/sendmail 83*6c421c94Sjmcsend-mail /usr/local/libexec/sendmail/sendmail 84*6c421c94Sjmcmailq /usr/local/libexec/sendmail/sendmail 85*6c421c94Sjmcmakemap /usr/local/libexec/sendmail/makemap 86*6c421c94Sjmcnewaliases /usr/local/libexec/sendmail/sendmail 87*6c421c94Sjmchoststat /usr/local/libexec/sendmail/sendmail 88*6c421c94Sjmcpurgestat /usr/local/libexec/sendmail/sendmail 89a53d1a28Sjakob.Ed 90a53d1a28Sjakob.Sh SEE ALSO 91a53d1a28Sjakob.Xr mail 1 , 921c64d2e4Sderaadt.Xr mailq 8 , 93a53d1a28Sjakob.Xr mailwrapper 8 , 94c46cc601Smillert.Xr newaliases 8 , 95b23994f1Sjmc.Xr smtpd 8 96a53d1a28Sjakob.Sh AUTHORS 9744e68d47Sschwarze.An Perry E. Metzger Aq Mt perry@piermont.com 98a53d1a28Sjakob.Sh BUGS 999d0b46bcSjmcThe entire reason this program exists is a crock. 1009d0b46bcSjmcInstead, a command for how to submit mail should be standardized, 1019d0b46bcSjmcand all the "behave differently if invoked with a different name" 1029d0b46bcSjmcbehavior of things like 1031c64d2e4Sderaadt.Xr mailq 8 104a53d1a28Sjakobshould go away. 105