# Postfix SMTPS HaProxy configuration

**URL:** <https://discourse.haproxy.org/t/postfix-smtps-haproxy-configuration/579>\
**Category:** Help!\
**Created:** [August 18, 2016, 5:49pm UTC](https://discourse.haproxy.org/t/postfix-smtps-haproxy-configuration/579 "2016-08-18T17:49:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rameshsahoo11](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rameshsahoo11](https://discourse.haproxy.org/u/rameshsahoo11)\
**Post date:** [August 18, 2016, 5:49pm UTC](https://discourse.haproxy.org/t/postfix-smtps-haproxy-configuration/579/1 "2016-08-18T17:49:00Z")

</div>

Hi,

Do HaProxy support load balancing of SMTPS(465) with Postfix ?

Regards,  
Ramesh Sahoo

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [August 19, 2016, 8:29am UTC](https://discourse.haproxy.org/t/postfix-smtps-haproxy-configuration/579/2 "2016-08-19T08:29:38Z")

</div>

Yes, you can either terminate SSL on haproxy and forward plaintext SMTP to your backends, or pass the SSL traffic transparently to your backends.

Node that to maintain the source-ip, you need to use the PROXY protocol, which needs a compliant SMTP server. Afaik postfix does have support for this now.

---

<div class="post-metadata">

**Author:** ![jottschi](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@jottschi](https://discourse.haproxy.org/u/jottschi)\
**Post date:** [October 4, 2016, 11:58am UTC](https://discourse.haproxy.org/t/postfix-smtps-haproxy-configuration/579/3 "2016-10-04T11:58:57Z")

</div>

Hi Ramesh,  
please avoid those Postfix-HA configurations and use MX-records as intended.

Jottschi

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [October 4, 2016, 5:43pm UTC](https://discourse.haproxy.org/t/postfix-smtps-haproxy-configuration/579/4 "2016-10-04T17:43:58Z")

</div>

If I understand correctly this is not about incoming mail traffic, but outgoing, where the client connects to a SMTP to send an email (so there is not MX involved).

I don’t think SMTPS can be done for incoming email traffic at all (but only STARTTLS).
