> -----Original Message----- > From: owner-postfix-us...@postfix.org [mailto:owner-postfix- > us...@postfix.org] On Behalf Of Nikolaos Milas > Sent: 27 March 2014 14:27 > To: postfix-users@postfix.org > Subject: Re: Backup relay possible? > > On 27/3/2014 4:10 μμ, Birta Levente wrote: > > > Not really IMHO > > > > AFAIK since you have two entries with same key in transport map, > > postfix will choose the first. > > > > I think this is the way: > > > > main.cf: > > fallback_relay=[vmail1.noa.gr] > > > > transport_map: > > noa.gr relay:[vmail.noa.gr] > > admin.noa.gr relay:[vmail.noa.gr] > > Hmm, yes; reading the docs, I understand you are right. This is the way it > should be. (It was careless on my part to draw hastily a wrong > conclusion.) > > Yet, this means that a fallback relay will be common for all entries in > transport_maps (which is fine in my case), but there is no way to define > fallback relays per domain as in transport_maps? > > Nick
What I have done to mitigate this issue is to setup a DNS server with internal use only zones. The transport map would therefore read similar to the following: noa.gr relay:noa.gr.local I have then configured A records for the multiple relay destinations, queries are then balanced in a DNS round robin fashion. It's perhaps not the most elegant solution but *touch wood* it hasn't caused me any issues. Kind regards, James Day