POSTQUEUE(1) | General Commands Manual | POSTQUEUE(1) |
postqueue - Postfix queue control
To flush the mail queue: postqueue [-v] [-c config_dir] -f postqueue [-v] [-c config_dir] -i queue_id postqueue [-v] [-c config_dir] -s site To list the mail queue: postqueue [-v] [-c config_dir] -j postqueue [-v] [-c config_dir] -p
The postqueue(1) command implements the Postfix user interface for queue management. It implements operations that are traditionally available via the sendmail(1) command. See the postsuper(1) command for queue operations that require super-user privileges such as deleting a message from the queue or changing the status of a message.
The following options are recognized:
This option implements the traditional "sendmail -q" command, by contacting the Postfix qmgr(8) daemon.
Warning: flushing undeliverable mail frequently will result in poor delivery performance of all other mail.
This option implements the traditional sendmail -qI command, by contacting the flush(8) server.
This feature is available with Postfix version 2.4 and later.
This feature is available in Postfix 3.1 and later.
Each queue entry shows the queue file ID, message size, arrival time, sender, and the recipients that still need to be delivered. If mail could not be delivered upon the last attempt, the reason for failure is shown. The queue ID string is followed by an optional status character:
This feature is available in Postfix 3.5 and later.
This option implements the traditional "sendmail -qRsite" command, by contacting the Postfix flush(8) daemon.
Each JSON object represents one queue file; it is emitted as a single text line followed by a newline character.
Object members have string values unless indicated otherwise. Programs should ignore object members that are not listed here; the list of members is expected to grow over time.
This feature is available in Postfix 3.5 and later.
This program is designed to run with set-group ID privileges, so that it can connect to Postfix daemon processes.
RFC 7159 (JSON notation)
Problems are logged to syslogd(8) or postlogd(8), and to the standard error stream.
The following main.cf parameters are especially relevant to this program. The text below provides only a parameter summary. See postconf(5) for more details including examples.
Available in Postfix version 2.2 and later:
/var/spool/postfix, mail queue
qmgr(8), queue manager showq(8), list mail queue flush(8), fast flush service sendmail(1), Sendmail-compatible user interface postsuper(1), privileged queue operations postlogd(8), Postfix logging syslogd(8), system logging
Use "postconf readme_directory" or "postconf html_directory" to locate this information.
ETRN_README, Postfix ETRN howto
The Secure Mailer license must be distributed with this software.
The postqueue command was introduced with Postfix version 1.1.
Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA Wietse Venema Google, Inc. 111 8th Avenue New York, NY 10011, USA