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).
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access