This is a summary on how to run an Axigen Mail Server behind HAProxy for Webmail, IMAPS and SMTP Submission.
Axigen Mail Server provides its own clustering and HA solutions, however, for a single instance (or even for a cluster setup) running HAProxy in front of all user services might be beneficial in terms of access control, routing and failover control.
Note The SMTP receiving service is not covered by this how-to, as we run a dedicated SMTP proxy in front of Axigen anyway. However, with the configuration shown below for SMTP Submission is should be applicable to SMTP receiving as well.
For this how-to a single Axigen instance is protected by a single HAProxy server. The HAProxy will terminate the SSL connection for IMAPS (993) and Webmail (443) and use SSL for those backend services to the Axigen instance.