Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Apr 1999 18:14:23 +0100
From:      Stuart Henderson <stuart@eclipse.net.uk>
To:        "Jules D. Salter" <julian@vas-net.net>
Cc:        "'freebsd-isp@freebsd.org'" <freebsd-isp@freebsd.org>
Subject:   Re: NIS / NFS / Qmail Advice
Message-ID:  <3703A96F.A2E5775E@eclipse.net.uk>
References:  <63D4D74C4243D211849300A0C972505904F36D@ex-mail.vas-net.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> I chose Qmail's 'Maildir' Format to eliminate the problems
> of Sendmail's File Locking over NFS.

that's okay, but you need to make sure the queue directories are local
if you use qmail. if you want these nfs mounted so they can, for
example, go onto the same RAID system as user mailboxes, then try exim
which is nfs-resistant in it's queue directory (I think it also does
maildir delivery looking at the externally visible architecture of
freeserve's mail system :)

> My main concern is that of scalability. Typical load for
> this system will be 100,000 to 1 million user accounts. Has
> anybody had any experience of scaling this number of accounts
> over NIS? Would their be a more viable alternative to using NIS ?

LDAP? probably you'll be able to process 25-30 hits per second before
needing to replicate to a second server. you will of course need a POP3
server that will authenticate using ldap, but that is not tricky (if you
need a starting point, search +cyrus +ldap for the patches to make cyrus
do this. you may be able to find some ready-rolled patches for your
favourite pop3d)

> I know the standard master.passwd file on FreeBSD is hashed for
> fast machine lookups, 

that is true but it gets a bit of a pig if you make changes through vipw
and have to rebuild the whole file (as opposed to pw and just get it to
rebuild the one you are changing) :)

> obviously it's not a good idea to have 10000 files in one directory.

/usr/home/eclman> root@carme# time ls /var/mail|wc -l
    7464

real    0m0.085s
user    0m0.077s
sys     0m0.006s

not too bad, although I don't like having that many files and expect to
move it to a better structure sometime soon (in particular, ls -l sucks
very badly with this many files) - far better to use a hashing function
to split users into different subdirs.

HTH
Stuart


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3703A96F.A2E5775E>