| postsuper | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
| NAME | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
| SYNOPSIS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
postsuper [-psv] [-c config_dir] [-d queue_id]
| DESCRIPTION | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
By default, postsuper(1) performs the operations requested with the -s and -p command-line options on all Postfix queue directories - this includes the incoming, active and deferred directories with mail files and the bounce, defer, trace and flush directories with log files.
Options:
If a queue_id of - is specified, the program reads queue IDs from standard input. For example, to delete all mail with exactly one recipient user@example.com:
mailq | tail +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" }
# $7=sender, $8=recipient1, $9=recipient2
{ if ($8 == "user@example.com" && $9 == "")
print $1 }
' | tr -d '*!' | postsuper -d -
Specify "-d ALL" to remove all messages; for example, specify "-d ALL deferred" to delete all mail in the deferred queue. As a safety measure, the word ALL must be specified in upper case.
Warning: Postfix queue IDs are reused. There is a very small possibility that postsuper deletes the wrong message file when it is executed while the Postfix mail system is delivering mail.
The scenario is as follows:
If a queue_id of - is specified, the program reads queue IDs from standard input.
Specify "-h ALL" to hold all messages; for example, specify "-h ALL deferred" to hold all mail in the deferred queue. As a safety measure, the word ALL must be specified in upper case.
Note: while mail is "on hold" it will not expire when its time in the queue exceeds the maximal_queue_lifetime or bounce_queue_lifetime setting. It becomes subject to expiration after it is released from "hold".
This feature is available in Postfix 2.0 and later.
If a queue_id of - is specified, the program reads queue IDs from standard input.
Note: specify "postsuper -r" to release mail that was kept on hold for a significant fraction of $maximal_queue_lifetime or $bounce_queue_lifetime, or longer.
Specify "-H ALL" to release all mail that is "on hold". As a safety measure, the word ALL must be specified in upper case.
This feature is available in Postfix 2.0 and later.
Alternatively, if a queue_id of - is specified, the program reads queue IDs from standard input.
Specify "-r ALL" to requeue all messages. As a safety measure, the word ALL must be specified in upper case.
A requeued message is moved to the maildrop queue, from where it is copied by the pickup(8) and cleanup(8) daemons to a new queue file. In many respects its handling differs from that of a new local submission.
The address rewriting context (local or remote) is the same as when the message was received.
This feature is available in Postfix 1.1 and later.
| DIAGNOSTICS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
postsuper(1) reports the number of messages deleted with -d, the number of messages requeued with -r, and the number of messages whose queue file name was fixed with -s. The report is written to the standard error stream and to syslogd(8).
| ENVIRONMENT | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
| BUGS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
| CONFIGURATION PARAMETERS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
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.
| SEE ALSO | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
sendmail(1), Sendmail-compatible user interface postqueue(1), unprivileged queue operations
| LICENSE | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
The Secure Mailer license must be distributed with this software.
| AUTHOR(S) | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA
| Sommaire | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
| Table des mots clés | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
| -c config_dir | DESCRIPTION |
| -d queue_id | DESCRIPTION |
| -h queue_id | DESCRIPTION |
| -p | DESCRIPTION |
| -r queue_id | DESCRIPTION |
| -s | DESCRIPTION |
| -v | DESCRIPTION |
| config_directory (see 'postconf -d' output) | CONFIGURATION PARAMETERS |
| hash_queue_depth (1) | CONFIGURATION PARAMETERS |
| hash_queue_names (deferred, defer) | CONFIGURATION PARAMETERS |
| queue_directory (see 'postconf -d' output) | CONFIGURATION PARAMETERS |
| syslog_facility (mail) | CONFIGURATION PARAMETERS |
| syslog_name (postfix) | CONFIGURATION PARAMETERS |