Re: Different smtp gateway for domain

2020-05-27 Thread Dima Veselov
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

Re: Different smtp gateway for domain

2020-05-27 Thread Matteo Cazzador
Hi, yes i restart it after executing postmap. On 27/05/2020 18:10, @lbutlr wrote: On 27 May 2020, at 09:53, 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". And then

Re: Different smtp gateway for domain

2020-05-27 Thread @lbutlr
On 27 May 2020, at 09:53, 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". And then you reload postfix? -- "The sad thing about true stupidity is that you

Different smtp gateway for domain

2020-05-27 Thread Matteo Cazzador
Hi everybody,  i need to setup different smtp gateway for virtual domain on the same server. I've 3 virtual domain hosted on server, example1.com example2.com example3.com. I need to setup different smtp gateway for every domain. I use transport file like: example1.com     smtp:gw1.gateway.