sendmail administration add-on tools
|
Download
To obtain my PGP/GnuPG key, see these instructions. Back to software page. |
IntroductionThis package provides two scripts that can help administer a mail server that uses the sendmail Mail Transport Agent (MTA). I use these scripts frequently on my own servers; perhaps others will find them useful, too. mailqsmailqs reads the output from sendmail's mailq(8) command and summarizes each queue entry, one entry per line. As such, its output is more easily consumed by other scripts. For example, consider this sample output from mailq(8):
Running mailqs produces the following output: # mailqs m0N1UBG3044481 bmc@example.org seb@example.edu m0N1hTZV044788 owner-foo@example.org foobar@yahoo.example.com, joe@comcast.example.net The first column of output shows the sendmail queue ID. The second column shows the sender of the message. The remaining columns lists the intended recipients. mailqs also supports a -s (or --short) option that truncates the output, if necessary, so that it won't exceed 80 columns: # mailqs -s m0N1UBG3044481 bmc@example.org seb@example.edu m0N1hTZV044788 owner-foo@example.org foobar@yahoo.example.com, joe@comcas ... Here's a full list of mailqs options:
rmmqrmmq is a convenience command for removing items from a sendmail queue. When you run mailq(8) or mailqs, you get a list of sendmail queue IDs. These queue IDs map to several files in a sendmail queue directory. This command automatically maps the queue IDs to the files and removes them for you. Options:
InstallationThe usual:
sh install-home.sh AuthorBrian M. Clapper, <bmc @ clapper . org> Copyright© 2008 Brian M. Clapper LicenseBSD-style license. See accompanying LICENSE file. $Id: index.html,v 1.7 2005/05/20 14:37:58 bmc Exp $
|