1mailq(1)                         User Commands                        mailq(1)
2
3
4

NAME

6       mailq - print the mail queue
7

SYNOPSIS

9       /usr/bin/mailq [-Ac] [-q subarg] [-v]
10
11

DESCRIPTION

13       The  mailq  utility  displays a summary of the mail messages queued for
14       future delivery.
15
16
17       The first line displayed for each mail message shows the internal iden‐
18       tifier  used  on  this host for the message, the size of the message in
19       bytes, the date and time the message was accepted into the  queue,  and
20       the  envelope  sender  of  the  message. The second line of the display
21       shows the error message that caused this message to be retained in  the
22       queue.  This  line  will  not be displayed if the message is being pro‐
23       cessed for the first time.
24
25
26       The mailq utility used to be identical to sendmail -bp. Now  it  checks
27       for  the  authorization attribute, solaris.mail.mailq. If the check for
28       the invoking user succeeds, sendmail -bp is executed with the remaining
29       argument  vector.  Otherwise,  an error message is printed. This autho‐
30       rization attribute is by default enabled for all users. It can be  dis‐
31       abled by modifying the Basic Solaris User entry in prof_attr(4).
32

OPTIONS

34       The following options are supported:
35
36       -Ac              Like  sendmail(1M),  this flag tells mailq to use sub‐
37                        mit.cf rather than sendmail.cf even  if   the   opera‐
38                        tion  mode  does  not indicate an initial mail submis‐
39                        sion.  This  will   result   in   the   client   queue
40                        /var/spool/clientmqueue  being  displayed  rather than
41                        the default server queue /var/spool/mqueue.
42
43
44       -qp[time]        Similar to -qtime, except that instead of periodically
45                        forking a child to process the queue, sendmail forks a
46                        single persistent child for each queue that alternates
47                        between  processing  the queue and sleeping. The sleep
48                        time is given as the argument. The sleep time  default
49                        is  1 second. The process will always sleep at least 5
50                        seconds if the queue was empty in the  previous  queue
51                        run.
52
53
54       -qf              Processes  saved   messages in the queue once and does
55                        not fork(), but runs in the foreground.
56
57
58       -qG name         Processes jobs in the queue group called name only.
59
60
61       -q[!]I substr    Limits processed jobs to those containing substr as  a
62                        substring of the queue id, or not when ! is specified.
63
64
65       -q[!]R substr    Limits  processed jobs to those containing substr as a
66                        substring of one of the recipients, or not when  !  is
67                        specified.
68
69
70       -q[!]S substr    Limits  processed jobs to those containing substr as a
71                        substring of the sender, or not when ! is specified.
72
73
74       -v               Prints verbose information. This adds the priority  of
75                        the  message  and  a  single character indicator (+ or
76                        blank) indicating  whether a warning message has  been
77                        sent  on  the first line of the message. Additionally,
78                        extra lines may be intermixed with the recipients that
79                        indicate  the  "controlling  user"  information.  This
80                        shows who will own any programs that are  executed  on
81                        behalf  of this message and the name of the alias this
82                        command is expanded from, if any.
83
84

EXIT STATUS

86       0      Successful completion.
87
88
89       >0     An error occurred.
90
91

FILES

93       /etc/security/prof_attr    local   source   for    execution    profile
94                                  attributes
95
96
97       /var/spool/mqueue          default server queue
98
99
100       /var/spool/clientmqueue    client queue
101
102

ATTRIBUTES

104       See attributes(5) for descriptions of the following attributes:
105
106
107
108
109       ┌─────────────────────────────┬─────────────────────────────┐
110       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
111       ├─────────────────────────────┼─────────────────────────────┤
112       │Availability                 │SUNWsndmu                    │
113       └─────────────────────────────┴─────────────────────────────┘
114

SEE ALSO

116       sendmail(1M), prof_attr(4), attributes(5)
117
118
119
120SunOS 5.11                        10 Jul 2002                         mailq(1)
Impressum