Re: e-mail filtering base on the IP

2016-10-04 Thread Benny Pedersen

On 2016-10-04 13:28, Zalezny Niezalezny wrote:


is it possible to route messages base on the sender IP address ?


yes its possible (sadly)


So for example from host A I would like to route all messages to host
Z and from the rest of the hosts to host Y.


google found this one here

https://www.howtoforge.com/community/threads/postfix-relay-one-domain-to-smarthost-a-all-else-to-smarthost-b.62955/


Is it possible some how to configure it ?


its much much more simple in dns


Re: e-mail filtering base on the IP

2016-10-04 Thread Wietse Venema
Zalezny Niezalezny:
> Hi,
> 
> is it possible to route messages base on the sender IP address ?
> 
> So for example from host A I would like to route all messages to host Z and
> from the rest of the hosts to host Y.
> 
> Is it possible some how to configure it ?

You can use the FILTER action in a check_client_access table to
deliver an email message via a specific host or message delivery
transport.

some-patternFILTER smtp:host
other-pattern   FILTER special-smtp: (postfix 2.7 or later)

Ditto with policy service:

action=FILTER smtp:host (or special-smtp:)

Wietse


e-mail filtering base on the IP

2016-10-04 Thread Zalezny Niezalezny
Hi,

is it possible to route messages base on the sender IP address ?

So for example from host A I would like to route all messages to host Z and
from the rest of the hosts to host Y.


Is it possible some how to configure it ?


With kind regards

Zalezny