EFA deliver to multiple servers?
EFA deliver to multiple servers?
could EFA be configured to deliver to multiple servers for a domain, in either a round-robin or failover setup?
Re: EFA deliver to multiple servers?
Sure.
One obvious way is to take advantage of DNS round robin.
E.g. efa, accepts mail for example.com. In my mail transport settings, I have 3 hosts that will accept the mail for example.com and do the right thing. So in my dns, I might do the following:
10.10.1.1 A mail.example.com
10.10.1.2 A mail.example.com
10.10.1.3 A mail.example.com
Then in my transport settings, I will configure the EFA transport settings to for example.com to send it to mail.example.com. When EFA does a host lookup, it will tend to rotate through the different IP addresses defined in the DNS.
Note that postfix is what is actually configured to deliver the mail to multiple hosts.
Lastly, if that way doesn't work for you, consider using HAProxy to do the work instead, but that's more complicated and beyond the scope of configuring EFA.
One obvious way is to take advantage of DNS round robin.
E.g. efa, accepts mail for example.com. In my mail transport settings, I have 3 hosts that will accept the mail for example.com and do the right thing. So in my dns, I might do the following:
10.10.1.1 A mail.example.com
10.10.1.2 A mail.example.com
10.10.1.3 A mail.example.com
Then in my transport settings, I will configure the EFA transport settings to for example.com to send it to mail.example.com. When EFA does a host lookup, it will tend to rotate through the different IP addresses defined in the DNS.
Note that postfix is what is actually configured to deliver the mail to multiple hosts.
Lastly, if that way doesn't work for you, consider using HAProxy to do the work instead, but that's more complicated and beyond the scope of configuring EFA.