[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Commands Reference, Volume 3

mailq Command

Purpose

Prints the contents of the mail queue.

Syntax

/usr/sbin/mailq [ -v ]

Description

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.

Examples

The mailq command prints two types of lists:

The fields have the following meanings:

QID Contains the message queue ID of the message.
Size Contains the number of bytes in the body of the message (heading information not included).
Priority Contains the priority of the message, based primarily on the size of the message.
Q-Time Contains the time the message entered the queue.
Sender/Recipient Contains the user ID of the sender and the recipient of the message. A message on the line between the sender and the recipient indicates the status of the message.

Files

/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.

Related Information

The sendmail command.

Managing the Mail Queue Files and Directories in AIX Version 4.3 System Management Guide: Communications and Networks.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]