queue_repair is a toolkit for dealing with the qmail queue directory structure; it can create a new queue, move and properly rename a queue, dynamically change the conf-split value, convert big-todo queues to non-big-todo and vice versa, and repair a corrupted queue.
Requirements:
· Python version 1.5.2 or above. I strongly recommend the use of either version 1.5.2 or 2.x. Avoid version 1.6, as it was never intended for widespread use and was not tested particularly well.
· qmail. If you're not running qmail, you don't need queue-repair.
Installation
Unpack the tarball:
tar xzf queue-repair-version.tar.gz
Copy the contents to a suitable location:
mkdir /usr/local/lib/queue-repair
cp -a queue-repair-version/* /usr/local/lib/queue-repair/
You can install getmail in your home directory or elsewhere if you prefer.
Usage
Change into the directory you installed queue-repair in, or ensure that directory is in your path.
Stop qmail-send. Running queue-repair on a live queue could give erroneous information in test-only mode, and will seriously confuse qmail in repair mode.
Run queue_repair.py with the options you choose, documented below.
Basic usage information:
queue_repair.py [options] [conf-qmail]
conf-qmail defaults to /var/qmail/.
Restart qmail.
What's New in This Release:
· many cleanups to the code
· mode of todo files was wrong in some cases when ext-todo was in use or big-todo not in use; thanks to Thomas Palmieri and David Gartner for their reports that helped me track this down.
Product's homepage