Today my one of the server got hanged, when i had a detailed look at the server i found that my sendmail is creating the issue. The problem was that there are ten thousands of undelivered mails in the mailq folder. These mails were there fromÂ almostÂ last couple of months.
when i tried to remove the files under mailq folder i was getting the following error.
after having some head ache i found one solution to remove all the files in a single command. Just go to the location where u want to delete the files and type the following command.
find . -name ‘*’ | xargs rm