r/exchangeserver • u/J4NN7J0K3R • Dec 21 '25
Question Loadbalancing solution for Exchange-Servers
Hi,
we are running a Microsoft Exchange infrastructure behind a destination NAT load balancer and want to change to a software solution.
I discovered HAProxy and think it could be a possible solution for us, except for IMAP and SMTP in TCP mode because we can't see the correct source IP address in the IMAP and SMTP logs.
However, we can add the Forwarded-For HTTP header for IIS. Is there nothing equivalent for IMAP or SMTP, right?
Microsoft Exchange doesn't support the proxy protocol, if I'm not mistaken?
What can I do to get the correct IP address for the backend Microsoft Exchange servers?
Thanks in advance for your answers!!
View all comments
Show parent comment
2
u/dragoangel Dec 26 '25
Honestly complicated and haproxy is opposite things. Most times UI does opposite- it not simplify anything, it does everything worse and messy. If haproxy configs become a bit complicated I always prefer to setup some templating instead with Ansible or Pupput, etc