On 27/03/2014 16:26, Nikolaos Milas wrote:
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?
I'm not sure and this is not tested, but maybe you can:
transport_map:
noa.gr relay1:[vmail.noa.gr]
admin.noa.gr relay2:[vmail.noa.gr]
add to master.cf:
relay1 unix - - n - - smtp
-o fallback_relay=[firstwhateverhost]
relay2 unix - - n - - smtp
-o fallback_relay=[secondwhateverhost]
--
Levi