How to remove frozen mails exim

How to remove frozen mails exim , Now a days lot of spammer in internet , so you need to check your exim queue & you need to delete exim queue. You can check mail queue by using a cPanel plugins “ConfigServer Mail Queues” if you running cPanel.  Also you can check by using SSH commends, please see the post : How to Check spamming on linux server.
You can remove them by using following SSH command.

To remove a message from the queue, enter:

exim -Mrm {message-id}

To remove all messages from the queue, enter:

exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash


exim -bp|grep frozen|awk ‘{print $3}’ |xargs exim -Mrm

Or you can use:

exim -bp | grep \< | awk ‘{print $3}’ | xargs exim -Mrm

This is also good for removing failed delivery messages to (likely) non-existent senders:

exiqgrep -i -f ‘<>’ | xargs exim -Mrm

Also you can run:

exiqgrep -zi | xargs exim -Mrm

Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.