Pedro David Marco:
> Ops!!
>
> Thanks! I gladly do it, Wietse...
>
> The problem is this:
>
> i actually have a transport file like this:
>
> DomainA.com smtp:[10.10.10.1]:25
> DomainB.com smtp:[10.10.10.2]:25
> DomainC.com smtp:[10.10.10.3]:25
How many? 10? 100? 1000? It it's 10, just use different SMTP client
entries in master.cf, each with its own "-o smtp_fallback_relay"
override.
smtpA .. .. .. .. .. .. smtp
-o smtp_fallback_relay=[192.168.2.1]
smtpB .. .. .. .. .. .. smtp
-o smtp_fallback_relay=[192.168.2.2]
> what i need is to have alternative (fallback?) servers per each domain so..
>
> when 10.10.10.1 is down, DomainA.com emails are sent to 192.168.2.1
> when 10.10.10.2 is down, DomainB.com emails are sent to 192.168.2.2
> when 10.10.10.3 is down, DomainC.com emails are sent to 192.168.2.3
If it's 100 or 1000, why can't you use DNS with primary/secondary
MX records? It is used all over the Internet with good results.
Wietse