Tren Blackburn wrote:
-----Original Message-----
From: DAve [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 25, 2007 12:13 PM
Subject: Re: [vchkpw] Shared libvpopmail thoughts

Tom Collins wrote:
On Sep 25, 2007, at 10:06 AM, John Simpson wrote:
the idea of splitting the domains and mailboxes into different
directories has been around forever, there's no excuse for somebody
not have made the adjustment by now.
I'm all for keeping it, but someone should fix it.  On my server,
with a
cdb backend, I have the following structure:

main directory: 65 domains
0: 25 domains
1: 2 domains
2: 2 domains
3: 0 domains
4: 3 domains
5: 44 domains

Just for reference, here's the .dir-control file for that server:

0 0 0
61 61 61
0 2 2
5 0 0

I'd love to see vadddomain do a better job of back-filling domains.
Maybe vadddomain and vdeldomain could work together to keep
at a balanced level.

Keep track of the next directory to fill in a file (which needs to
protected by a file lock).  The .dir-control file is supposed to
that way.

On vdeldomain, if the domain came out of a directory "less than" the
next_directory, update next_directory.

On vadddomain, if next_directory has 100 domains after the addition,
scan forward until you find a directory with <100 domains and update

It should be possible to make the code generalized enough to work
the domains directory and the individual domain directories (for
managing users via vuseradd and vuserdel).
dir-control is a train wreck. If we ever left vpopmail (unlikely) it
would be because of dir-control. I'm not a C programmer but I have
of coding experience with IBM Basic, JCL, COBOL, Perl, PHP, Ruby,
JavaScript, Bash, etc. Trying to figure out dir-control gave me a
headache and I never did get anyone to own up to knowing how it
If someone would fix it, I would provide a 6 pack of Jones (any
a carton of Marlborough reds, some tokens, a Magic Eight Ball, and a
bag of twizzlers to sweeten the deal.


Oooh! That's a sweet deal...I'll throw in a 6 pack of Beer from Canada
from the brewery of your choice!

Traction! Finally! I'll up the ante to guaranteed 24 hour turn around on testing any fixes, I'll setup a VMWare server just so I can test any patches.

But that's not all... I will also throw in a pristine copy of a Mac rescue CD with all OSes from 7.1 to 8.6 including all patches, AND bottle of Jose Gold. Shipped of course, at no cost to the programmer who fixes dir-control.


Three years now I've asked Google why they don't have a
logo change for Memorial Day. Why do they choose to do logos
for other non-international holidays, but nothing for

Maybe they forgot who made that choice possible.

Reply via email to