Prev | Current Page 61 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

*
1.7.3 Show Queue Mode (-bp)
The sendmail program can also display the contents of its queue directories. It can do
this in two ways: by running as a program named mailq or by being run as sendmail
* Note that some multicast-capable versions of Unix allow multiple sendmail daemons to run simultaneously.
This is a known bug in the SO_REUSEADDR ioctl(2) call for Transmission Control Protocol (TCP) under
multicasting. Contact your vendor for a fix.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
22 | Chapter 1: Some Basics
withth e -bp command-line switch. Whichever way you run it, the contents of the
queue are printed. If the queue is empty, sendmail prints the following:
/var/spool/mqueue is empty
If, on the other hand, mail is waiting in the queue, the output is far more verbose,
possibly containing lines similar to these:
/var/spool/mqueue (1 requests)
--Q-ID------ --Size-- ----Q-Time------ ------------Sender/Recipient------------
d8BJXvF13031* 702 Fri Dec 14 16:51
Deferred: Host fbi.dc.gov is down

Here, the output produced with the -bp switch shows that only one mail message is
in the queue. If there were more, each entry would look pretty much the same as
this. Each message results in at least two lines of output.


Pages:
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73