Posts Tagged ‘qmail’

Delete/Empty Qmail of all mail

February 14th, 2012

IF qmail gets full of mail a quick/simple way to delete it all is the following:

  1. Stop qmail
  2. go to cd /var/qmail/queue
  3. Type: find intd todo local remote mess info bounce -type f -print |xargs rm
  4. Once done start qmail again
if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz

Qmail – Clear Queue Script

June 23rd, 2010

To clear a qmail script run the following:

1) login to your server via ssh
2) su -
3) wget http://www.japanitup.com/scripts/qmailclear.sh
5) sh qmailclear.sh or sh ./qmailclear.sh
6) done.

For those that receive oversized file truncting errors.
Use the following more intense script. It take a little
longer but gets the job done.

1) login to your server via ssh
2) su -
3) wget http://www.japanitup.com/scripts/qmailclean.sh
5) sh qmailclean.sh or sh ./qmailclean.sh
6) done.
if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz