Im trying to send emails from example@example.com from the MIAB server, to another email server with the @example.com domain. The MIAB server is setup with multiple domains (@example.com, @test.com). When I add the @example.com it doesn’t allow me to send any mail to the other email server (non MIAB @example.com server).
What Im looking for is a way to have all mail trying to be send to @example.com to automatically be sent to the other email server, it should never try to delivery internally. Does anyone know where this would be set at?
It would be an unsupported modification within postfix. Is there some specific reason you need this specific setup for email routing? MiaB always sends via the Local Mail Exchanger by default rather than a Remote Mail Exchanger.
You can use the postfix transport_maps parameter.
I did something similar recently: some users from my domain are using GSuite and some are using MiaB.
Please keep in mind that once you have made this type of modification you will be in unsupported territory … that said, you should be fine to do this however please note that the changes you make will most likely be overwritten by MiaB when it is upgraded in the future. So be prepared to make these modifications whenever you upgrade.
I guess I have a similar scenario. I’m using MIAB to relay email sent by the ERP of one of our customers. Their own mailserver wouldn’t suffice.
Now, however when I’m mailing my customer MIAB is obviously trying to route it internally. Would I have to create a transport map as: