mailq(1) — Commands
NAME
mailq − Displays the contents of the mail queue
SYNOPSIS
mailq [-v]
DESCRIPTION
The mailq command displays a list of messages in the mail queue. The mailq command is the same as the sendmail command with the -bp flag; see sendmail for more information. ,
EXAMPLES
1.The mailq command lists the mail queue as shown in the following example:
Mail Queue (1 request)
--QID----Size----Q-Time---------Sender/Recipient---
AA002508 3Thu Dec 17 10:01root
2.The mailq -v command lists the mail queue as shown in the following example:
Mail Queue (1 request)
--QID----Size--Priority----Q-Time-----Sender/Recipient-
AA002508 31005Dec 17 10:01root
(Output might be formatted differently on your system.)
The fields have the following meaning:
QIDContains the message queue ID of the message.
SizeContains the number of bytes in the body of the message (header information not included).
PriorityContains the priority of the message.
Q-TimeContains the date that the message entered the queue.
Sender/Recipient
Contains the user ID of the sender (first), and then the user ID of the receiver of the message. In this example, a message also indicates the status of the message.
FILES
/var/spool/mqueueContains the log file and temporary files associated with the messages in the mail queue.
RELATED INFORMATION
Commands: sendmail(8).