mailq
The name mailq (a synonym for the
-bp
command-line switch) causes
sendmail to print the
contents of its mail queues and then exit (Printing the Queue on page
422).
Note that the location of the queues is set with the
QueueDirectory
option (QueueDirectory on page
1070). That location can be overridden from the
command line, but if it is,
sendmail might give up its
special privileges (unless it was run by
root).
Get sendmail, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.