Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mailwrapper(8) [netbsd man page]

MAILWRAPPER(8)						    BSD System Manager's Manual 					    MAILWRAPPER(8)

NAME
mailwrapper -- invoke appropriate MTA software based on configuration file SYNOPSIS
Special. See below. DESCRIPTION
Once upon time, the only Mail Transfer Agent (MTA) software easily available was ``sendmail''. This famous MTA was written by Eric Allman and first appeared in 4.1BSD. The legacy of this MTA affected most Mail User Agents (MUAs) such as mail(1); the path and calling conventions expected by ``sendmail'' were compiled in. But times changed. On a modern NetBSD system, the administrator may wish to use one of several available MTAs. It would be difficult to modify all MUA software typically available on a system, so most of the authors of alternative MTAs have written their front end message submission programs that may appear in the place of /usr/sbin/sendmail, but still follow the same calling conventions as ``sendmail''. The ``sendmail'' MTA also typically has aliases named mailq(1) and newaliases(1) linked to it. The program knows to behave differently when its argv[0] is ``mailq'' or ``newaliases'' and behaves appropriately. Typically, replacement MTAs provide similar functionality, either through a program that also switches behavior based on calling name, or through a set of programs that provide similar functionality. Although having replacement programs that plug replace ``sendmail'' helps in installing alternative MTAs, it essentially makes the configura- tion of the system depend on hand installing new programs in /usr. This leads to configuration problems for many administrators, since they may wish to install a new MTA without altering the system provided /usr. (This may be, for example, to avoid having upgrade problems when a new version of the system is installed over the old.) They may also have a shared /usr among several machines, and may wish to avoid placing implicit configuration information in a read-only /usr. The mailwrapper program is designed to replace /usr/sbin/sendmail and to invoke an appropriate MTA based on configuration information placed in /etc/mailer.conf. This permits the administrator to configure which MTA is to be invoked on the system at run time. EXIT STATUS
mailwrapper exits 0 on success, and >0 if an error occurs. FILES
Configuration for mailwrapper is kept in /etc/mailer.conf. /usr/sbin/sendmail is typically set up as a symlink to mailwrapper which is not usually invoked on its own. DIAGNOSTICS
mailwrapper will print a diagnostic if its configuration file is missing or malformed, or does not contain a mapping for the name under which it was invoked. SEE ALSO
mail(1), mailq(1), newaliases(1), postfix(1), mailer.conf(5) HISTORY
The mailwrapper program appeared in NetBSD 1.4. AUTHORS
Perry E. Metzger <perry@piermont.com> BUGS
The entire reason this program exists is a crock. Instead, a command for how to submit mail should be standardized, and all the ``behave differently if invoked with a different name'' behavior of things like mailq(1) should go away. BSD
April 10, 2010 BSD

Check Out this Related Man Page

MAILSTATS(8)						      System Manager's Manual						      MAILSTATS(8)

NAME
mailstats - display mail statistics SYNOPSIS
mailstats [-c] [-o] [-p] [-P] [-C cffile] [-f stfile] DESCRIPTION
The mailstats utility displays the current mail statistics. First, the time at which statistics started being kept is displayed, in the format specified by ctime(3). Then, the statistics for each mailer are displayed on a single line, each with the following white space separated fields: M The mailer number. msgsfr Number of messages from the mailer. bytes_from Kbytes from the mailer. msgsto Number of messages to the mailer. bytes_to Kbytes to the mailer. msgsrej Number of messages rejected. msgsdis Number of messages discarded. msgsqur Number of messages quarantined. Mailer The name of the mailer. After this display, a line totaling the values for all of the mailers is displayed (preceded with a ``T''), separated from the previous information by a line containing only equals (``='') characters. Another line preceded with a ``C'' lists the number of TCP connections. The options are as follows: -C Read the specified file instead of the default sendmail configuration file. -c Try to use submit.cf instead of the default sendmail configuration file. -f Read the specified statistics file instead of the statistics file specified in the sendmail configuration file. -P Output information in program-readable mode without clearing statistics. -p Output information in program-readable mode and clear statistics. -o Don't display the name of the mailer in the output. The mailstats utility exits 0 on success, and >0 if an error occurs. FILES
/etc/mail/sendmail.cf The default sendmail configuration file. /var/lib/sendmail/statistics The default sendmail statistics file. /etc/mail/statistics The symbolic link to the statistics file. SEE ALSO
mailq(1), sendmail(8) $Date: 2002/06/27 22:47:29 $ MAILSTATS(8)
Man Page