From owner-freebsd-questions Fri Nov 30 4:25:32 2001 Delivered-To: freebsd-questions@freebsd.org Received: from clientmail.realtime.co.uk (simian.realtime.co.uk [213.52.146.137]) by hub.freebsd.org (Postfix) with ESMTP id 06BD437B416 for ; Fri, 30 Nov 2001 04:25:27 -0800 (PST) Received: from pan.ehsrealtime.com ([213.52.146.196]) by clientmail.realtime.co.uk with esmtp (Exim 3.20 #1) id 169mj3-00021O-01; Fri, 30 Nov 2001 12:25:05 +0000 Received: from waynep by pan.ehsrealtime.com with local (Exim 3.33 #1) id 169mhC-0000VK-00; Fri, 30 Nov 2001 12:23:10 +0000 From: Wayne Pascoe To: "Patrick O'Reilly" Cc: FreeBSD Question List Subject: Re: Sendmail Domains References: Date: 30 Nov 2001 12:23:09 +0000 In-Reply-To: Message-ID: <863d2wbg7m.fsf@pan.ehsrealtime.com> Lines: 51 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Patrick O'Reilly" writes: > Hi all. > > I admit up front that I am taking the quick route here - asking before > doing a detailed RTFM. I've just been thrown a job to do and the system > MUST BE RUNNING on Monday - you know how it goes! :( > > I'm running a few sendmail mail servers, so I'm reasonably familiar with > the basics of sendmail. > > But, now I need to configure a mail server with sendmail to host mail > for multiple domains. The part that bothers me is what happens when I > want to create an account for patrick@dom2.com when there is already a > patrick@dom2.com. These must be _separate_ accounts. But, using email > accounts based on users in /etc/passwd will obviously not handle this > correctly. I recall mention of virtual user tables in connection with > sendmail. Is that the solution to my problem, or what. Ew. What fun. The problem here is having unique mailboxes, I take it ? ie patrick@dom1.com goes to a different mailbox than patrick@dom2.com ? Doing this can be done easily with virtusertable. You add patrick@dom1.com: localusername If I remember right (It's been a while). The problem is what do you name the local user? Creating the account user.domain.com will often run into username length constraints. What I've found to be a nice solution (and probably won't help you in this case with a monday deadline, but might be nice for the future) is exim with vmail-sql. It stores all user details in a MySQL database and deliveries are done by looking up the domain, and then the local part in the mysql database. Users then login to fetch mail (with tpop3d) with their e-mail address as their username and their assigned password. It's a nice clean solution from what I've seen of using it so far. HTH. -- - Wayne Pascoe | You know, it's simply not true that freebsd@molemanarmy.com | wars never settle anything - James Burnham http://www.molemanarmy.com | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message