1MAILQ(1)                    General Commands Manual                   MAILQ(1)
2
3
4

NAME

6       mailq - print the mail queue
7

SYNOPSIS

9       mailq [-Ac] [-q...]  [-v]
10

DESCRIPTION

12       Mailq prints a summary of the mail messages queued for future delivery.
13
14       The  first  line printed for each message shows the internal identifier
15       used on this host for the message with a possible status character, the
16       size  of  the  message  in  bytes,  the  date  and time the message was
17       accepted into the queue, and the envelope sender of the  message.   The
18       second  line  shows  the  error  message that caused this message to be
19       retained in the queue; it will not be present if the message  is  being
20       processed  for  the  first time.  The status characters are either * to
21       indicate the job is being processed; X to indicate that the load is too
22       high to process the job; and - to indicate that the job is too young to
23       process.  The following lines show message recipients, one per line.
24
25       Mailq is identical to ``sendmail -bp''.
26
27       The relevant options are as follows:
28
29       -Ac    Show the mail submission queue specified in  /etc/mail/submit.cf
30              instead of the MTA queue specified in /etc/mail/sendmail.cf.
31
32       -qL    Show  the  "lost"  items in the mail queue instead of the normal
33              queue items.
34
35       -qQ    Show the quarantined items in the mail queue instead of the nor‐
36              mal queue items.
37
38       -q[!]I substr
39              Limit  processed  jobs to those containing substr as a substring
40              of the queue id or not when !  is specified.
41
42       -q[!]Q substr
43              Limit processed jobs to quarantined jobs containing substr as  a
44              substring of the quarantine reason or not when !  is specified.
45
46       -q[!]R substr
47              Limit  processed  jobs to those containing substr as a substring
48              of one of the recipients or not when !  is specified.
49
50       -q[!]S substr
51              Limit processed jobs to those containing substr as  a  substring
52              of the sender or not when !  is specified.
53
54       -v     Print  verbose  information.  This adds the priority of the mes‐
55              sage and a single character indicator (``+'' or blank)  indicat‐
56              ing whether a warning message has been sent on the first line of
57              the message.  Additionally, extra lines may be  intermixed  with
58              the  recipients indicating the ``controlling user'' information;
59              this shows who will own any programs that are executed on behalf
60              of  this message and the name of the alias this command expanded
61              from, if any.  Moreover, status messages for each recipient  are
62              printed if available.
63
64       Several  sendmail.cf  options influence the behavior of the mailq util‐
65       ity: The number of items printed  per  queue  group  is  restricted  by
66       MaxQueueRunSize  if  that  value is set.  The status character * is not
67       printed for some values of QueueSortOrder, e.g., filename, random, mod‐
68       ification,  and none, unless a -q option is used to limit the processed
69       jobs.
70
71       The mailq utility exits 0 on success, and >0 if an error occurs.
72

SEE ALSO

74       sendmail(8)
75

HISTORY

77       The mailq command appeared in 4.0BSD.
78
79
80
81                         $Date: 2013-11-22 20:51:55 $                 MAILQ(1)
Impressum