Postfix
stores mails in a queue before sending it. Sometimes you wish to remove the
mails from the queue but wonder how. Postfix has a command line called
postsuper which can be used to delete unsent mails from the queue. Before
removing the mail from the queue it is good idea to list all mails in the
queue. By issuing the command:
# mailq
You
will list all of the mails which are queued or simply timed out for some
reason.
If
you want to remove a mail from the "mailq" type:
postsuper -d mailID
Where
mailID is the ID of the mail in the mail queue.
Issuing
the command:
postsuper -d ALL
Will
delete all queued mails from the mailq.
No comments:
Post a Comment