[vchkpw] .dir-control - Please tell me this about it

2004-09-23 Thread Brian Feeny
Does the hashing that is used by .dir-control depend at all on the  
actual domain name?  For example, if it came up with a hashed
directory structure in which to put foobar.com, would it matter if I  
went in to /var/qmail/users/assign, and changed the name of the domain
to somethingelse.com, and then of course changed the directory name  
from foobar.com to somethingelse.com.  Would this be a problem?

My problem is I am trying to migrate a bunch of domains (600+) from my  
own hash style, into vpopmails native .dir-control hash style.  So my
plan goes something like this:

I create a dummy domain test.com
I create all the accounts under test.com just like the domain I am  
trying to move over
I then move all the Maildirs into test.com and then change the name  
from test.com to the domain I was moving

I am thinking this should work, but not sure if .dir-control cares what  
the name is of the domain, or if the hash has nothing to do with the  
structure of the domain
name.

Brian

 
--
Brian Feeny, CCIE #8036, CISSP	e: [EMAIL PROTECTED]
Network Engineer   			p: 318.213.4709
ShreveNet Inc. 			f: 318.221.6612


PGP.sig
Description: This is a digitally signed message part


Re: [vchkpw] .dir-control - Please tell me this about it

2004-09-23 Thread Dave Goodrich
Brian Feeny wrote:
Does the hashing that is used by .dir-control depend at all on the  
actual domain name?  For example, if it came up with a hashed
directory structure in which to put foobar.com, would it matter if I  
went in to /var/qmail/users/assign, and changed the name of the domain
to somethingelse.com, and then of course changed the directory name  
from foobar.com to somethingelse.com.  Would this be a problem?

My problem is I am trying to migrate a bunch of domains (600+) from my  
own hash style, into vpopmails native .dir-control hash style.  So my
plan goes something like this:

I create a dummy domain test.com
I create all the accounts under test.com just like the domain I am  
trying to move over
I then move all the Maildirs into test.com and then change the name  
from test.com to the domain I was moving

I am thinking this should work, but not sure if .dir-control cares what  
the name is of the domain, or if the hash has nothing to do with the  
structure of the domain
name.
If you use MySQL it will matter as the dir hash info is stored under the 
domain name. If you do not use MySQL, I would think that you would be 
ok. The new .dir-control will be correct for the number of 
users/hashing. The .dir-control file does not have any domain 
information inside. vpopmail cares not one wit about the name of the 
domain it is hashing.

DAve
Brian

 
--
Brian Feeny, CCIE #8036, CISSPe: [EMAIL PROTECTED]
Network Engineer   p: 318.213.4709
ShreveNet Inc. f: 318.221.6612
--
Systems Administrator
http://www.tls.net
Get rid of Unwanted Emails...get TLS Spam Blocker!


Re: [vchkpw] .dir-control - Please tell me this about it

2004-09-23 Thread Brian Feeny
On Sep 23, 2004, at 10:18 AM, Dave Goodrich wrote:
Brian Feeny wrote:
Does the hashing that is used by .dir-control depend at all on the   
actual domain name?  For example, if it came up with a hashed
directory structure in which to put foobar.com, would it matter if  
I  went in to /var/qmail/users/assign, and changed the name of the  
domain
to somethingelse.com, and then of course changed the directory name  
 from foobar.com to somethingelse.com.  Would this be a problem?
My problem is I am trying to migrate a bunch of domains (600+) from  
my  own hash style, into vpopmails native .dir-control hash style.   
So my
plan goes something like this:
I create a dummy domain test.com
I create all the accounts under test.com just like the domain I am   
trying to move over
I then move all the Maildirs into test.com and then change the name   
from test.com to the domain I was moving
I am thinking this should work, but not sure if .dir-control cares  
what  the name is of the domain, or if the hash has nothing to do  
with the  structure of the domain
name.
If you use MySQL it will matter as the dir hash info is stored under  
the domain name. If you do not use MySQL, I would think that you would  
be ok. The new .dir-control will be correct for the number of  
users/hashing. The .dir-control file does not have any domain  
information inside. vpopmail cares not one wit about the name of the  
domain it is hashing.

.dir control doesn't just hash users though right?  Doesn't dir-control  
begin to hash domains too once you hit a certain number?  That is all  
the same mechinism right, .dir-control, that does both the domain  
hashing and then username hashing?

Brian
DAve
Brian
-- 
-- --
Brian Feeny, CCIE #8036, CISSPe: [EMAIL PROTECTED]
Network Engineer   p: 318.213.4709
ShreveNet Inc. f: 318.221.6612
--
Systems Administrator
http://www.tls.net
Get rid of Unwanted Emails...get TLS Spam Blocker!

 
--
Brian Feeny, CCIE #8036, CISSP	e: [EMAIL PROTECTED]
Network Engineer   			p: 318.213.4709
ShreveNet Inc. 			f: 318.221.6612



PGP.sig
Description: This is a digitally signed message part


Re: [vchkpw] .dir-control - Please tell me this about it

2004-09-23 Thread Brian Feeny

I under stand that, but I guess what I am asking is, the hashing  
algorithm that vpopmail uses, to decide how to name its directories, is  
it linked
to the name of the username/name of the domain, to the extent that if I  
change the domain name (or username) but keep the hashing the same,
is that going to make bad things happen?

Brian
On Sep 23, 2004, at 10:57 AM, Dave Goodrich wrote:
Brian Feeny wrote:
On Sep 23, 2004, at 10:18 AM, Dave Goodrich wrote:
Brian Feeny wrote:
Does the hashing that is used by .dir-control depend at all on the   
 actual domain name?  For example, if it came up with a hashed
directory structure in which to put foobar.com, would it matter  
if  I  went in to /var/qmail/users/assign, and changed the name of  
the  domain
to somethingelse.com, and then of course changed the directory  
name   from foobar.com to somethingelse.com.  Would this be a  
problem?
My problem is I am trying to migrate a bunch of domains (600+) from  
 my  own hash style, into vpopmails native .dir-control hash style.  
  So my
plan goes something like this:
I create a dummy domain test.com
I create all the accounts under test.com just like the domain I am   
 trying to move over
I then move all the Maildirs into test.com and then change the name  
  from test.com to the domain I was moving
I am thinking this should work, but not sure if .dir-control cares   
what  the name is of the domain, or if the hash has nothing to do   
with the  structure of the domain
name.
If you use MySQL it will matter as the dir hash info is stored under  
 the domain name. If you do not use MySQL, I would think that you  
would  be ok. The new .dir-control will be correct for the number of  
 users/hashing. The .dir-control file does not have any domain   
information inside. vpopmail cares not one wit about the name of the  
 domain it is hashing.
.dir control doesn't just hash users though right?  Doesn't  
dir-control  begin to hash domains too once you hit a certain number?  
 That is all  the same mechinism right, .dir-control, that does both  
the domain  hashing and then username hashing?
Correct, but the .dir-control file still doesn't keep track of which  
domain is hashed where, only how many hash dir are created, how deep  
they are, and what dir is currently in use. It doesn't seem to matter  
hashing users or domains. It seems to me it works exactly the same  
what and stores exactly the same information.

Think of the .dir-control file more as a tally of what hash dirs have  
been created, and which one is currently is use. It doesn't seem to do  
much more.

DAve

Brian
DAve
Brian
 
-- -- --
Brian Feeny, CCIE #8036, CISSPe: [EMAIL PROTECTED]
Network Engineer   p: 318.213.4709
ShreveNet Inc. f: 318.221.6612

--
Systems Administrator
http://www.tls.net
Get rid of Unwanted Emails...get TLS Spam Blocker!

-- 
-- --
Brian Feeny, CCIE #8036, CISSPe: [EMAIL PROTECTED]
Network Engineer   p: 318.213.4709
ShreveNet Inc. f: 318.221.6612
--
Systems Administrator
http://www.tls.net
Get rid of Unwanted Emails...get TLS Spam Blocker!

 
--
Brian Feeny, CCIE #8036, CISSP	e: [EMAIL PROTECTED]
Network Engineer   			p: 318.213.4709
ShreveNet Inc. 			f: 318.221.6612



