Sendmail: sub-domain masquerade as top level

Barry Byrne barry.byrne at wbtsystems.com
Thu Jan 3 05:59:24 PST 2008


 
> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org 
> [mailto:owner-freebsd-questions at 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 at example.com rather than user at 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')

 - Barry





More information about the freebsd-questions mailing list