1 .\" Copyright (c) 1998-2000, 2002, 2007 Sendmail, Inc. and its suppliers.
2 .\" All rights reserved.
3 .\" Copyright (c) 1983, 1997 Eric P. Allman. All rights reserved.
4 .\" Copyright (c) 1985, 1990, 1993
5 .\" The Regents of the University of California. All rights reserved.
7 .\" By using this file, you agree to the terms and conditions set
8 .\" forth in the LICENSE file which can be found at the top level of
9 .\" the sendmail distribution.
12 .\" $Id: mailq.1,v 8.21 2007/03/22 18:21:27 ca Exp $
14 .TH MAILQ 1 "$Date: 2007/03/22 18:21:27 $"
17 \- print the mail queue
25 prints a summary of the mail messages queued for future delivery.
27 The first line printed for each message
28 shows the internal identifier used on this host
29 for the message with a possible status character,
30 the size of the message in bytes,
31 the date and time the message was accepted into the queue,
32 and the envelope sender of the message.
33 The second line shows the error message that caused this message
34 to be retained in the queue;
35 it will not be present if the message is being processed
37 The status characters are either
39 to indicate the job is being processed;
41 to indicate that the load is too high to process the job; and
43 to indicate that the job is too young to process.
44 The following lines show message recipients,
48 is identical to ``sendmail -bp''.
50 The relevant options are as follows:
53 Show the mail submission queue specified in
54 .I /etc/mail/submit.cf
55 instead of the MTA queue specified in
56 .IR /etc/mail/sendmail.cf .
59 Show the "lost" items in the mail queue instead of the normal queue items.
62 Show the quarantined items in the mail queue instead of the normal queue
65 \fB\-q\fR[\fI!\fR]I substr
66 Limit processed jobs to those containing
68 as a substring of the queue id or not when
72 \fB\-q\fR[\fI!\fR]Q substr
73 Limit processed jobs to quarantined jobs containing
75 as a substring of the quarantine reason or not when
79 \fB\-q\fR[\fI!\fR]R substr
80 Limit processed jobs to those containing
82 as a substring of one of the recipients or not when
86 \fB\-q\fR[\fI!\fR]S substr
87 Limit processed jobs to those containing
89 as a substring of the sender or not when
94 Print verbose information.
95 This adds the priority of the message and
96 a single character indicator (``+'' or blank)
97 indicating whether a warning message has been sent
98 on the first line of the message.
99 Additionally, extra lines may be intermixed with the recipients
100 indicating the ``controlling user'' information;
101 this shows who will own any programs that are executed
102 on behalf of this message
103 and the name of the alias this command expanded from, if any.
104 Moreover, status messages for each recipient are printed
107 Several sendmail.cf options influence the behavior of the
110 The number of items printed per queue group is restricted by
112 if that value is set.
115 is not printed for some values of
124 option is used to limit the processed jobs.
128 utility exits 0 on success, and >0 if an error occurs.