- http://pyropus.ca/software/queue-repair/
- Author: Charles Cazabon
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.
- Requirement: Python
In case you damage the qmail
queue by accident, you will say thanks to this software! But I wish you will never have to use it :-)
If you followed the 'quick configuration' based on the config-all
script, qmHandle
has been installed for you. If it wasn't like that, download, patch and install as follows. The patch applied (tx Tony Fung) will get the program python3
compliant.
wget http://pyropus.ca/software/queue-repair/queue-repair-0.9.0.tar.gz tar xzf queue-repair-0.9.0.tar.gz cd queue-repair-0.9.0 chown -R root:root . wget https://notes.sagredo.eu/files/qmail/patches/queue_repair.patch patch < queue_repair.patch cp queue_repair.py /usr/local/bin/queue-repair
Usage
Don't forget to stop qmail before using.
# qmailctl stop
# queue_repair --help queue_repair.py v. 0.9.0 Copyright (C) 2001 Charles Cazabon Licensed under the GNU General Public License version 2 Usage: queue_repair.py [options] [conf-qmail] Options: conf-qmail (default: /var/qmail) -t or --test Test only; do not modify the filesystem -r or --repair Repair errors found (default: test) -b or --bigtodo Force use of big-todo (default: auto) -n or --no-bigtodo Force non-use of big-todo (default: auto) -s N or --split N Force conf-split of N (default: auto) -c or --create Force creation of queue (default: no) --i-want-a-broken-conf-split Force non-prime conf-split (default: no) -h or --help This text
Comments
queue-repair run by Python 3
Tony Fung February 6, 2020 04:15 CET
Hi Roberto,Since Python 2 shall be retired by April 2020 and the original queue-repair cannot run by Python 3. I created a patch to make it works and tested to run by Python 3.6.8 on CentOS 8 successfully. Hope the patch is helpful.
Reply | Permalink
queue-repair run by Python 3
Roberto Puzzanghera Tony Fung February 6, 2020 13:00 CET
It seems to work with both v.2 and v.3 of python. Applied! Thank you.
Reply | Permalink
queue-repair run by Python 3
Roberto Puzzanghera Tony Fung February 6, 2020 05:51 CET
Thank you. Very much appreciated. I'll check it out
Reply | Permalink