xref: /netbsd-src/usr.sbin/mailwrapper/mailer.conf.5 (revision 2de962bd804263c16657f586aa00f1704045df8e)
1.\"	$NetBSD: mailer.conf.5,v 1.13 2004/07/22 03:44:12 atatat 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.Dd July 17, 2004
33.Dt MAILER.CONF 5
34.Os
35.Sh NAME
36.Nm mailer.conf
37.Nd configuration file for
38.Xr mailwrapper 8
39.Sh DESCRIPTION
40The file
41.Pa /etc/mailer.conf
42contains a series of lines of the form
43.Pp
44.Pa name
45.Pa program
46.Op Ar arguments ...
47.Pp
48The first word of each line is the
49.Pa name
50of a program invoking
51.Xr mailwrapper 8 .
52(For example, on a typical system
53.Pa /usr/sbin/sendmail
54would be a symbolic link to
55.Xr mailwrapper 8 ,
56as would
57.Xr newaliases 1
58and
59.Xr mailq 1 .
60Thus,
61.Pa name
62might be
63.Dq sendmail
64or
65.Dq newaliases
66etc.)
67.Pp
68The second word of each line is the name of the
69.Pa program
70to actually execute when the first name is invoked.
71.Pp
72The further
73.Ar arguments ,
74if any, are passed to the
75.Pa program ,
76followed by the arguments
77.Xr mailwrapper 8
78was called with.
79.Pp
80The file may also contain comment lines, denoted by a
81.Sq #
82mark in the first column of any line.
83.Pp
84The default mailer is
85.Xr sendmail 8 ,
86which will also start by default (unless specifically disabled via an
87.Xr rc.conf 5
88setting) so that locally generated mail can be delivered, if the
89.Dq sendmail
90setting in
91.Pa /etc/mailer.conf
92is set to
93.Dq /usr/libexec/sendmail/sendmail .
94.Sh FILES
95/etc/mailer.conf
96.Sh EXAMPLES
97This example shows how to set up
98.Nm
99to invoke the traditional
100.Xr sendmail 8
101program:
102.Bd -literal -offset indent
103# Execute the "real" sendmail program located in
104# /usr/libexec/sendmail/sendmail
105sendmail	/usr/libexec/sendmail/sendmail
106send-mail	/usr/libexec/sendmail/sendmail
107mailq		/usr/libexec/sendmail/sendmail
108newaliases	/usr/libexec/sendmail/sendmail
109hoststat	/usr/libexec/sendmail/sendmail
110purgestat	/usr/libexec/sendmail/sendmail
111.Ed
112.Pp
113This example shows how to invoke the
114.Xr postfix 1
115MTA suite in place of
116.Xr sendmail 8 :
117.Bd -literal -offset indent
118# Emulate sendmail using postfix
119sendmail	/usr/libexec/postfix/sendmail
120send-mail	/usr/libexec/postfix/sendmail
121mailq		/usr/libexec/postfix/sendmail
122newaliases	/usr/libexec/postfix/sendmail
123.Ed
124.Pp
125This example shows the use of the mini-sendmail package from pkgsrc
126in place of
127.Xr sendmail 8 :
128Note the use of additional arguments.
129.Bd -literal -offset indent
130# Send outgoing mail to a smart relay using mini-sendmail
131sendmail	/usr/pkg/sbin/mini-sendmail -srelayhost
132send-mail	/usr/pkg/sbin/mini-sendmail -srelayhost
133.Ed
134.Sh SEE ALSO
135.Xr mail 1 ,
136.Xr mailq 1 ,
137.Xr newaliases 1 ,
138.Xr postfix 1 ,
139.Xr mailwrapper 8 ,
140.Xr sendmail 8
141.Pp
142.Pa pkgsrc/mail/mini_sendmail
143.Sh HISTORY
144.Nm
145appeared in
146.Nx 1.4 .
147.Sh AUTHORS
148.An Perry E. Metzger Aq perry@piermont.com
149.Sh BUGS
150The entire reason this program exists is a crock.
151Instead, a command
152for how to submit mail should be standardized, and all the "behave
153differently if invoked with a different name" behavior of things like
154.Xr mailq 1
155should go away.
156