When we build a Zimbra server NAT'd, we still want the box to accept emails sent in the domain literal format.
To do that, main.cf in Postfix needs to be modified to change the $mydestination line as follows:
$mydestination = localhost, [public ip of server]
(And yes, those square brackets are required by Postfix as they stop Postfix from doing a DNS lookup.)
Since there is no documentation I can find on zmlocalconfig -e allowed syntax, I'm nervous about running:
zmlocalconfig -e postfix_mydestination=localhost, [publicipofserver]
Right now, we just edit main.cf manually and reload Postfix, but as the number of NAT'd Zimbra servers we take care of goes up, this gets kind of old to have to edit main.cf after each time a zmcontrol stop; zmcontrol start is run.
Any zmlocalconfig gurus out there?