Re: [vchkpw] vpopmail domain folder

2004-12-03 Thread Jeremy Kitchen
On Friday 03 December 2004 05:22 am, Gilcio Grella wrote:
> Thanks a lot Jeremy!
>
> I didn't know about directory hashing! Now I
> understand it a bit :)

good :)  qmail does the same thing with its queue, only it's a little bit 
different.

> By the way, I'm using ext2 and I'm sure I won't use
> more than 600 files in a directory. I know I can have
> problems, but I'll try not hashing :) Do you know the
> hashing limit of ext2? (But this is not the mainly
> question yet and I know this is not part of you, but
> who knows you can tell me :) )

as stated in my previous email, rule of thumb is 1000.

> So, I recompile vpopmail with the
> --disable-users-big-dir flag and I think that for new
> domains it will work out nice. But for my existing
> domains, it doesn't work yet. I thinks there's
> something related to .dir-control file.

simply remove it.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
  kitchen @ #qmail #gentoo on EFnet IRC ++ scriptkitchen.com/qmail
 GnuPG Key ID: 481BF7E2 ++ jabber:[EMAIL PROTECTED]


pgpKusZSzp916.pgp
Description: PGP signature


Re: [vchkpw] vpopmail domain folder

2004-12-03 Thread Gilcio Grella
Thanks a lot Jeremy!

I didn't know about directory hashing! Now I
understand it a bit :)
By the way, I'm using ext2 and I'm sure I won't use
more than 600 files in a directory. I know I can have
problems, but I'll try not hashing :) Do you know the
hashing limit of ext2? (But this is not the mainly
question yet and I know this is not part of you, but
who knows you can tell me :) )
So, I recompile vpopmail with the
--disable-users-big-dir flag and I think that for new
domains it will work out nice. But for my existing
domains, it doesn't work yet. I thinks there's
something related to .dir-control file. I realize that
the first line from its must be the number of files
(folders) of a domain. The rest I can't figure out!
Is there something related to .dir-control file? If
so, can you explain me that file line per line? Or is
there another solution to making my old domains work
with that flag now?

Anyway, thanks a lot! You're great! :)

 --- Jeremy Kitchen <[EMAIL PROTECTED]> escreveu: 
> On Thursday 02 December 2004 01:08 pm, Gilcio Grella
> wrote:
> [snip: vpopmail hashes user directories after a
> certain number]
> 
> > Is that normal? I don't want that number folder
> inside
> > my domain! I want always my users maildir in
> > domain.com/ to be better managed. And always doing
> > manual editing sucks a lot!
> 
> vpopmail does directory hashing because some
> filesystems (ext2/3, UFS without 
> DIR_HASH, etc) will slow to a crawl with large
> directories (the general rule 
> of thumb is about 1000 files in a directory is the
> breaking point)
> 
> You can disable this when building vpopmail by
> configuring it with the 
> --disable-users-big-dir flag.
> 
> Is this causing you any problems?  If not, then you
> should leave it how it is 
> for performance reasons.
> 
> -Jeremy
> 
> -- 
> Jeremy Kitchen ++ Systems Administrator ++ Inter7
> Internet Technologies, Inc.
>   [EMAIL PROTECTED] ++ www.inter7.com ++
> 866.528.3530 ++ 815.776.9465 int'l
>   kitchen @ #qmail #gentoo on EFnet IRC ++
> scriptkitchen.com/qmail
>  GnuPG Key ID: 481BF7E2 ++
> jabber:[EMAIL PROTECTED]
> 

> ATTACHMENT part 2 application/pgp-signature 
 

=
Gilcio Grella :: Hackiller :: [EMAIL PROTECTED]
Rede IRCBrasil :: Server Admin :: irc.bwnet.com.br 
ICQ :: 55766844 :: MSN Messenger :: [EMAIL PROTECTED]





___ 
Yahoo! Mail - Agora com 250MB de espaço gratuito. Abra 
uma conta agora! http://br.info.mail.yahoo.com/


Re: [vchkpw] vpopmail domain folder

2004-12-02 Thread Jeremy Kitchen
On Thursday 02 December 2004 01:08 pm, Gilcio Grella wrote:
[snip: vpopmail hashes user directories after a certain number]

> Is that normal? I don't want that number folder inside
> my domain! I want always my users maildir in
> domain.com/ to be better managed. And always doing
> manual editing sucks a lot!

vpopmail does directory hashing because some filesystems (ext2/3, UFS without 
DIR_HASH, etc) will slow to a crawl with large directories (the general rule 
of thumb is about 1000 files in a directory is the breaking point)

You can disable this when building vpopmail by configuring it with the 
--disable-users-big-dir flag.

Is this causing you any problems?  If not, then you should leave it how it is 
for performance reasons.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
  kitchen @ #qmail #gentoo on EFnet IRC ++ scriptkitchen.com/qmail
 GnuPG Key ID: 481BF7E2 ++ jabber:[EMAIL PROTECTED]


pgp7asJF7dx18.pgp
Description: PGP signature


[vchkpw] vpopmail domain folder

2004-12-02 Thread Gilcio Grella
Hello,

I've recently converted many users from /etc/passwd to
vpopmail accounts. That was very nice, but when I
finished I realize that inside my domain.com/ folder
there wasn't all my users maildirs folders. So I take
a look at vpasswd and realize that had a dir 0/, 1/,
2/, 3/ and 4/ inside the domain.com/ folder and each
one had a lot of my users maildir folders. That wasn't
nice, so I moved all these maildirs that were inside
these 0/,1/,2/,3/ and 4/ folders to ../ so they are
now in domain.com/ folder where they should be since
the beggining. After that I edited vpasswd and changed
manually all those users folders in that file and
after much work I got it. Then I added and deleteted
an user just to rebuild the vpasswd.cdb. Ok. 

I was thinking that directories should have being
miscreated when I was converting my huge passwd to the
cdb(was about 550 users). And I also thought that when

I would add new users that wouldn't occur again. But I
tried to add a new user and it creates a domain.com/4/
dir and put the maildir folder of that user inside
that folder 4/.

Is that normal? I don't want that number folder inside
my domain! I want always my users maildir in
domain.com/ to be better managed. And always doing
manual editing sucks a lot!

Any help or information will be very very very
appreciated! 

Thanks!


=
Gilcio Grella :: Hackiller :: [EMAIL PROTECTED]
Rede IRCBrasil :: Server Admin :: irc.bwnet.com.br 
ICQ :: 55766844 :: MSN Messenger :: [EMAIL PROTECTED]





___ 
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! 
http://br.acesso.yahoo.com/