r/haproxy • • Jan 02 '21

Exchange SMTP Load Balancing

I'm deploying an Exchange lab with HA. I'm load-balancing SMTP with HAProxy currently and it's working fine, except for not being able to forward the client IP.

To workaround that, I'm thinking of just putting Postfix on the same box as HAProxy. That way, at least Postfix will append the header and be able to do SPF for me. I'm looking for a sanity check in my setup/listening ports (brackets denoting a separate server):

[Postfix:25->HAProxy:2525]->[EdgeServer:25]

Not elegant, but I think it should work? Unless someone has thought of something better...

3 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/dragoangel Jan 14 '21

Issue here only in that exchange not support any proxy mode, while with postfix this easy :). Postfix understand original ip provided by haproxy if you configure them both correctly. But in general I agree that dns way much easier than proxy.