Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2008 10:11:33 +1100
From:      Jerahmy Pocott <quakenet1@optusnet.com.au>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Cc:        Jonathan McKeown <jonathan@hst.org.za>, Barry Byrne <barry.byrne@wbtsystems.com>
Subject:   Re: Sendmail: sub-domain masquerade as top level
Message-ID:  <06A8A1F9-B884-4BCF-A0AA-7AE2D4CFCCAC@optusnet.com.au>
In-Reply-To: <009501c84e10$d147dc50$c5010c0a@SUNYA>
References:  <8089C65A-1218-4FCE-8040-16D21296E3DE@optusnet.com.au> <009501c84e10$d147dc50$c5010c0a@SUNYA>

next in thread | previous in thread | raw e-mail | index | archive | help

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.
>>
>> For example I want server.exmaple.com to send mail as
>> user@example.com rather than user@server.example.com,
>> how ever the masquerade options don't seem to work for
>> this.. It works fine if the server is a different domain, but
>> not when it's a sub domain..
>>
>> How do I get this behavior?
>
> Jerahmy,
>
> 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..

Maybe a virtualusertable entry could do the trick?

Thanks!
Jerahmy.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?06A8A1F9-B884-4BCF-A0AA-7AE2D4CFCCAC>