1 .\" $NetBSD: mailer.conf.5,v 1.2 1999/05/29 18:18:30 christos Exp $
4 .\" Perry E. Metzger. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
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.
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.
39 .Nd configuration file for
43 .Pa /etc/mail/mailer.conf
44 contains a series of lines of the form
50 The first word of each line is the
54 (For example, on a typical system
55 .Pa /usr/sbin/sendmail
56 would be a symbolic link to
70 The second word of each line is the name of the
72 to actually execute when the first name is invoked.
76 if any, are passed to the
78 followed by the arguments
82 The file may also contain comment lines, denoted by a
84 mark in the first column of any line.
87 .It Pa /etc/mail/mailer.conf
90 This example shows how to set up
92 to invoke the traditional
95 .Bd -literal -offset indent
96 # Execute the "real" sendmail program located in
97 # /usr/libexec/sendmail/sendmail
98 sendmail /usr/libexec/sendmail/sendmail
99 send-mail /usr/libexec/sendmail/sendmail
100 mailq /usr/libexec/sendmail/sendmail
101 newaliases /usr/libexec/sendmail/sendmail
109 .Bd -literal -offset indent
110 # Emulate sendmail using postfix
111 sendmail /usr/local/sbin/sendmail
112 send-mail /usr/local/sbin/sendmail
113 mailq /usr/local/sbin/sendmail
114 newaliases /usr/local/sbin/sendmail
122 .Bd -literal -offset indent
123 # Emulate sendmail using exim
124 sendmail /usr/local/sbin/exim
125 send-mail /usr/local/sbin/exim
126 mailq /usr/local/sbin/exim -bp
127 newaliases /usr/bin/true
128 rmail /usr/local/sbin/exim -i -oee
136 .Bd -literal -offset indent
137 # Send outgoing mail to a smart relay using mini_sendmail
138 sendmail /usr/local/bin/mini_sendmail -srelayhost
139 send-mail /usr/local/bin/mini_sendmail -srelayhost
146 .Bd -literal -offset indent
147 # Execute dma instead of sendmail
148 sendmail /usr/libexec/dma
149 send-mail /usr/libexec/dma
150 mailq /usr/libexec/dma
151 newaliases /usr/libexec/dma
152 rmail /usr/libexec/dma
162 .Xr postfix 1 Pq Pa ports/mail/postfix ,
163 .Xr dma 8 Pq Pa ports/mail/dma ,
164 .Xr exim 8 Pq Pa ports/mail/exim ,
165 .Xr mini_sendmail 8 Pq Pa ports/mail/mini_sendmail
171 .An Perry E. Metzger Aq Mt perry@piermont.com
173 The entire reason this program exists is a crock.
175 for how to submit mail should be standardized, and all the "behave
176 differently if invoked with a different name" behavior of things like