Humm, what you are describing does not seem correct. If you set zimbraMtaRelayHost to a value with nothing else but default Zimbra settings, the behavior will be that it still routes mail between Zimbra domains without sending out to the relay. Any domain outside of the local Zimbra domains, it will send it to the value stored in zimbraMtaRelayHost. So I'm wondering if there is some other non-default value you have set. In fact, we sometimes get requests from customer that they wish to send all messages (even for local domains) to the relay.
[zimbra@mta1conf]$ vi transport
[zimbra@mta1 conf]$ cat transport
* smtp:relay.xyzcorp.net:25
[zimbra@mta1 conf]$ postmap transport
[zimbra@mta1 conf]$ zmprov ms `zmhostname` zimbraMtaTransportMaps "lmdb:/opt/zimbra/conf/transport"
[zimbra@mta1 conf]$ zmcontrol restart
That would mean everything that connects to mta1 on 25, 587, 465 goes to relay.xyzcorp.net. We must do it this way because if we just set the zimbraMtaRelayHost to relay.xyzcorp.net, the mail to local Zimbra domains will not hit the relay. Note - if using transport maps like above, it implies a second MTA (an inbound-only MTA) will need to be configured that does not have the zimbraMtaRelayHost value or transport maps (it accepts and then delivers to Zimbra user via LMTP).
[zimbra@mta1conf]$ vi transport
[zimbra@mta1 conf]$ cat transport
* smtp:relay.xyzcorp.net:25
[zimbra@mta1 conf]$ postmap transport
[zimbra@mta1 conf]$ zmprov ms `zmhostname` zimbraMtaTransportMaps "lmdb:/opt/zimbra/conf/transport"
[zimbra@mta1 conf]$ zmcontrol restart
That would mean everything that connects to mta1 on 25, 587, 465 goes to relay.xyzcorp.net. We must do it this way because if we just set the zimbraMtaRelayHost to relay.xyzcorp.net, the mail to local Zimbra domains will not hit the relay. Note - if using transport maps like above, it implies a second MTA (an inbound-only MTA) will need to be configured that does not have the zimbraMtaRelayHost value or transport maps (it accepts and then delivers to Zimbra user via LMTP).
Statistics: Posted by karl.b — Fri Jan 26, 2024 10:05 pm