Override relayhost by MX

2021-05-06 Thread Vytenis Adm
Hi list, We have a postfix server, which forwards all customer's outbound emails to a "relayhost". Our "relayhost" is somewhat costly, so our goal is to minimize it's usage. MX is served by separate Postfix instance. Our goal is to deliver local emails to our MX directly, bypassing "relayho

Re: Override relayhost by MX

2021-05-06 Thread Matus UHLAR - fantomas
On 06.05.21 10:37, Vytenis Adm wrote: We have a postfix server, which forwards all customer's outbound emails to a "relayhost". Our "relayhost" is somewhat costly, so our goal is to minimize it's usage. MX is served by separate Postfix instance. Our goal is to deliver local emails to our MX d

Re: Override relayhost by MX

2021-05-06 Thread Vytenis Adm
On 2021-05-06 12:42, Matus UHLAR - fantomas wrote: On 06.05.21 10:37, Vytenis Adm wrote: We have a postfix server, which forwards all customer's outbound emails to a "relayhost". Our "relayhost" is somewhat costly, so our goal is to minimize it's usage. MX is served by separate Postfix insta

Re: Override relayhost by MX

2021-05-06 Thread Matus UHLAR - fantomas
On 06.05.21 10:37, Vytenis Adm wrote: We have a postfix server, which forwards all customer's outbound emails to a "relayhost". Our "relayhost" is somewhat costly, so our goal is to minimize it's usage. MX is served by separate Postfix instance. Our goal is to deliver local emails to our MX d

Re: Override relayhost by MX

2021-05-06 Thread Jaroslaw Rafa
Dnia 6.05.2021 o godz. 14:07:55 Vytenis Adm pisze: > > Yes, we did look into it, and it's not an option. "transport_maps" > looks into a DB, and we can't rely on it. Clients can point MX to > their own servers, and "transport_maps" will route to our MX > regardless of what is set in customer's DN

Re: Override relayhost by MX

2021-05-06 Thread Viktor Dukhovni
> On May 6, 2021, at 8:56 AM, Jaroslaw Rafa wrote: > > "transport_maps" looks into a *map*, and a map in Postfix is more than just > DB. For example it can be a *TCP table*, which means Postfix is asking some > program that listens on a specific port for the key, and gets a value in > return. It

Re: Override relayhost by MX

2021-05-06 Thread Vytenis Adm
Thanks Matus for taking time to respond. Appreciated. On 2021-05-06 14:34, Matus UHLAR - fantomas wrote: On 06.05.21 10:37, Vytenis Adm wrote: We have a postfix server, which forwards all customer's outbound emails to a "relayhost". Our "relayhost" is somewhat costly, so our goal is to mini

Re: Override relayhost by MX

2021-05-06 Thread Vytenis Adm
On 2021-05-06 15:56, Jaroslaw Rafa wrote: Dnia 6.05.2021 o godz. 14:07:55 Vytenis Adm pisze: Yes, we did look into it, and it's not an option. "transport_maps" looks into a DB, and we can't rely on it. Clients can point MX to their own servers, and "transport_maps" will route to our MX regard

Re: Override relayhost by MX

2021-05-06 Thread Jaroslaw Rafa
Dnia 6.05.2021 o godz. 16:37:29 Vytenis Adm pisze: > > Indeed. We were thinking about this as well. I was secretly hoping > there's a built-in solution, avoiding any development. I would say your case is very unusual, so it's unlikely that there would be a built-in solution. You must create some