How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

December 15, 2011

Deleting mail in postfix queue (mailq)

Filed under: Linux — admin @ 10:43 am

Well another problem.

One friend call me  that his server can’t send / receive e-mails. After I got ssh logins I see with mailq that where more then 20000 e-mail on queue.

Well I decided to remove all e-mail from queue  but how to do this.

Well the magic command is :

postsuper -d ALL

this will erase all e-mail from mailq queue

If you want to remove just one e-mail id run

postsuper -d mailID

Hope will help someone.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress