Mail queue in Postfix from console

View the message queue:

[[email protected]]# mailq

The output fields of this command are:

  1. Message identifier in the queue, if there is a “*” after the identifier – the letter is in the active delivery queue, if the “!” – the letter is in the waiting queue and there will be no attempts to deliver it.
  2. The size of the message.
  3. Time of acceptance of the letter.
  4. Sender of the message.
  5. The command output may indicate the reason why the letter was not sent and remained in the delivery queue.
  6. The recipient of the message.

Delete a specific email:

[[email protected]]# postsuper -d идентификатор

Delete all emails:

[[email protected]]# postsuper -d all