Enter your email address:

Delivered by FeedBurner

How to delete / purge an email from postfix queue


StumbleUpon Toolbar

Today I sent an email to a person with an attachment that was not supposed to be sent, so I had to log into my postfix server and delete it from the queue before it leaves the server.

Fortunately, I realized before it leaves, and thanks God the email was big enough for me to have time to log in, find the message and delete it.

If you ever need to delete an email from Postfix queue, you have to follow this steps.

Once logged in your server find the message you are looking for.

sudo postqueue -p

This is going to list the current active queue in your server, something like this.

5642B4D8647* 1683500 Tue Jun  3 08:37:27  xxxxxx@xxxxxxx.com
                                         rrrrrrrrr@hotmail.com

9359B4D82B1* 1635730 Tue Jun  3 08:36:53  xxxxxx@xxxxxxx.com
                                         yyyyyyyy@hotmail.com

The first number is the message ID, the asterisk behind it, denotes that the messages is currently in the process of being sent, to delete it enter.

postsuper -d 9359B4D82B1

This is going to delete message ID=9359B4D82B1, from the queue.

Trackback URL for this post:

http://www.go2linux.org/trackback/500
StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting