From owner-freebsd-questions Sun Dec 2 13:18: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from c007.snv.cp.net (c007-h014.c007.snv.cp.net [209.228.33.221]) by hub.freebsd.org (Postfix) with SMTP id 634C037B405 for ; Sun, 2 Dec 2001 13:18:01 -0800 (PST) Received: (cpmta 28448 invoked from network); 2 Dec 2001 13:18:00 -0800 Received: from 64.195.103.89 (HELO boethius.telocity.com) by smtp.telocity.com (209.228.33.221) with SMTP; 2 Dec 2001 13:18:00 -0800 X-Sent: 2 Dec 2001 21:18:00 GMT Received: by boethius.telocity.com (Postfix, from userid 1000) id C82B11DA0; Sun, 2 Dec 2001 15:17:59 -0600 (CST) Date: Sun, 2 Dec 2001 15:17:59 -0600 From: Anthony Kim To: Patrick O Reilly Cc: Ahsan Ali , questions@freebsd.org Subject: Re: Sendmail Domains Message-ID: <20011202211759.GA720@boethius.telocity.com> Mail-Followup-To: Patrick O Reilly , Ahsan Ali , questions@freebsd.org References: <200112021831.fB2IVLp18815@vitalstatistix.perimeter.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200112021831.fB2IVLp18815@vitalstatistix.perimeter.co.za> User-Agent: Mutt/1.3.23.2i 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 On Sun, Dec 02, 2001, Patrick O Reilly wrote: > Here's my solution in a nutshell (in case anyone needs to know?): > > 1) add all the domians you will receive mail for into /etc/mail/local- > host-names Bingo. > 2) allocate a domain "shortname" of 3 or 4 characters to represent each > domain in (1). I use 4 characters like this: > perimeter.co.za = peri > domain1.com = dom1 > domain2.com = dom2 > etc. Hmm. > 3) create mail login accounts in /etc/passwd in this format > xxxx_yyyyyyyyyy. The "xxxx" matches the user's domain from (2). > The "yyyyyyyyyy" is the "username", or "email address", and is a max of > 10 characters (total length must be <= 16). So, my mail account > is "peri_patrick", and some other guy called patrick in domain1.com > is "dom1_patrick". > 4) Finally, the virtusertable: /etc/mail/virtusertable must have just > one line for each mail account, like so: > @perimeter.co.za peri_%1 > @domain1.com dom1_%1 > @domain2.com dom2_%1 It's important to know that although you can do everything you outlined, mail interaction with users is not sendmail's function and you wouldn't have to worry about passwd name collision if you were to use an intelligent IMAP/POP server. For example, you could use cyrus to serve IMAP and POP3 and create a sandbox server where no user accounts exist. I belive vpopmail offers something similar. > > Patrick. > I'm glad our pointers were able to help you. Cheers, -- "Le motd juste." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message