From owner-freebsd-questions@FreeBSD.ORG Fri Jan 4 09:36:42 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77D2C16A417 for ; Fri, 4 Jan 2008 09:36:42 +0000 (UTC) (envelope-from quakenet1@optusnet.com.au) Received: from mail17.syd.optusnet.com.au (mail17.syd.optusnet.com.au [211.29.132.198]) by mx1.freebsd.org (Postfix) with ESMTP id 15B8F13C468 for ; Fri, 4 Jan 2008 09:36:41 +0000 (UTC) (envelope-from quakenet1@optusnet.com.au) Received: from [10.0.0.3] (c220-239-172-188.belrs4.nsw.optusnet.com.au [220.239.172.188]) by mail17.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m049adnN010745; Fri, 4 Jan 2008 20:36:40 +1100 Message-Id: <03F4B167-C0FA-41F6-AC51-794B7A3FBEE5@optusnet.com.au> From: Jerahmy Pocott To: FreeBSD Questions In-Reply-To: <200801041011.18841.jonathan+freebsd-questions@hst.org.za> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Fri, 4 Jan 2008 20:37:22 +1100 References: <8089C65A-1218-4FCE-8040-16D21296E3DE@optusnet.com.au> <009501c84e10$d147dc50$c5010c0a@SUNYA> <06A8A1F9-B884-4BCF-A0AA-7AE2D4CFCCAC@optusnet.com.au> <200801041011.18841.jonathan+freebsd-questions@hst.org.za> X-Mailer: Apple Mail (2.915) Cc: Jonathan McKeown Subject: Re: Sendmail: sub-domain masquerade as top level 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, 04 Jan 2008 09:36:42 -0000 On 04/01/2008, at 7:11 PM, Jonathan McKeown wrote: > On Friday 04 January 2008 01:11, Jerahmy Pocott wrote: >> On 04/01/2008, at 12:59 AM, Barry Byrne wrote: >>>> -----Original Message----- >>>> From: owner-freebsd-questions@freebsd.org >>>> [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of >>>> Jerahmy Pocott >>>> >>>> I'm having an issue with getting sendmail to masquerade >>>> as the top level domain when the host is a sub domain. > >>> You don't say what you've tried already. I use postfix these days, >>> but from >>> memory, something like the following should work for you: >>> >>> MASQUERADE_AS(`domain.com') >>> MASQUERADE_DOMAIN(`sub.domain.com') >> >> Sorry, I should have mentioned what I had tried: >> >> I have tried the above and the above in combination with >> FEATURE(`masquerade_entire_domain') and pretty much >> every combination of those statements all to no effect. >> >> For some reason when the masquerade domain is the top >> level of the actual domain, it won't change it even with those >> options set.. > > This is from my live .mc file, which definitely works: > > MASQUERADE_AS(`hst.org.za')dnl > MASQUERADE_DOMAIN(`hst.org.za')dnl > FEATURE(`masquerade_envelope')dnl > FEATURE(`masquerade_entire_domain')dnl > MASQUERADE_EXCEPTION(`lists.hst.org.za barley.hst.org.za > akima.hst.org.za')dnl Adding FEATURE(`masquerade_envelope') fixed the issue I was having, thanks! Cheers, J.