Re: Relay based on recipient mail server IP address

2020-04-02 Thread ego...@gmail.com
Thanks Viktor for your remarks: - in my environment I do not have other FILTER rules. - As far as I understood if an email has multiple recipients, and one of them triggers check_recipient_mx_access all emails are routed through the smtp relay specified by FILTER? If it is the case, it is not a pro

RE: Relay based on recipient mail server IP address

2020-04-02 Thread Einar EINARSSON, IEA
HI Ok, done Thanks -Original Message- From: owner-postfix-us...@postfix.org On Behalf Of Viktor Dukhovni Sent: Thursday, April 02, 2020 10:42 To: postfix-users@postfix.org Subject: Re: Relay based on recipient mail server IP address On Thu, Apr 02, 2020 at 10:31:32AM +0200, ego

Re: Relay based on recipient mail server IP address

2020-04-02 Thread Viktor Dukhovni
On Thu, Apr 02, 2020 at 10:31:32AM +0200, ego...@gmail.com wrote: > Thanks Wietse, it worked! Do you have good reason to expect that this will never misroute multi-recipient email? There's a difference between "it worked once" (in a simple test-case) and "it is reliable enough for production use

Re: Relay based on recipient mail server IP address

2020-04-02 Thread ego...@gmail.com
Thanks Wietse, it worked! Il giorno mer 1 apr 2020 alle ore 15:58 Wietse Venema ha scritto: > > ego...@gmail.com: > > Hi everybody, is it possible to define a transport map based on > > recipient mail server address instead of recipient domain? > > Postfix reads the transport map before it knows

Re: Relay based on recipient mail server IP address

2020-04-01 Thread Wietse Venema
ego...@gmail.com: > Hi everybody, is it possible to define a transport map based on > recipient mail server address instead of recipient domain? Postfix reads the transport map before it knows the server IP address. You can override the transport map with a FILTER command. However: - This works o

Relay based on recipient mail server IP address

2020-04-01 Thread ego...@gmail.com
Hi everybody, is it possible to define a transport map based on recipient mail server address instead of recipient domain? Something like this: cat /etc/postfix/transport 123.456.123.456 smtp:[relayhost.com] Or is there another way to achieve this?