How To Remove WHM Mail Queue Through SSH

<span class="fa fa-user"></span>
Web Server ManagementWHM/cPanel Tutorial
vps hosting

If you ever have need to delete specific messages from your mail queue then don’t worry and just use the following commands. This will help you out to get rid of messages in the mail queue.

To view a list of the messages in the queue…

  exim -bp

To remove a single message from the queue…

 exim -Mrm {message-id}

Deletion of frozen messages use…

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

Deletion of specific sender domains use…

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

To remove all messages from the queue…

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

vps hosting



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

Facebook Comments