efa settings domain and ip

General eFa discussion
Post Reply
bostjanc
Posts: 165
Joined: 01 Jun 2016 17:18

efa settings domain and ip

Post by bostjanc »

Hey there.
A basic question could it possible somehow be done.
In efa settings (for inbound mail flow) in mail settings section you can define domain name and then one ip of the server. Lets presume that we have two internal smtp server for one/same domain and one of them becomes corrupted. Is there a way to configure inbound mail relay on efa to relay on both ips? Current setting allows you only per 1 domain 1 ip, you can not configure domain and then two ips. any workarounds on that?
with best regards
User avatar
pdwalker
Posts: 1583
Joined: 18 Mar 2015 09:16

Re: efa settings domain and ip

Post by pdwalker »

Don't know about that, but you may consider using a virtual ip shared between the two internal smtp servers, so if one goes down, the other will start responding to that address.
bostjanc
Posts: 165
Joined: 01 Jun 2016 17:18

Re: efa settings domain and ip

Post by bostjanc »

Hi there.
Thanks for the reply.
I dunno how to achieve virtual ip, what concerns me currently I have single point of failure.

SITE 1
INTERNAL SMTP in LAN, and EXTERNAL SMTP (efa1) in DMZ

SITE2
INTERNAL SMTP in LAN, and EXTERNAL SMTP (efa2) in DMZ

Now between INTERNAL SMTP there is redundancy configured, if internal SMTP crashes in SITE1, then automatically INTERNAL SMTP in SITE2 takes all the roles from it, and it's full functional, but the problem is that mail flow is going to be stucked due to efa1 (mx public) will try to relay those messages to an IP of internal SMTP server in SITE1.
:(

No other workarounds or improvements in future releases of EFA?
ovizii
Posts: 463
Joined: 11 May 2016 08:08

Re: efa settings domain and ip

Post by ovizii »

Those settings are saved into /etc/postfix/transport so you coudl check the postfix documentation for that file.

maybe as a workaround something like
example.com smtp:bar.example

and have bar.example resolve to both IPs so no matter which server goes down things will work?
bostjanc
Posts: 165
Joined: 01 Jun 2016 17:18

Re: efa settings domain and ip

Post by bostjanc »

Yep, dns round robin does it.
Thanks for the help.
We can close this thread.
With best regards
Post Reply