From owner-freebsd-questions@FreeBSD.ORG Tue May 23 08:27:44 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9438616A427 for ; Tue, 23 May 2006 08:27:44 +0000 (UTC) (envelope-from yurtesen-dated-1149236858.2d8fbc@ispro.net.tr) Received: from smtp.ispro.net.tr (smtp.ispro.net.tr [62.244.220.178]) by mx1.FreeBSD.org (Postfix) with SMTP id B51CA43D45 for ; Tue, 23 May 2006 08:27:41 +0000 (GMT) (envelope-from yurtesen-dated-1149236858.2d8fbc@ispro.net.tr) Received: (qmail 26986 invoked by uid 89); 23 May 2006 08:27:38 -0000 Received: from [80.223.250.217] (dsl-aur-fefadf00-217.dhcp.inet.fi [80.223.250.217]) by localhost.my.domain (tmda-ofmipd) with ESMTP; Tue, 23 May 2006 11:27:34 +0300 (EEST) Message-ID: <4472C73C.9040501@ispro.net.tr> Date: Tue, 23 May 2006 11:26:36 +0300 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Chad Leigh -- Shire.Net LLC" References: <4471ABF0.3090804@ispro.net.tr> <6.0.0.22.2.20060522102107.0274be28@mail.computinginnovations.com> <4471ECAA.3030406@daleco.biz> <20060522231641.7d63db65@vixen42.vulpes> <4472BB57.7020001@ispro.net.tr> <76921773-B1C7-4500-8FE7-78B815961860@shire.net> In-Reply-To: <76921773-B1C7-4500-8FE7-78B815961860@shire.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Evren Yurtesen X-Primary-Address: yurtesen@ispro.net.tr Cc: FreeBSD Questions Mailing List Subject: Re: e-mail server farm question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 May 2006 08:27:44 -0000 Chad Leigh -- Shire.Net LLC wrote: > > On May 23, 2006, at 1:35 AM, Evren Yurtesen wrote: > >> Vulpes Velox wrote: >> >>> On Mon, 22 May 2006 11:54:02 -0500 >>> Kevin Kinsey wrote: >>> >>>>> At 07:17 AM 5/22/2006, Evren Yurtesen wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> I was wondering how does services like yahoo mail is storing >>>>>> e-mails. Somehow the smtp server should know where to deliver >>>>>> the mail inside the system and webmail should know from which >>>>>> server to read it from. >>>>>> >>>>>> Does anybody have any practical ideas about how it is done? >>>>>> >>>> >>>> Derek Ragona wrote: >>>> > If you are using sendmail, as most FreeBSD users are, you can >>>> > check the sendmail.org site for information on mail handling. >>>> > There are a number of methods that depend on your setup. >>>> > >>>> >>>> Well, it's pretty obvious that they aren't using a stock >>>> SendMail: >>>> >>>> # telnet mx2.mail.yahoo.com 25 >>>> Trying 67.28.113.72... >>>> Connected to mx2.mail.yahoo.com. >>>> Escape character is '^]'. >>>> 220 mta309.mail.re4.yahoo.com ESMTP YSmtp service ready >>>> >>>> Short of finding an article written by someone 'in the know', >>>> or an answer for someone like that, we can only guess. I'd >>>> probably start with guessing a big DB on a large SAN; >>>> which pretty much negates the "which server to read from" >>>> question (up to a point). Everything else is pretty >>>> academic. SMTP, IMAP, POP. >>> >>> Maildir makes it easy to distribute it across multiple machines as >>> well. >> >> >> What do you mean exactly? distributing 1 user's mails into seperate >> machines? I didnt understand how Maildir helps to this actually. >> > > I am not sure anyone was talking about distributing 1 person's mail > across separate machines. The discussion seemed to be how to handle > large amounts of mail spread out across machines, which maildir helps > with as you can have one or more file servers and lots of consumers > (imap/pop) and deliverers (mta) accessing those maildirs on your file > servers. Combine with a backend database of some sort (we use an ldap > db that includes the path for a specific accounts mail) and voilá. > > Chad > Ah sorry, I didnt think it that way for a moment. I thought you meant Maildir stores mails in seperate files compred to mbox format used by sendmail so...anyhow my mistake :) But it is possible to make changes to sendmail so that it will store to different folders also. I think the conclusion is a database, multiple smtp servers querying database to see where to forward received e-mails, multiple pop3/imap servers querying database to see from where to read the e-mails and multiple storage machines. This way it can scale to an unlimited size. So it requires a lot of coding :) Thanks, Evren