February 6, 2020 Roberto Puzzanghera3 comments
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.
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 :-)
Download, patch and install. 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
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
qmail-smtpd and OAUTH
March 2, 2021 10:29
problem with passwords containing special characters like %
March 2, 2021 10:24
qmail-smtpd and OAUTH
March 1, 2021 15:22
problem with passwords containing special characters like %
February 28, 2021 12:26
problem with passwords containing special characters like %
February 26, 2021 22:02
problem with passwords containing special characters like %
February 26, 2021 10:05
What about using --disable-many-domains on vpopmail configure ?
February 22, 2021 16:49
aliasdomain patch compilation issue
February 21, 2021 16:28
aliasdomain patch compilation issue
February 21, 2021 14:35
Lua backend
February 16, 2021 16:07
Tags
apache clamav dkim dovecot ezmlm fail2ban hacks lamp letsencrypt linux linux-vserver lxc mariadb mediawiki mozilla mysql openboard owncloud patches php proftpd qmail qmailadmin rbl roundcube rsync sieve simscan slackware spamassassin spf ssh ssl surbl tcprules tex ucspi-tcp vpopmail vqadmin
Comments
queue-repair run by Python 3
Tony Fung February 6, 2020 05:15
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 14:00
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 06:51
Thank you. Very much appreciated. I'll check it out
Reply | Permalink