From owner-freebsd-questions Fri Jun 1 20:12:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 3592137B423 for ; Fri, 1 Jun 2001 20:12:05 -0700 (PDT) (envelope-from keramidi@otenet.gr) Received: from hades.hell.gr (patr530-b024.otenet.gr [195.167.121.152]) by mailsrv.otenet.gr (8.11.1/8.11.1) with ESMTP id f523BwU21095; Sat, 2 Jun 2001 06:11:59 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.3/8.11.3) id f51KZww04344; Fri, 1 Jun 2001 23:35:58 +0300 (EEST) (envelope-from keramidi@otenet.gr) Date: Fri, 1 Jun 2001 23:35:57 +0300 (EEST) From: Giorgos Keramidas X-X-Sender: To: Duke Normandin <01031149@3web.net> Cc: Subject: Re: sendmail domain re-writting In-Reply-To: <20010601073140.A82381@mandy.rockingd.calgary.ab.ca> Message-ID: <20010601232546.T4316-100000@hades.hell.gr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message