If the mail traffic on the server is very high, whether intentionally or not, emails may pile up in the queue. Generally, emails from spam-sending accounts accumulate
in the mail queue. You can view and clear the queue from the Mail Queue section in WHM. However, sometimes the queue gets so long that when you try to open or clear it from WHM, it takes a very long time. In such cases, you can cleanly clear the emails in the queue
via SSH using the following command.
exim -bp | awk ‘/^ *[0-9]+[mhd]/{print “exim -Mrm ” $3}’ | bashThere is another way to delete emails besides this command. You can enter the directory where the queued emails are accumulated on the server and delete them all with the delete command.
cd /var/spool/exim/input
ll (Lists the contents)
rm -rfv * (Deletes all emails in the directory)
Leave a Comment
* Your comment will be published after approval.
Comments
0No comments yet. Be the first to comment!