From owner-freebsd-questions@FreeBSD.ORG Fri Oct 20 05:42:45 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 2B0AE16A40F for ; Fri, 20 Oct 2006 05:42:45 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B98543D49 for ; Fri, 20 Oct 2006 05:42:43 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.8/8.13.1) with ESMTP id k9K5gfdV002697; Thu, 19 Oct 2006 22:42:41 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.8/8.13.1/Submit) id k9K5gfWU002696; Thu, 19 Oct 2006 22:42:41 -0700 (PDT) (envelope-from kline) Date: Thu, 19 Oct 2006 22:42:40 -0700 From: Gary Kline To: Chuck Swiger Message-ID: <20061020054240.GB2419@thought.org> References: <20061018211258.GA1350@thought.org> <20061018215708.GB93083@gothmog.pc> <20061019001443.GC3342@thought.org> <20061019193854.GC11212@thought.org> <5E10959B-FA19-41C4-9268-1183CCF616F1@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5E10959B-FA19-41C4-9268-1183CCF616F1@mac.com> User-Agent: Mutt/1.4.2.2i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing twenty years of service to the Unix community Cc: Gary Kline , FreeBSD Mailing List Subject: Re: tao.thought.org is back..... 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: Fri, 20 Oct 2006 05:42:45 -0000 On Thu, Oct 19, 2006 at 01:16:33PM -0700, Chuck Swiger wrote: > On Oct 19, 2006, at 12:38 PM, Gary Kline wrote: [[ save the electrons ]] > > Nope. What you've asked for now is different than what you > originally asked for; if you don't want email for all users > @thought.org to be delivered locally on one machine, that's a > different problem, and it cannot be solved with a mailertable alone. > If it is only a few users, consider setting up .forward files. > > Otherwise, you will have to set up a virtusertable instead, by adding: > > FEATURE(`virtusertable')dnl > VIRTUSER_DOMAIN(`thought.org')dnl > > ...in your sendmail.mc, and then create /etc/mail/virtusertable with > something like: > > kline@thought.org kline@zen.thought.org > zivic@thought.org zivic@ns1.thought.org > grzegorz@thought.org grzegorz@ethos.thought.org > > ...and do a "make maps" in /etc/mail, or run: > > /usr/sbin/makemap hash /etc/mail/virtusertable.db < /etc/mail/ > virtusertable This is what I have found to work for (*mostly*) just-me. I willstick with sendmail and FBSD at least for my DNS machine and my laptop. Using virtusertable as per your example at least I know how to get my mail routed to ethos if tao decied to take another "trap". > > Note that splitting delivery within a domain like this is generally > undesirable compared with setting up a central mailhost and using > IMAP to read the mail from the clients, rather than trying to deliver > mail to individual client machines. Because if you want to deliver > to these individual client machines, you need to set up mail on all > of them, and make sure your DNS entries are right, preferably by > creating MX records for each new mailserver, etc... For my vvery small domain of computers, it's easier to set up my DNS and MX files. If I were doing this for-real or for a larger set up, I would have a mailserver and use IMAP. > > > Is there ay way of testing this after I have set up my table > > entries? In other words, how do I re-initialize things without > > having to (ugh) *reboot*. > > Of course you can restart sendmail without having to reboot... I did the makemap hash for my access/[db] map. Missed virtusertable.db, and just read the Makefile and found the maps: target. ...This has been a learning experience and I thank you gentlemen. gary > > -- > -Chuck > -- Gary Kline kline@thought.org www.thought.org Public service Unix