PGP.sig
Description: This is a digitally signed message part


Re: [vchkpw] .dir-control - Please tell me this about it

2004-09-23 Thread Dave Goodrich
Brian Feeny wrote:

I under stand that, but I guess what I am asking is, the hashing  
algorithm that vpopmail uses, to decide how to name its directories, is  
it linked
to the name of the username/name of the domain, to the extent that if I  
change the domain name (or username) but keep the hashing the same,
is that going to make bad things happen?

Again, think of it as a tally of the hashed dirs that exist below the 
.dir-control file. It only seems to care about the dirs underneath it. I 
do not belive the hashing code is aware of anything other than it's own 
path.

Create a test domain with your old system and give it a try. I have been 
trying to get my arms around the dir-control issue for a while, though I 
don't code C, I don't think the hashing cares what your domain name is.

DAve
Brian
On Sep 23, 2004, at 10:57 AM, Dave Goodrich wrote:
Brian Feeny wrote:
On Sep 23, 2004, at 10:18 AM, Dave Goodrich wrote:
Brian Feeny wrote:
Does the hashing that is used by .dir-control depend at all on 
theactual domain name?  For example, if it came up with a hashed
directory structure in which to put foobar.com, would it matter  
if  I  went in to /var/qmail/users/assign, and changed the name of  
the  domain
to somethingelse.com, and then of course changed the directory  
name   from foobar.com to somethingelse.com.  Would this be a  
problem?
My problem is I am trying to migrate a bunch of domains (600+) 
from   my  own hash style, into vpopmails native .dir-control hash 
style.So my
plan goes something like this:
I create a dummy domain test.com
I create all the accounts under test.com just like the domain I 
amtrying to move over
I then move all the Maildirs into test.com and then change the 
namefrom test.com to the domain I was moving
I am thinking this should work, but not sure if .dir-control 
cares   what  the name is of the domain, or if the hash has nothing 
to do   with the  structure of the domain
name.

If you use MySQL it will matter as the dir hash info is stored 
under   the domain name. If you do not use MySQL, I would think that 
you  would  be ok. The new .dir-control will be correct for the 
number of   users/hashing. The .dir-control file does not have any 
domain   information inside. vpopmail cares not one wit about the 
name of the   domain it is hashing.
.dir control doesn't just hash users though right?  Doesn't  
dir-control  begin to hash domains too once you hit a certain 
number?   That is all  the same mechinism right, .dir-control, that 
does both  the domain  hashing and then username hashing?

Correct, but the .dir-control file still doesn't keep track of which  
domain is hashed where, only how many hash dir are created, how deep  
they are, and what dir is currently in use. It doesn't seem to matter  
hashing users or domains. It seems to me it works exactly the same  
what and stores exactly the same information.

Think of the .dir-control file more as a tally of what hash dirs have  
been created, and which one is currently is use. It doesn't seem to 
do  much more.

DAve

Brian
DAve
Brian
 
-- -- --
Brian Feeny, CCIE #8036, CISSPe: [EMAIL PROTECTED]
Network Engineer   p: 318.213.4709
ShreveNet Inc. f: 318.221.6612

--
Systems Administrator
http://www.tls.net
Get rid of Unwanted Emails...get TLS Spam Blocker!

-- 
-- --
Brian Feeny, CCIE #8036, CISSPe: [EMAIL PROTECTED]
Network Engineer   p: 318.213.4709
ShreveNet Inc. f: 318.221.6612

--
Systems Administrator
http://www.tls.net
Get rid of Unwanted Emails...get TLS Spam Blocker!

 
--
Brian Feeny, CCIE #8036, CISSPe: [EMAIL PROTECTED]
Network Engineer   p: 318.213.4709
ShreveNet Inc. f: 318.221.6612

--
Systems Administrator
http://www.tls.net
Get rid of Unwanted Emails...get TLS Spam Blocker!