Qmail
[Top] [All Lists]

Re: Inconsistency in the queue

To: qmail@list.cr.yp.to
Subject: Re: Inconsistency in the queue
From: Amitai Schlair <schmonz@schmonz.com>
Date: Thu, 21 Dec 2006 20:51:24 -0500
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
In-reply-to: <20061221173009.GB13185@discworld.dyndns.org>
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <57812.206.162.148.196.1164300985.squirrel@secure.omninux.com> <57812.206.162.148.196.1164300985.squirrel@secure.omninux.com> <5.1.0.14.2.20061201013849.0504a430@mail.30below.com> <458A7DAA.8060101@scriptkitchen.com> <1746243C-C168-4F0D-9361-AD0D7716F11C@schmonz.com> <20061221173009.GB13185@discworld.dyndns.org>
On Dec 21, 2006, at 12:30 PM, Charles Cazabon wrote:

Amitai Schlair <schmonz@schmonz.com> wrote:

For instance, qmail works fine if /var/qmail/queue is a symlink, but
queue-repair won't follow the link.

As a workaround, specify the actual path to your queue directory as the first non-option argument to queue_repair. It has *always* supported this, i.e.:

  queue_repair.py /var/spool/mail

This seems not to work with my setup:

# ls -l /var/qmail
total 64
lrwxr-xr-x   1 root  qmail  16 Dec 21 19:48 alias -> /etc/qmail/alias
lrwxr-xr-x   1 root  qmail  12 Dec 21 19:48 bin -> /usr/pkg/bin
lrwxr-xr-x 1 root qmail 34 Dec 21 19:48 boot -> /usr/pkg/share/ examples/qmail/boot lrwxr-xr-x 1 root qmail 18 Dec 21 19:48 control -> /etc/qmail/ control lrwxr-xr-x 1 root qmail 24 Dec 21 19:48 doc -> /usr/pkg/share/doc/ qmail
lrwxr-xr-x   1 root  qmail  12 Dec 21 19:48 man -> /usr/pkg/man
lrwxr-xr-x   1 root  qmail  16 Dec 21 20:09 queue -> /var/spool/qmail
lrwxr-xr-x   1 root  qmail  16 Dec 21 19:48 users -> /etc/qmail/users

# ls -l /var/spool/qmail
total 0
drwx------    2 qmails  qmail   68 Sep  5 23:49 bounce
drwx------   25 qmails  qmail  850 Sep  5 23:49 info
drwx------    2 qmailq  qmail   68 Sep  5 23:49 intd
drwx------   25 qmails  qmail  850 Sep  5 23:49 local
drwxr-x---    5 qmailq  qmail  170 Sep  5 23:49 lock
drwxr-x---   25 qmailq  qmail  850 Sep  5 23:49 mess
drwx------    2 qmailq  qmail   68 Sep  5 23:49 pid
drwx------   25 qmails  qmail  850 Sep  5 23:49 remote
drwxr-x---    2 qmailq  qmail   68 Sep  5 23:49 todo

# queue_repair.py -r /var/spool/qmail
queue_repair.py v. 0.9.0
Copyright (C) 2001 Charles Cazabon <pqt @ discworld.dyndns.org>
Licensed under the GNU General Public License version 2

running in repair mode
finding qmail UIDs/GIDs...
  qmaill  : UID 302
  qmaild  : UID 301
  alias   : UID 300
  qmailr  : UID 305
  qmails  : UID 306
  qmailp  : UID 303
  qmailq  : UID 304
  qmail   : GID 301
  nofiles : GID 300
determining conf-split...
basic queue directories not found at /var/spool/qmail
  use --create to force creation of queue at /var/spool/qmail

Charles, would be great if you could fix this.

It would. queue-repair needs a rewrite and a lot of other features as well, but it's not high on my priority list, as my queue doesn't get corrupted very often... I haven't used queue-repair on my own machines in five years or
more.

Likewise (it doesn't break if you don't screw with it, film at 11 :-). However, since anyone who installs qmail from pkgsrc will have the above setup, it would certainly be reassuring for them to have your tool available. queue-repair is in pkgsrc, too, although as things stand this might not make sense.

- Amitai

<Prev in Thread] Current Thread [Next in Thread>