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