Le 30/05/2023 à 16:07, Benny Pedersen via Postfix-users a écrit :
Viktor Dukhovni via Postfix-users skrev den 2023-05-30 14:30:
There's no good reason to have mail sent to mx2 unless mx1 is down.
and subject says load balancing, not backup mx
imho OP asked not to have mx backup, but load balancing, in with case
HA-Proxy would help more
also if load balancing it makes no sense to add one more mx, but add
one more ip to first mx, if OP don't have expansive hardware load
balances
Off-topic or not, your advice is BAD.
Adding one more IP to first MX completely defeat the build-in native HA
and LB mechanism provided by SMTP since ages.
If one IP is down and the client try to connect to it the MX will be
declared dead and you will be subject to queue retry timer, potentially
multiple time with back-off with DNS RR unluck.
With two MX with same weight you will get instant delivery to the other
MX and natural LB nominally.
With two MX with different weight you will get instant delivery to the
next MX if the lower one is down.
No need HA-proxy, no need of expensive hw lb. They are only needed in
high volumes, high SMTP front end count (LB backends) scenario.
Multiple IP on a MX target FQDN is a really bad practice.
Emmanuel.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org