[34241] in North American Network Operators' Group
Re: Scalable Mail solution with NAS
daemon@ATHENA.MIT.EDU (Jim Mercer)
Wed Jan 31 17:57:35 2001
Date: Wed, 31 Jan 2001 17:55:24 -0500
From: Jim Mercer <jim@reptiles.org>
To: nanog@merit.net
Message-ID: <20010131175524.C20093@reptiles.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200101312011.UAA28880@equinox.DOMINO.ORG>; from neil@DOMINO.ORG on Wed, Jan 31, 2001 at 08:11:03PM +0000
Errors-To: owner-nanog-outgoing@merit.edu
On Wed, Jan 31, 2001 at 08:11:03PM +0000, Neil J. McRae wrote:
> > > > >/export/mailboxes/j/o/h/n/johndoe.mbox
>
> In the past I've actually found that reversing the letters gives
> much better randomosity around the directory structure so, johndoe@clown.org
> would end up in e/o/d/n/johndoe and you don't take much of a hit for this.
i'm currently implementing a largish mail server, and have come up with
what i think is a nice way to deal with scale and redundancy, etc, etc.
what i have done is create a couple DNS zones, which are like:
$ORIGIN mailbox.domain.com
bob IN CNAME popserver1
john IN CNAME popserver1
bill IN CNAME popserver2
$ORIGIN smtp.domain.com
bob IN A 10.1.1.1 ; ipaddr of mailserver1
john IN A 10.1.1.1 ; ipaddr of mailserver1
bill IN A 10.1.1.2 ; ipaddr of mailserver2
then, users are told to set their SMTP to username.smtp.domain.com and
to direct their POP/IMAP client at username.mailbox.domain.com.
you might even be able to get away with a single map.
incoming mail should direct username@domain.com to username@username.domain.com
in any case, using this method, you can now arbitrarily store mailboxes
on any of several machines, even possibly in several locations.
if a server fails, you can quickly redirect the users to another server so
that new mail piles up in their new mailbox, and you can restore the broken
server on a more leisurely pace.
this can be extended to allow users to check their email with a web-based
packet at http://username.mailbox.domain.com, or even be shortened so
that they can have personal website http://username.domain.com
how to implement the actual DNS is left as an exercise of the student.
--
[ Jim Mercer jim@pneumonoultramicroscopicsilicovolcanoconiosis.ca ]
[ Reptilian Research -- Longer Life through Colder Blood ]
[ aka jim@reptiles.org +1 416 410-5633 ]