OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Question about multiple postfix setup

forumuserkogels.net
Date: Mon Aug 01 2005 - 11:50:00 CDT


Hi all,

I have a question how to setup postfix when usign multiple postfix
servers. My setup is like this:

serverA.example.com: has internet access and a domain name that can be
resolved on the Internet. All mail to/from the Internet should go by this
server (mail gateway).

serverB.example.com: connected by LAN to serverA.example.com. Mail from
this server that should not be delivered locally, should be
forwarded/relayed to serverA.

This works fine, but I have a few small things that I want to change:

All mail from serverA should masquerade mail to <user>example.com
I have done this using "masquerade_domains = example.com"; works great.

Mail from serverB which is relayed to serverA should als be masqueraded by
serverA. In this setup it works as well.

And now my problem: if serverA is the destination and receives mail from
serverB, the mail from serverB should NOT ne masqueraded. This does not
work; mail received on serverA should look like this:
<user>serverB.example.com

So the bottom line is: mail within the local LAN should never be
masqueraded between servers, only when the mail leaves serverA.

Long question, hopefully someone has a short answer ;-)

Thanks,

Rene