Hi Sean,

I've already got this scheduled for development into the new 4.10.X
versions. I figured we could use the same directory hashing code
that domains use for thier users. Just apply it to domain directories.

Sean C Truman wrote:
> 
> Ken,
> 
>     I am thinking of doing the hash for the directories and one thought
> would be, In vauth_adddomain create 3 sub levels of hasing using the domain
> name. So if domain was prodigysolutions.com the directory would be
> /home/vpopmail/domains/pr/od/ig/prodigysolutions.com
> 
> Now my question is, Does adduser and other utilities grab the directory from
> the assign file or does it assume /home/vpopmail/domains/%s,domain?

The old versions used to assume /home/vpopmail/domains/%s But the 4.9.X
series uses the directory from /var/qmail/users/assign via the
vget_assign() function call. It also gets the user id and group id
that the domain is owned by from the same line.
Actually, it reads the /var/qmail/users/cdb file and uses cdb
functions to pull the line out.

Ken

> 
> Sean
> ----- Original Message -----
> From: "Ken Jones" <[EMAIL PROTECTED]>
> To: "Sean C Truman" <[EMAIL PROTECTED]>
> Cc: "Ben Beuchler" <[EMAIL PROTECTED]>; "Vpopmail List" <[EMAIL PROTECTED]>
> Sent: Friday, May 18, 2001 7:03 PM
> Subject: Re: large v. small site
> 
> > Sean C Truman wrote:
> > >
> > > Here is something interesting that might be of benefits. Directory
> hashing
> > > at the domain level for the ISP out there that handle 100,000+ domains.
> >
> > Some Open Source folks at a German ISP came up with a solution. I'm not
> > sure where the code is. But we should be able to handle it. Using some
> > status file on where to put the next file. Perhaps using the .dir_control
> > code and the mysql dir_control table.
> >
> > Ken
> >
> > >
> > > Sean
> > > ----- Original Message -----
> > > From: "Ben Beuchler" <[EMAIL PROTECTED]>
> > > To: "Vpopmail List" <[EMAIL PROTECTED]>
> > > Sent: Thursday, May 17, 2001 10:44 AM
> > > Subject: Re: large v. small site
> > >
> > > > On Thu, May 17, 2001 at 10:14:22AM -0500, Ken Jones wrote:
> > > >
> > > > > > I'm migrating to MySQL from cdb and I'm just curious if anyone has
> > > some
> > > > > > good numbers on when it makes sense to use the large v. small site
> > > > > > setup?
> > > > > >
> > > > > > We are an ISP and have around 6500 accounts in our primary domain.
> We
> > > > > > also have around 250 additional domains with generally less than
> 20
> > > > > > accounts per domain.  I've been leaning toward small site, but I'm
> not
> > > > > > sure.
> > > > >
> > > > > Definitly use the default (small site). the large site option is
> > > > > really for people who have only 1 or 2 domains. It saves the
> database
> > > > > space of storeing the domain in each row.
> > > >
> > > > Makes sense.  Thanks!
> > > >
> > > > Ben
> > > >
> > > > --
> > > > Ben Beuchler                                           There is no
> spoon.
> > > > [EMAIL PROTECTED]                                            -- The
> Matrix
> > > >
> >

Reply via email to