HAProxy
HAProxy (High Availability Proxy), is a popular open source software "TCP and HTTP" Load Balancer and proxying solution. It is available as a package on almost all Linux distros.
WARNING
Dovecot CE supports single-server operation only, so load balancing is not applicable.
This page exists to document HAProxy-related features that exist in the software.
TLS Forwarding
For Dovecot to recognize that TLS termination has been performed, you need to configure haproxy to use PROXYv2 protocol with SSL attributes. For example:
server s1 127.0.0.1:143 send-proxy-v2-ssl
See also: secured connections.