]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/man/man5/mailer.conf.5
Cleanups for mailwrapper(8):
[FreeBSD/FreeBSD.git] / share / man / man5 / mailer.conf.5
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 May 31, 2006
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
42 The file
43 .Pa /etc/mail/mailer.conf
44 contains a series of lines of the form
45 .Pp
46 .Pa name
47 .Pa program
48 .Op Ar arguments ...
49 .Pp
50 The first word of each line is the
51 .Pa name
52 of a program invoking
53 .Xr mailwrapper 8 .
54 (For example, on a typical system
55 .Pa /usr/sbin/sendmail
56 would be a symbolic link to
57 .Xr mailwrapper 8 ,
58 as would
59 .Xr newaliases 1
60 and
61 .Xr mailq 1 .
62 Thus,
63 .Pa name
64 might be
65 .Dq sendmail
66 or
67 .Dq newaliases
68 etc.)
69 .Pp
70 The second word of each line is the name of the
71 .Pa program
72 to actually execute when the first name is invoked.
73 .Pp
74 The further
75 .Ar arguments ,
76 if any, are passed to the
77 .Pa program ,
78 followed by the arguments
79 .Xr mailwrapper 8
80 was called with.
81 .Pp
82 The file may also contain comment lines, denoted by a
83 .Sq #
84 mark in the first column of any line.
85 first column of any line.
86 .Sh FILES
87 /etc/mail/mailer.conf
88 .Sh EXAMPLES
89 This example shows how to set up
90 .Nm
91 to invoke the traditional
92 .Xr sendmail 8
93 program:
94 .Bd -literal -offset indent
95 # Execute the "real" sendmail program located in
96 # /usr/libexec/sendmail/sendmail
97 sendmail        /usr/libexec/sendmail/sendmail
98 send-mail       /usr/libexec/sendmail/sendmail
99 mailq           /usr/libexec/sendmail/sendmail
100 newaliases      /usr/libexec/sendmail/sendmail
101 .Ed
102 .Pp
103 This example shows how to invoke a sendmail-workalike like Postfix in
104 place of
105 .Xr sendmail 8 :
106 .Bd -literal -offset indent
107 # Emulate sendmail using postfix
108 sendmail        /usr/local/sbin/sendmail
109 send-mail       /usr/local/sbin/sendmail
110 mailq           /usr/local/sbin/sendmail
111 newaliases      /usr/local/sbin/sendmail
112 .Ed
113 .Pp
114 This example shows the use of the mini_sendmail package from ports
115 in place of
116 .Xr sendmail 8 :
117 Note the use of additional arguments.
118 .Bd -literal -offset indent
119 # Send outgoing mail to a smart relay using mini_sendmail
120 sendmail        /usr/local/bin/mini_sendmail -srelayhost
121 send-mail       /usr/local/bin/mini_sendmail -srelayhost
122 .Ed
123 .Sh SEE ALSO
124 .Xr mail 1 ,
125 .Xr mailq 1 ,
126 .Xr newaliases 1 ,
127 .Xr mailwrapper 8 ,
128 .Xr sendmail 8
129 .Pp
130 .Xr postfix 1
131 .Pq Pa ports/mail/postfix ,
132 .Xr mini_sendmail 8 Pq Pa ports/mail/mini_sendmail
133 .Sh HISTORY
134 .Nm
135 appeared in
136 .Nx 1.4 .
137 .Sh AUTHORS
138 .An Perry E. Metzger Aq perry@piermont.com
139 .Sh BUGS
140 The entire reason this program exists is a crock.
141 Instead, a command
142 for how to submit mail should be standardized, and all the "behave
143 differently if invoked with a different name" behavior of things like
144 .Xr mailq 1
145 should go away.