>Как в Postfix удалить сообщение из очереди на отправку.
>У команд postqueue и sendmail что-то не нашел соответствующих ключей.
postsuper -d queue_id
-d queue_id
Delete one message with the named queue ID from the
named mail queue(s) (default: hold, incoming,
active and deferred). If a queue_id of - is speci-
fied, the program reads queue IDs from standard
input. For example, to delete all mail from or to
user@example.com:
mailq | tail +2 | awk 'BEGIN { RS = "" } \
/ user@example\.com$/ { print $1 } \
' | tr -d '*!' | postsuper -d -
Specify -d ALL to remove all messages; for example,
specify -d ALL deferred to delete mail in the
deferred queue. As a safety measure, the word ALL
must be specified in upper case.
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 running.
The scenario is as follows:
1) The Postfix queue manager deletes the mes-
sage that postsuper is supposed to delete,
because Postfix is finished with the mes-
sage.
2) New mail arrives, and the new message is
given the same queue ID as the message that
postsuper is supposed to delete. The proba-
bility for reusing a deleted queue ID is
about 1 in 2**15 (the number of different
microsecond values that the system clock can
distinguish within a second).
3) postsuper deletes the new message, instead
of the old message that it should have
deleted.