$linuxjunkies
>

postsuper(1)

Postfix superintendent utility for managing the queue and configuration.

UbuntuDebianFedoraArch

Synopsis

postsuper [-i queue_id] [-p] [-d queue_id] [-h queue_id] [-r queue_id] [-s site_name] [directory]

Description

postsuper is the Postfix queue management and administration tool. It allows administrators to delete, hold, or requeue messages in the mail queue, and perform other queue maintenance operations. postsuper requires superuser privileges.

The command operates on Postfix queue directories (usually /var/spool/postfix/deferred, incoming, and active). Queue IDs are unique message identifiers that identify messages waiting for delivery.

postsuper can also be used to compress and update the queue database after manual modifications or system maintenance.

Common options

FlagWhat it does
-d queue_idDelete one or more messages from the queue by queue ID or pattern
-h queue_idPut one or more messages on hold; they won't be processed until released
-r queue_idRequeue one or more messages; move them back to the incoming queue
-i queue_idInspect and display details of a queued message
-pPurge the queue: delete all messages from the queue directory
-s site_nameRename site in queue entries (migration/renaming utility)
-c config_dirRead configuration from the specified directory instead of default
-vEnable verbose output; show actions being performed

Examples

Delete all messages from the queue; use with caution

postsuper -d ALL

Put the message with ID 3A12F2A435E on hold to prevent delivery

postsuper -h 3A12F2A435E

Requeue the message 3A12F2A435E; it will be processed again

postsuper -r 3A12F2A435E

Delete all messages in the deferred queue only

postsuper -d ALL deferred

Display detailed information about queued message 3A12F2A435E

postsuper -i 3A12F2A435E

Requeue multiple messages whose IDs are listed in qids.txt, one per line

postsuper -r - < /tmp/qids.txt

Delete all messages starting with 3A12F prefix with verbose output

postsuper -d 3A12F* -v

Purge only the hold queue directory

postsuper -p /var/spool/postfix/hold

Related commands