On 6/6/2016 7:28 AM, Zalezny Niezalezny wrote: > Hi, > > I just would like to know if its possible to configure muliple IP`s > of SMTP servers in this configuration file: > > check_sender_access regexp:/etc/postfix/check_sender_regexp > > > > At the moment we are forwarding message with following sender E-mail > address to one of our MS Exchange servers. > > > /zelezny.niezale...@domain.com/ > <http://zelezny.niezale...@domain.com/>FILTER smtp:[192.168.2.100] > > > How may I setup in this file some kind of "backup MX" server if > smtp:[192.168.2.100] will be down. > Is it possible to setup for example 3x IP`s ? If yes, how to do it ? > > Single IP address of smtp relay in our high available environment is > not allowed. I cannot use local domain with MX records because dns > lookup has been disabled. > > Maybe somebody will be able to support me here ? > > > Thanks in advance for any hints !
It's unfortunate you feel the need to disable DNS lookups, as a local MX entry is the obvious solution. You can list the destination name in /etc/hosts with multiple IPs to load-balance between all the listed IPs. You can clone the master.cf smtp transport to a different name, with the option -o smtp_fallback_relay=[other.ip] http://www.postfix.org/postconf.5.html#smtp_fallback_relay -- Noel Jones