From owner-freebsd-doc@FreeBSD.ORG Thu Jan 6 14:43:24 2005 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C8CBB16A4CE for ; Thu, 6 Jan 2005 14:43:23 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id D633E43D45 for ; Thu, 6 Jan 2005 14:43:22 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from gothmog.gr (patr530-a041.otenet.gr [212.205.215.41]) j06Eh5bE025834; Thu, 6 Jan 2005 16:43:16 +0200 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id j06EghNn027452; Thu, 6 Jan 2005 16:42:43 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id j06EgZQ3027451; Thu, 6 Jan 2005 16:42:35 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Thu, 6 Jan 2005 16:42:35 +0200 From: Giorgos Keramidas To: Leonidas Tsampros Message-ID: <20050106144235.GA27377@gothmog.gr> References: <20050105075245.GA793@bifteki.home.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050105075245.GA793@bifteki.home.net> cc: freebsd-doc@freebsd.org Subject: Re: Problem with mail for dialup users X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2005 14:43:24 -0000 On 2005-01-05 09:52, Leonidas Tsampros wrote: > Hello, > I'm using dialup to connect to the internet and i tried to setup > sendmail in the way it is mentioned in the FreeBSD Handbook. According > to Chapter 22.9 all you have to do is to setup sendmail in a way that > it rewrites your local domain address to your ISP's domain address. > This means that something like user@bsd.home will become > user@isp's.net . > > Of course THIS IS WORKING but it doesn't suit users that have a > different login name at ther local machine and a different one at > their's ISP mailbox. True :) > A solution to this is to use a genericstable file at their /etc/mail > mc file so there can be full address rewriting like userY@bsd.home > becomes userZ@isp's.net . The options that i have appended to the > previous configuration are the following: > > FEATURE(`genericstable', `btree -o /etc/mail/genericstable') > FEATURE(`generics_entire_domain') > GENERICS_DOMAIN(`bsd.home') > > [user@bsd.home]doc $ cat /etc/mail/genericstable > user@bsd.home userZ@isp's.net > > Thanks for your time. The only problem with `genericstable' is that newcomers to FreeBSD will have to be taught about ``map files'' and the correct way to update, regenerate (the .db file), possible pitfalls (i.e. using a different map type in hostname.mc and /etc/mail/Makefile), etc. Care to give it a try and send a diff with your suggestions? - Giorgos