1.\"	$OpenBSD: mailer.conf.5,v 1.17 2015/12/08 09:06:32 sunil Exp $
2.\"	$NetBSD: mailer.conf.5,v 1.1 1999/03/25 16:40:17 is Exp $
3.\"
4.\" Copyright (c) 1998
5.\" 	Perry E. Metzger.  All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions
9.\" are met:
10.\" 1. Redistributions of source code must retain the above copyright
11.\"    notice, this list of conditions and the following disclaimer.
12.\" 2. Redistributions in binary form must reproduce the above copyright
13.\"    notice, this list of conditions and the following disclaimer in the
14.\"    documentation and/or other materials provided with the distribution.
15.\" 3. All advertising materials mentioning features or use of this software
16.\"    must display the following acknowledgment:
17.\"	This product includes software developed for the NetBSD Project
18.\"	by Perry E. Metzger.
19.\" 4. The name of the author may not be used to endorse or promote products
20.\"    derived from this software without specific prior written permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32.\"
33.Dd $Mdocdate: December 8 2015 $
34.Dt MAILER.CONF 5
35.Os
36.Sh NAME
37.Nm mailer.conf
38.Nd configuration file for mailwrapper(8)
39.Sh DESCRIPTION
40The file
41.Pa /etc/mailer.conf
42contains a series of pairs.
43The first member of each pair is the name of a program invoking
44.Xr mailwrapper 8
45which is typically a symbolic link to
46.Pa /usr/sbin/sendmail .
47(On a typical system,
48.Xr newaliases 8
49and
50.Xr mailq 8
51would be set up this way.)
52The second member of each pair is the name of the program to
53actually execute when the first name is invoked.
54The file may also contain comments, denoted by a
55.Ql #
56character in the first column of any line.
57.Sh FILES
58.Bl -tag -width /etc/mailer.conf -compact
59.It Pa /etc/mailer.conf
60.El
61.Sh EXAMPLES
62The following is an example of how to set up
63.Nm
64for the default
65.Xr smtpd 8
66MTA suite .
67.Bd -literal
68# Emulate sendmail using smtpd
69sendmail	/usr/sbin/smtpctl
70send-mail	/usr/sbin/smtpctl
71mailq		/usr/sbin/smtpctl
72makemap 	/usr/sbin/smtpctl
73newaliases	/usr/sbin/smtpctl
74.Ed
75.Pp
76This example shows how to invoke the traditional
77.Xr sendmail 8
78MTA suite in place of
79.Xr smtpd 8 .
80.Bd -literal
81# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
82sendmail	/usr/libexec/sendmail/sendmail
83send-mail	/usr/libexec/sendmail/sendmail
84mailq		/usr/libexec/sendmail/sendmail
85makemap 	/usr/libexec/sendmail/makemap
86newaliases	/usr/libexec/sendmail/sendmail
87hoststat	/usr/libexec/sendmail/sendmail
88purgestat	/usr/libexec/sendmail/sendmail
89.Ed
90.Sh SEE ALSO
91.Xr mail 1 ,
92.Xr mailq 8 ,
93.Xr mailwrapper 8 ,
94.Xr newaliases 8 ,
95.Xr smtpd 8
96.Sh AUTHORS
97.An Perry E. Metzger Aq Mt perry@piermont.com
98.Sh BUGS
99The entire reason this program exists is a crock.
100Instead, a command for how to submit mail should be standardized,
101and all the "behave differently if invoked with a different name"
102behavior of things like
103.Xr mailq 8
104should go away.
105