NAME
SYNOPSIS
DESCRIPTION
OPTIONS
BUGS
FILES
SEE ALSO
AUTHOR

NAME

mailq - zmailer mail queue printer

SYNOPSIS

mailq [ -i ] [ -p port_or_socket_path ] [ -s[s] ] [ -t ] [ -u user ] [ -U username/password ] [ -v[v] ] [ -d ] [ -S ] [ -Q[Q[Q]] ] [ host ]

DESCRIPTION

mailq queries a running scheduler process on a specified host for its current internal model of the mail transport queues and presents this information to the user. By default, the scheduler process queried is the one relevant to the local host, i.e. either a local process or a scheduler on a mail server host. If the optional host argument is specified, the scheduler running on that host will be queried instead.

If the scheduler has used -Q option to shrink the amount of output, the mailq must also use -Q option to report about the queue status at the server in ``queue­summary'' format.

The information printed for each queued message is labelled by its message file id, which is the name of the original message file in the POSTOFFICE/queue directory and of the message control file in the POSTOFFICE/transport directory. The information may be different for different channel/host combinations in destination addresses in a single message, so the status information is grouped in clusters labelled by the channel and host for addresses in the group.

The text associated with a particular deferred destination in a message originates in a transport agent. The scheduler annotates the transport agent messages with retry information when an address has been scheduled for later delivery attempts, or with text stating why a retry that should have happened was delayed. A lack of annotations indicates a delivery attempt is in progress.

OPTIONS

The normal action is to print the transport queue.

-v

will produce verbose transport queue output in that message id's, and sender and recipient addresses, will be listed in addition to the normal status line. Doubling this option asks for extra verbose output, presently this adds the message size in bytes after the message id. This option is only useful if mailq can read the message control files in the postoffice. Most users can only see the data for their own messages.

-s

asks for a status of the router, scheduler, and transport queues. The first two are determined by scanning the appropriate directories and counting files, whereas the status of the transport queue is retrieved from the running scheduler process. Doubling this option will cause mailq to exit after printing this summary.

-S

shows summary of files queued to the channel/destination. Listed info tells the number of files, and if available, also total­ and mean­size of those files.

-t

-i

disables any previous verbose flags to produce the normal terse output.

prints a verbose transport queue output (see the -v flag) for your own messages only.

-u user

selects messages sent by the specified user id. This option is usually only useful to the Postmaster on the system.

-U username/password

Defines username/password pair for MAILQ­V2 mode connection, in case the default "nobody"/"nobody" is not proper.

-d

prints the information received from the scheduler as is. This will override the verbose option.

-p port

-Q

-QQ

specifies an alternate TCP/IP port to connect to a scheduler at.

-QQQ

Two Q:s produces an abbreviated summary, while one Q gives full report of all threads. Three Q:s produces only "SNMP variables"


report.


work on (if available), or if none can be found, moves the process to IDLE state. If a new thread is found for processing, process moves there, and goes to STUFFing state.

IDLE

(This is very fast transient state.) The TA process is being idled, next state for the process will be in thread­group idle­pool.

UF=

How many messages out of all present in the queue have not yet been fed to the current TA process set ? ("UnFed count")

QA=

Age of oldest message in the queue at this thread. ("QueueAge")

BUGS

MAILQ­V2 isn't described yet (nor is that protocol implementation complete)

FILES

/etc/zmailer.conf
/var/spool/postoffice/transport (POSTOFFICE/transport)
/var/spool/postoffice/queue (POSTOFFICE/queue)

SEE ALSO

zmailer(1), router(8), scheduler(8)

AUTHOR

This program authored and copyright by:
Rayan Zachariassen <rayan@cs.toronto.edu>
Partial rewrite for ZMailer 2.99/3.0 by:
Matti Aarnio <mea@nic.funet.fi>