From owner-freebsd-questions Sat Jun 2 5:51: 5 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 6828237B423 for ; Sat, 2 Jun 2001 05:51:01 -0700 (PDT) (envelope-from 01031149@3web.net) Received: from 3web.net ([209.197.133.123]) by smtp1.cybersurf.net (Netscape Messaging Server 4.15) with SMTP id GEAZOY00.SR8 for ; Sat, 2 Jun 2001 06:50:58 -0600 Received: by 3web.net (EzMTS MTSAgent 1.22b Service) ; Sat, 02 Jun 01 06:50:25 -0600 for Received: from 3web.net (10.0.0.2) by 3web.net (EzMTS MTSSmtp 1.50 Service) ; Sat, 02 Jun 01 06:49:46 -0600 for Received: by mandy.rockingd.calgary.ab.ca (sSMTP sendmail emulation); Sat, 2 Jun 2001 06:49:41 -0600 Date: Sat, 2 Jun 2001 06:49:39 -0600 From: Duke Normandin <01031149@3web.net> To: Giorgos Keramidas Cc: freebsd-questions@FreeBSD.ORG Subject: Re: sendmail domain re-writting Message-ID: <20010602064938.A155103@mandy.rockingd.calgary.ab.ca> Mail-Followup-To: Giorgos Keramidas , freebsd-questions@FreeBSD.ORG References: <20010601073140.A82381@mandy.rockingd.calgary.ab.ca> <20010601232546.T4316-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: <20010601232546.T4316-100000@hades.hell.gr>; from "Giorgos Keramidas" on Fri, Jun 01, 2001 at 11:35:57PM 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 11:35:57PM +0300, Giorgos Keramidas wrote: > On Fri, 1 Jun 2001, Duke Normandin wrote: > > > 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... > > When you use `masquerade', you get rewriting of the host part of the address. > You can arrange that all mail that leaves gray.westgate.gr will have in their > headers gray.westgate.gr replaced by westgate.gr, and thats pretty much all > there is to it. > > The `genericstable' feature provides with more fine-grained control over what > gets rewrittten and what it gets rewritten to. You can change both the > host/domain part of an address, and/or the username. You can think of > genericstable as virtual-domains for outgoing mail :-) > > To clarify all this with an example though, let us assume that I have called > my home machine hades.hell.gr and I want all the main that leaves this machine > to have an envelope address of username@hell.gr (where username, the login of > the user sending mail). In this case, masquerade is fine for me, and if I add > to my master config the following it will work: > > dnl What we masquerade as. > MASQUERADE_AS(`hell.gr') > dnl Make sure that *.hell.gr gets masq'd. > FEATURE(masquerade_entire_domain) > dnl Rewrite envelope addresses too. > FEATURE(masquerade_envelope) > > be careful to note that a user called "charon" when such a setup is used on > hades.hell.gr will send mail as and have his address > rewritten to . But so will whose > outgoing mail will seem to originate from . > > But what if wants his mail to seem like it came from > , and wants her mail to seem like > it came from ? > > This is where genericstable will help you immensely. > But this message is getting too long... > > Hope I've helped a bit. > > --giorgos Thanks! It helps _more_ than a little bit. This type of explanation(s) would make 'sendmail' et al that much less ambiguous and cryptic, were they the norm. Thanks again.... -- -duke Calgary, Alberta, Canada To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message