1 .\" $NetBSD: mailwrapper.8,v 1.11 2002/02/08 01:38:50 ross Exp $
2 .\" $FreeBSD: src/usr.sbin/mailwrapper/mailwrapper.8,v 1.12 2004/07/02 23:12:48 ru Exp $
3 .\" $DragonFly: src/usr.sbin/mailwrapper/mailwrapper.8,v 1.3 2005/07/04 13:33:02 corecode Exp $
6 .\" Perry E. Metzger. All rights reserved.
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. All advertising materials mentioning features or use of this software
17 .\" must display the following acknowledgment:
18 .\" This product includes software developed for the NetBSD Project
19 .\" by Perry E. Metzger.
20 .\" 4. The name of the author may not be used to endorse or promote products
21 .\" derived from this software without specific prior written permission.
23 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 .\" The following requests are required for all man pages.
40 .Nd invoke appropriate MTA software based on configuration file
45 At one time, the only Mail Transfer Agent (MTA) software easily available
48 As a result of this, most Mail User Agents (MUAs) such as
50 had the path and calling conventions expected by
54 Times have changed, however.
57 system, the administrator may wish to use one of several
60 It would be difficult to modify all MUA software typically available
61 on a system, so most of the authors of alternative MTAs have written
62 their front end message submission programs so that they use the same
63 calling conventions as
65 and may be put into place instead of
68 .Pa /usr/sbin/sendmail .
71 also typically has aliases named
76 The program knows to behave differently when its
82 and behaves appropriately.
83 Typically, replacement MTAs provide similar
84 functionality, either through a program that also switches behavior
85 based on calling name, or through a set of programs that provide
86 similar functionality.
88 Although having replacement programs that plug replace
90 helps in installing alternative MTAs, it essentially makes the
91 configuration of the system depend on hand installing new programs in
93 This leads to configuration problems for many administrators, since
94 they may wish to install a new MTA without altering the system
97 (This may be, for example, to avoid having upgrade problems when a new
98 version of the system is installed over the old.)
99 They may also have a shared
102 machines, and may wish to avoid placing implicit configuration
103 information in a read-only
108 utility is designed to replace
109 .Pa /usr/sbin/sendmail
110 and to invoke an appropriate MTA instead of
112 based on configuration information placed in
113 .Pa /etc/mail/mailer.conf .
114 This permits the administrator to configure which MTA is to be invoked on
115 the system at run time.
117 Other configuration files may need to be altered when replacing
119 For example, if the replacement MTA does not support the
123 .Va daily_status_include_submit_mailq
124 should be turned off in
125 .Pa /etc/periodic.conf .
128 exits 0 on success, and \*[Gt]0 if an error occurs.
133 .Pa /etc/mail/mailer.conf .
134 .Pa /usr/sbin/sendmail
135 is typically set up as a symbolic link to
137 which is not usually invoked on its own.
141 utility will print a diagnostic if its configuration file is malformed or does
142 not contain a mapping for the name under which
145 In case the configuration file does not exist at all, a syslog event is being
148 falls back to the default mailer, which is
155 .Xr periodic.conf 5 ,
160 utility first appeared in
165 .An Perry E. Metzger Aq perry@piermont.com
167 The entire reason this program exists is a crock.
169 for how to submit mail should be standardized, and all the "behave
170 differently if invoked with a different name" behavior of things like