Your Webhosting Questions
Answered by the Webhosting Experts
Tags
...

How to clear the mail queue using a script?

If you want to clear your mail queue, you can create a script named clearmailq.sh with the following:
Install the following script as a .sh on your server

#####Mail Queue Cleaner#####
#!/bin/bash
echo Clearing Mail Queue..
cd /var/spool/exim/input
rm -rf *
exit

NOTE : Save this, and chmod 755. Now, crontab this script to run, again, there are better ways of doing this!

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: support@hivelocity.net. We are also available to you through our phone and live chat system 24/7/365.

Tags +