Prints the contents of the mail queue.
/usr/sbin/mailq [ -v ]
The mailq command prints a list of messages that are in the mail queue. The mailq command is the same as the sendmail -bp command.
Specify the -v flag to display message priority.
The mailq command prints two types of lists:
Mail Queue (1 request)
---QID---- --Size-- -----Q-Time----- ------Sender/Recipient-----
AA02508 3 Thu Dec 17 10:01 root
(User unknown)
bad_user Mail Queue (1 request)
---QID---- --Size-- -Priority- ---Q-Time--- --Sender/Recipient--
AA02508 3 1005 Dec 17 10:01 root
(User unknown)
bad_userThe fields have the following meanings:
| /usr/sbin/mailq | Contains the mailq command. |
| /var/spool/mqueue directory | Contains the log file and temporary files associated with the messages in the mail queue. |
The sendmail command.
Managing the Mail Queue Files and Directories in AIX Version 4.3 System Management Guide: Communications and Networks.