From owner-freebsd-questions Fri Jun 1 9:31: 8 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp1.cybersurf.net (smtp1.cybersurf.net [209.197.145.111]) by hub.freebsd.org (Postfix) with ESMTP id B68F437B422 for ; Fri, 1 Jun 2001 09:31:05 -0700 (PDT) (envelope-from 01031149@3web.net) Received: from 3web.net ([209.197.159.211]) by smtp1.cybersurf.net (Netscape Messaging Server 4.15) with SMTP id GE9F7R00.SB7 for ; Fri, 1 Jun 2001 10:31:03 -0600 Received: by 3web.net (EzMTS MTSAgent 1.22b Service) ; Fri, 01 Jun 01 10:30:30 -0600 for Received: from 3web.net (10.0.0.2) by 3web.net (EzMTS MTSSmtp 1.50 Service) ; Fri, 01 Jun 01 07:32:10 -0600 for Received: by mandy.rockingd.calgary.ab.ca (sSMTP sendmail emulation); Fri, 1 Jun 2001 07:31:42 -0600 Date: Fri, 1 Jun 2001 07:31:41 -0600 From: Duke Normandin <01031149@3web.net> To: Giorgos Keramidas Cc: freebsd-questions@FreeBSD.ORG Subject: Re: sendmail domain re-writting Message-ID: <20010601073140.A82381@mandy.rockingd.calgary.ab.ca> Mail-Followup-To: Giorgos Keramidas , freebsd-questions@FreeBSD.ORG References: <20010531095722.A13118@polands.org> <20010531220932.M1126-100000@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010531220932.M1126-100000@hades.hell.gr>; from "Giorgos Keramidas" on Fri, Jun 01, 2001 at 07:40:16AM X-Envelope-Receiver: 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 Fri, Jun 01, 2001 at 07:40:16AM +0300, Giorgos Keramidas wrote: > On Thu, 31 May 2001, Doug Poland wrote: > > > Sorry for *yet another sendmail* question. This should be > > a simple solution.. > > > > I want sendmail on my 4.3-STABLE box to strip off the hostname > > part of my email address. For example: > > > > doug@mybox.mydomain.com > > > > becomes > > > > doug@mydomain.com > > > > Given a stock sendmail.cf, how does one accomplish this? > > Yes, you can use FEATURE(genericstable) to do that. > In my master-config file I have: > > FEATURE(`genericstable', `btree -o /etc/mail/genericstable')dnl > GENERICS_DOMAIN(`hell.gr')dnl > FEATURE(`generics_entire_domain')dnl > > Generated my sendmail.cf again and copied it to /etc/mail. > Then, I added in my /etc/mail/genericstable file: > > charon@hades.hell.gr keramidi@otenet.gr > > Make the genericstable map the usual way: > > # cd /etc/mail > # makemap btree genericstable < genericstable > > And all is set to go. What mail I sent from will be > rewritten to look as if it came from . > Hi giorgos.... Could you explain the difference between using 'genericstable' and the 'masquerade' feature. I suppose my confusion is semantical, as the above _seems_ to be a 'masquerade' as well. ;) TIA... -- -duke Calgary, Alberta, Canada To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message