summaryrefslogtreecommitdiffstats
path: root/share/man/man5
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2006-06-06 05:01:12 +0000
committerdelphij <delphij@FreeBSD.org>2006-06-06 05:01:12 +0000
commit2540a38c428d71b3504c362baf3caa528d917d32 (patch)
treeafc548dbd2d52683e7a53d291a4610513d987ddc /share/man/man5
parent361dd71e9d336dd4ccd5ba028a930e6ebde9c982 (diff)
downloadFreeBSD-src-2540a38c428d71b3504c362baf3caa528d917d32.zip
FreeBSD-src-2540a38c428d71b3504c362baf3caa528d917d32.tar.gz
Cleanups for mailwrapper(8):
- K&R -> ANSI prototype [O] - Do not bother to do free right before exit() or execve() [O] - Remove some dead code in addarg() - Make additional parameters specified in mailer.conf(5) actually work and document the fact. [N] - Avoid using __progname but instead use getprogname() and setprogname() to provide more sensible messages. [O, N] - Update $OpenBSD$ and $NetBSD$ to reflect the fact that we have sync'ed with their code. - WARNS=6 Obtained from/Inspired by: OpenBSD [O], NetBSD [N] (partially)
Diffstat (limited to 'share/man/man5')
-rw-r--r--share/man/man5/mailer.conf.583
1 files changed, 64 insertions, 19 deletions
diff --git a/share/man/man5/mailer.conf.5 b/share/man/man5/mailer.conf.5
index 58affbc..213db6d 100644
--- a/share/man/man5/mailer.conf.5
+++ b/share/man/man5/mailer.conf.5
@@ -31,7 +31,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 16, 1998
+.Dd May 31, 2006
.Dt MAILER.CONF 5
.Os
.Sh NAME
@@ -41,29 +41,59 @@
.Sh DESCRIPTION
The file
.Pa /etc/mail/mailer.conf
-contains a series of pairs.
-The first member of each pair is the name
+contains a series of lines of the form
+.Pp
+.Pa name
+.Pa program
+.Op Ar arguments ...
+.Pp
+The first word of each line is the
+.Pa name
of a program invoking
-.Xr mailwrapper 8
-which is typically a symbolic link to
-.Pa /usr/sbin/sendmail .
-(On a typical system,
+.Xr mailwrapper 8 .
+(For example, on a typical system
+.Pa /usr/sbin/sendmail
+would be a symbolic link to
+.Xr mailwrapper 8 ,
+as would
.Xr newaliases 1
and
-.Xr mailq 1
-would be set up this way.)
-The second member of each pair is the name of the program to
-actually execute when the first name is invoked.
-The file may also
-contain comments, denoted by a # mark in the first column of any line.
+.Xr mailq 1 .
+Thus,
+.Pa name
+might be
+.Dq sendmail
+or
+.Dq newaliases
+etc.)
+.Pp
+The second word of each line is the name of the
+.Pa program
+to actually execute when the first name is invoked.
+.Pp
+The further
+.Ar arguments ,
+if any, are passed to the
+.Pa program ,
+followed by the arguments
+.Xr mailwrapper 8
+was called with.
+.Pp
+The file may also contain comment lines, denoted by a
+.Sq #
+mark in the first column of any line.
+first column of any line.
.Sh FILES
/etc/mail/mailer.conf
.Sh EXAMPLES
-The following is an example of how to set up an
+This example shows how to set up
.Nm
-for traditional sendmail invocation behavior.
-.Bd -literal
-# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
+to invoke the traditional
+.Xr sendmail 8
+program:
+.Bd -literal -offset indent
+# Execute the "real" sendmail program located in
+# /usr/libexec/sendmail/sendmail
sendmail /usr/libexec/sendmail/sendmail
send-mail /usr/libexec/sendmail/sendmail
mailq /usr/libexec/sendmail/sendmail
@@ -71,20 +101,35 @@ newaliases /usr/libexec/sendmail/sendmail
.Ed
.Pp
This example shows how to invoke a sendmail-workalike like Postfix in
-place of sendmail.
-.Bd -literal
+place of
+.Xr sendmail 8 :
+.Bd -literal -offset indent
# Emulate sendmail using postfix
sendmail /usr/local/sbin/sendmail
send-mail /usr/local/sbin/sendmail
mailq /usr/local/sbin/sendmail
newaliases /usr/local/sbin/sendmail
.Ed
+.Pp
+This example shows the use of the mini_sendmail package from ports
+in place of
+.Xr sendmail 8 :
+Note the use of additional arguments.
+.Bd -literal -offset indent
+# Send outgoing mail to a smart relay using mini_sendmail
+sendmail /usr/local/bin/mini_sendmail -srelayhost
+send-mail /usr/local/bin/mini_sendmail -srelayhost
+.Ed
.Sh SEE ALSO
.Xr mail 1 ,
.Xr mailq 1 ,
.Xr newaliases 1 ,
.Xr mailwrapper 8 ,
.Xr sendmail 8
+.Pp
+.Xr postfix 1
+.Pq Pa ports/mail/postfix ,
+.Xr mini_sendmail 8 Pq Pa ports/mail/mini_sendmail
.Sh HISTORY
.Nm
appeared in
OpenPOWER on IntegriCloud