2 .\" Copyright (c) 2002 Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH MAILQ 1 "Jul 10, 2002"
8 mailq \- print the mail queue
12 \fB/usr/bin/mailq\fR [\fB-Ac\fR] [\fB-q\fR \fIsubarg\fR] [\fB-v\fR]
18 The \fBmailq\fR utility displays a summary of the mail messages queued for
22 The first line displayed for each mail message shows the internal identifier
23 used on this host for the message, the size of the message in bytes, the date
24 and time the message was accepted into the queue, and the envelope sender of
25 the message. The second line of the display shows the error message that caused
26 this message to be retained in the queue. This line will not be displayed if
27 the message is being processed for the first time.
30 The \fBmailq\fR utility used to be identical to \fBsendmail\fR \fB-bp\fR. Now
31 it checks for the authorization attribute, \fBsolaris.mail.mailq\fR. If the
32 check for the invoking user succeeds, \fBsendmail\fR \fB-bp\fR is executed with
33 the remaining argument vector. Otherwise, an error message is printed. This
34 authorization attribute is by default enabled for all users. It can be disabled
35 by modifying the Basic Solaris User entry in \fBprof_attr\fR(4).
39 The following options are supported:
46 Like \fBsendmail\fR(1M), this flag tells \fBmailq\fR to use \fBsubmit.cf\fR
47 rather than \fBsendmail.cf\fR even if the operation mode does not
48 indicate an initial mail submission. This will result in the client queue
49 \fB/var/spool/clientmqueue\fR being displayed rather than the default server
50 queue \fB/var/spool/mqueue\fR.
56 \fB\fB-q\fR\fBp\fR[\fItime\fR] \fR
59 Similar to \fB-q\fR\fItime\fR, except that instead of periodically forking a
60 child to process the queue, \fBsendmail\fR forks a single persistent child for
61 each queue that alternates between processing the queue and sleeping. The sleep
62 time is given as the argument. The sleep time default is \fB1\fR second. The
63 process will always sleep at least 5 seconds if the queue was empty in the
73 Processes saved messages in the queue once and does not \fBfork()\fR, but runs
80 \fB\fB-q\fR\fBG\fR \fIname\fR\fR
83 Processes jobs in the queue group called \fIname\fR only.
89 \fB\fB-q\fR[\fB!\fR]\fBI\fR \fIsubstr\fR\fR
92 Limits processed jobs to those containing \fIsubstr\fR as a substring of the
93 queue id, or not when \fB!\fR is specified.
99 \fB\fB-q\fR[\fB!\fR]\fBR\fR \fIsubstr\fR\fR
102 Limits processed jobs to those containing \fIsubstr\fR as a substring of one of
103 the recipients, or not when \fB!\fR is specified.
109 \fB\fB-q\fR[\fB!\fR]\fBS\fR \fIsubstr\fR\fR
112 Limits processed jobs to those containing \fIsubstr\fR as a substring of the
113 sender, or not when \fB!\fR is specified.
122 Prints verbose information. This adds the priority of the message and a single
123 character indicator (\fB+\fR or blank) indicating whether a warning message
124 has been sent on the first line of the message. Additionally, extra lines may
125 be intermixed with the recipients that indicate the "controlling user"
126 information. This shows who will own any programs that are executed on behalf
127 of this message and the name of the alias this command is expanded from, if
138 Successful completion.
154 \fB\fB/etc/security/prof_attr\fR\fR
157 local source for execution profile attributes
163 \fB\fB/var/spool/mqueue\fR\fR
172 \fB\fB/var/spool/clientmqueue\fR\fR
181 \fBsendmail\fR(1M), \fBprof_attr\fR(4), \fBattributes\fR(5)