Patrick Saweikis wrote: > > Hello > > > > We are using postfix 2.3.8 and have it integrated with > mysql and transport maps are set on a per domain basis this way > (transport_maps = mysql:/etc/postfix/mysql-transport.cf, > mysql-transport.cf contains the authentication and mysql query to > retrieve this info). > > > > We are now trying to incorporate a way to create > redundancy on the relay end, so currently we may just have the > transport map set to “smtp:[10.1.1.7]” and are trying to find a way to > tell it that if it cannot relay to the transport_maps location, try > this other. I had done some research and found that > smtp_fallback_relay should do what I need. I tried implementing this > without success, I am getting “unknown mail transport error” when > enabling that option, whether the transport_maps location is > accessible or not. > > > > Any ideas on how we can accomplish this? Is > smtp_fallback_relay the correct method to do this? Any help would be > greatly appreciated. Thanks. > > Remember, transport_maps overrides all other settings.
The simplest way is to setup a local DNS domain (example.local for instance) with MX records of the same priority. Then, replace the IP with the local domain you created. This adds a small amount of cost for each message. Brian