Hi,

There is some misunderstanding in your setup. If you host 3 domains
then you will rather want to send mails FROM these domains into outer
world through different gateways. But your transport maps work when
postfix work with mail TO this domains.

If I am right you should remove transport map and add sender_dependent_relayhost_maps = hash:/usr/pkg/etc/postfix/bysender
to main.cf, create bysender like:
@example1.com     smtp:gw1.gateway.com
@example2.com     smtp:gw2.gateway.com
@example3.com     smtp:gw3.gateway.com

run postmap /usr/pkg/etc/postfix/bysender
and reload postfix

On Wed, May 27, 2020 at 06:13:46PM +0200, Matteo Cazzador wrote:

example1.com     smtp:gw1.gateway.com
example2.com     smtp:gw2.gateway.com
example3.com     smtp:gw3.gateway.com

than i use make "postmap transport".

--
Sincerely yours,
Dima Veselov
Physics R&D Establishment of Saint-Petersburg University

Reply via email to