1*597b141cSwiz.\" $NetBSD: mailwrapper.8,v 1.18 2017/07/04 07:10:35 wiz Exp $ 2180c29c3Sperry.\" 3180c29c3Sperry.\" Copyright (c) 1998 4180c29c3Sperry.\" Perry E. Metzger. All rights reserved. 5180c29c3Sperry.\" 6180c29c3Sperry.\" Redistribution and use in source and binary forms, with or without 7180c29c3Sperry.\" modification, are permitted provided that the following conditions 8180c29c3Sperry.\" are met: 9180c29c3Sperry.\" 1. Redistributions of source code must retain the above copyright 10180c29c3Sperry.\" notice, this list of conditions and the following disclaimer. 11180c29c3Sperry.\" 2. Redistributions in binary form must reproduce the above copyright 12180c29c3Sperry.\" notice, this list of conditions and the following disclaimer in the 13180c29c3Sperry.\" documentation and/or other materials provided with the distribution. 14180c29c3Sperry.\" 3. All advertising materials mentioning features or use of this software 15180c29c3Sperry.\" must display the following acknowledgment: 16180c29c3Sperry.\" This product includes software developed for the NetBSD Project 17180c29c3Sperry.\" by Perry E. Metzger. 18180c29c3Sperry.\" 4. The name of the author may not be used to endorse or promote products 19180c29c3Sperry.\" derived from this software without specific prior written permission. 20180c29c3Sperry.\" 21180c29c3Sperry.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 22180c29c3Sperry.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 23180c29c3Sperry.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 24180c29c3Sperry.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25180c29c3Sperry.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26180c29c3Sperry.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27180c29c3Sperry.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28180c29c3Sperry.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29180c29c3Sperry.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30180c29c3Sperry.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31180c29c3Sperry.\" 32180c29c3Sperry.\" The following requests are required for all man pages. 335e7a0d0aSjruoho.Dd April 10, 2010 34180c29c3Sperry.Dt MAILWRAPPER 8 35d1407362Sgarbled.Os 36180c29c3Sperry.Sh NAME 37180c29c3Sperry.Nm mailwrapper 385e7a0d0aSjruoho.Nd invoke appropriate 395e7a0d0aSjruoho.Tn MTA 405e7a0d0aSjruohosoftware based on configuration file 41180c29c3Sperry.Sh SYNOPSIS 42f5011e83SwizSpecial. 43f5011e83SwizSee below. 44180c29c3Sperry.Sh DESCRIPTION 455e7a0d0aSjruohoOnce upon time, the only Mail Transfer Agent 465e7a0d0aSjruoho.Pq Tn MTA 475e7a0d0aSjruohosoftware easily available was 485e7a0d0aSjruoho.Dq sendmail . 495e7a0d0aSjruohoThis famous 505e7a0d0aSjruoho.Tn MTA 515e7a0d0aSjruohowas written by 525e7a0d0aSjruoho.An Eric Allman 535e7a0d0aSjruohoand first appeared in 545e7a0d0aSjruoho.Bx 4.1 . 555e7a0d0aSjruohoThe legacy of this 565e7a0d0aSjruoho.Tn MTA 575e7a0d0aSjruohoaffected most Mail User Agents 585e7a0d0aSjruoho.Pq Tn MUAs 595e7a0d0aSjruohosuch as 605e7a0d0aSjruoho.Xr mail 1 ; 615e7a0d0aSjruohothe path and calling conventions expected by 625e7a0d0aSjruoho.Dq sendmail 635e7a0d0aSjruohowere compiled in. 64180c29c3Sperry.Pp 655e7a0d0aSjruohoBut times changed. 66180c29c3SperryOn a modern 67180c29c3Sperry.Nx 685e7a0d0aSjruohosystem, the administrator may wish to use one of several available 695e7a0d0aSjruoho.Tn MTAs . 70180c29c3Sperry.Pp 715e7a0d0aSjruohoIt would be difficult to modify all 725e7a0d0aSjruoho.Tn MUA 735e7a0d0aSjruohosoftware typically available on a system, 745e7a0d0aSjruohoso most of the authors of alternative 755e7a0d0aSjruoho.Tn MTAs 765e7a0d0aSjruohohave written their front end message submission programs 775e7a0d0aSjruohothat may appear in the place of 785e7a0d0aSjruoho.Pa /usr/sbin/sendmail , 795e7a0d0aSjruohobut still follow the same calling conventions as 805e7a0d0aSjruoho.Dq sendmail . 81180c29c3Sperry.Pp 825e7a0d0aSjruohoThe 835e7a0d0aSjruoho.Dq sendmail 845e7a0d0aSjruoho.Tn MTA 85180c29c3Sperryalso typically has aliases named 86180c29c3Sperry.Xr mailq 1 87180c29c3Sperryand 88180c29c3Sperry.Xr newaliases 1 895e7a0d0aSjruoholinked to it. 905e7a0d0aSjruohoThe program knows to behave differently when its 91180c29c3Sperry.Va argv[0] 92180c29c3Sperryis 93180c29c3Sperry.Dq mailq 94180c29c3Sperryor 95180c29c3Sperry.Dq newaliases 965e7a0d0aSjruohoand behaves appropriately. 975e7a0d0aSjruohoTypically, replacement 985e7a0d0aSjruoho.Tn MTAs 995e7a0d0aSjruohoprovide similar functionality, either through a program that also 1005e7a0d0aSjruohoswitches behavior based on calling name, or through a set of programs 1015e7a0d0aSjruohothat provide similar functionality. 102180c29c3Sperry.Pp 103180c29c3SperryAlthough having replacement programs that plug replace 1045e7a0d0aSjruoho.Dq sendmail 1055e7a0d0aSjruohohelps in installing alternative 1065e7a0d0aSjruoho.Tn MTAs , 1075e7a0d0aSjruohoit essentially makes the configuration of the system depend 1085e7a0d0aSjruohoon hand installing new programs in 109180c29c3Sperry.Pa /usr . 110180c29c3SperryThis leads to configuration problems for many administrators, since 1115e7a0d0aSjruohothey may wish to install a new 1125e7a0d0aSjruoho.Tn MTA 1135e7a0d0aSjruohowithout altering the system provided 114180c29c3Sperry.Pa /usr . 115180c29c3Sperry(This may be, for example, to avoid having upgrade problems when a new 116180c29c3Sperryversion of the system is installed over the old.) 117180c29c3SperryThey may also have a shared 118180c29c3Sperry.Pa /usr 1195e7a0d0aSjruohoamong several machines, and may wish to avoid placing 1205e7a0d0aSjruohoimplicit configuration information in a read-only 121180c29c3Sperry.Pa /usr . 122180c29c3Sperry.Pp 123180c29c3SperryThe 124180c29c3Sperry.Nm 125180c29c3Sperryprogram is designed to replace 126180c29c3Sperry.Pa /usr/sbin/sendmail 1275e7a0d0aSjruohoand to invoke an appropriate 1285e7a0d0aSjruoho.Tn MTA 129180c29c3Sperrybased on configuration information placed in 130180c29c3Sperry.Pa /etc/mailer.conf . 1315e7a0d0aSjruohoThis permits the administrator to configure which 1325e7a0d0aSjruoho.Tn MTA 1335e7a0d0aSjruohois to be invoked on the system at run time. 134180c29c3Sperry.Sh FILES 135180c29c3SperryConfiguration for 136180c29c3Sperry.Nm 137180c29c3Sperryis kept in 138180c29c3Sperry.Pa /etc/mailer.conf . 139f7367de8Shubertf.Pa /usr/sbin/sendmail 140180c29c3Sperryis typically set up as a symlink to 141180c29c3Sperry.Nm 142180c29c3Sperrywhich is not usually invoked on its own. 1432a65137fSwiz.Sh EXIT STATUS 144*597b141cSwiz.Ex -std 145180c29c3Sperry.Sh DIAGNOSTICS 146180c29c3Sperry.Nm 1474918722aSkleinkwill print a diagnostic if its configuration file is missing or malformed, 1484918722aSkleinkor does not contain a mapping for the name under which it was invoked. 149180c29c3Sperry.Sh SEE ALSO 150180c29c3Sperry.Xr mail 1 , 151180c29c3Sperry.Xr mailq 1 , 152180c29c3Sperry.Xr newaliases 1 , 1535e7a0d0aSjruoho.Xr postfix 1 , 1545e7a0d0aSjruoho.Xr mailer.conf 5 155180c29c3Sperry.Sh HISTORY 1565e7a0d0aSjruohoThe 157180c29c3Sperry.Nm 1585e7a0d0aSjruohoprogram appeared in 159180c29c3Sperry.Nx 1.4 . 160180c29c3Sperry.Sh AUTHORS 161a5684d07Swiz.An Perry E. Metzger Aq Mt perry@piermont.com 162180c29c3Sperry.Sh BUGS 1635e7a0d0aSjruohoThe entire reason this program exists is a crock. 1645e7a0d0aSjruohoInstead, a command 1655e7a0d0aSjruohofor how to submit mail should be standardized, and all the 1665e7a0d0aSjruoho.Dq behave differently if invoked with a different name 1675e7a0d0aSjruohobehavior of things like 168180c29c3Sperry.Xr mailq 1 169180c29c3Sperryshould go away. 170