I am migrating from sendmail to zimbra. here is the thing
we have defined the server within the network and got a local domain as office2.domain.com, I have enabled domain masquerading, so when mail is sent out from office2.domain.com to outside network masquerading happens and address is changed to domain.com.
I don't want domain masquerading for local mail delivery, but it should happen only for non local mail deliveries. In Sendmail I was able to do this i.e
If email@example.com is sending mail to firstname.lastname@example.org, the masquerading is not done, but if mail is sent out to email@example.com, masquerading is done, this helps in having local delivery instantly for local user and when he replies he replies to local host domain instead of main domain.
how can this be achieved with Zimbra and postfix.