2015-12-01

Exim is a mail transfer agent (MTA) used on Unix-like operating systems. It aims to be a general and flexible mailer with extensive facilities for checking incoming e-mail. For more information you can see Exim documentation.



In this article i will show some commands to removing all messages from the Mail Queue. Please Follow the Steps.

Step 1 :  To print a list of the messages in the queue, enter the following command :

# exim -bp

Step 2 :  To remove a message from the queue, enter the following command :

# exim -Mrm {message-id}



Step 3 :  To remove all messages from the queue, enter the following command :

# exim -bp | awk ‘/^ *[0-9]+[mhd]/{print “exim -Mrm ” $3}’ | bash

Step 4 :  Dallas Marlow, suggested following clean command:

# exim -bp | exiqgrep -i | xargs exim -Mrm

That’s it !

The post How to : Exim Remove All messages From the Mail Queue appeared first on Linux & Windows Security Solutions.

How to : Exim Remove All messages From the Mail Queue was first posted on December 1, 2015 at 11:37 am.
©2015 "Linux & Windows Security Solutions". Use of this feed is for personal non-commercial use only. If you are not reading this article in your feed reader, then the site is guilty of copyright infringement. Please contact me at admin@ashishkale.in

Show more