How do I delete the qmail queue?

Daniel Urstöger
07-03-2008 19:56

that is pretty simple too, but remember: ALL emails will be deleted and gone forever:

  • /etc/init.d/qmail stop ( or qmailctl stop)
  • cd /var/qmail/queue ( be sure that you have changed into that subfolder!!! )
  • find -type f -exec rm -f '{}' \;
  • touch /var/qmail/queue/lock/sendmutex
  • chown qmails:qmail /var/qmail/queue/lock/sendmutex
  • /etc/init.d/qmail start (or qmailctl start)

that should do it and your queue should be empty, you can check via:

  • /etc/init.d/qmail stat ( qmailctl stat )
Average rating: 0 (0 Votes)

You cannot comment on this entry