Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 48718

Summary: new utility for qmail: qfixq
Product: Gentoo Linux Reporter: Martin Mokrejš <mmokrejs>
Component: [OLD] ServerAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin Mokrejš 2004-04-22 13:22:05 UTC
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.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-04-23 18:54:36 UTC
see net-mail/queue-fix, does the same thing and has support for big-todo qmail.