# Is a script to "clean up" a damaged qmail queue. Recovers out-of-disk errors as well as a "chown -R" typo
# Also for queue migrations from one disk to another (it sets the correct names to match the inode numbers.)

cd /var/qmail/bin/
wget http://qmail.jms1.net/scripts/qfixq
chmod 751 qfixq
ln -s /var/qmail/bin/qfixq /usr/bin/
qmailctl stop
qmailctl stat
#once qmail-send is down run
#qfixq live, don't run it now, you don't need it currently
qmailctl start