Hi robbat2, some time ago we discussed permissionproblem on /var/log. which I've screved up once and that it was hard for me to figure out what was the original mask. Here's slightly similar case: <quote> 2004-01-20 A few months ago, one of my clients was the victim of a massive spam bomb which totally filled the drive containing their /var/qmail directory. Some messages were partially written to the queue but a lot of them had files created for the various parts but then couldn't allocate blocks to hold the data meant for those files- but their queue was totally trashed. At the time, I wrote a perl script to manually fix the ownerships and permissions of the queue directory, as well as check the status of each message number (that the mess file's inode was the same as the filename, that the other combinations of files pertaining to that message represented some sane condition of a message within the queue, and that none of the files involved were zero bytes.) I didn't think at the time that anybody else would need something like this, but... Today, one of my clients accidentally made a typo with a "chown" command and ended up trashing their queue as well. The same script I wrote for the first client is now coming in handy for another client, so I figure somebody visiting this page may also be interested in looking it over and using it. I call the script qfixq. Enjoy. </quote> http://www.jms1.net/qmail/qfixq Reproducible: Always Steps to Reproduce: 1. 2. 3.
see net-mail/queue-fix, does the same thing and has support for big-todo qmail.