Right, I found older response from Baptiste.
"...So, first, you must compile HAProxy with OpenSSL support (install first openssl librairies from your operating system). Then the configuration of IMAP health check can be scripted through the tcp-check feature: option tcp-check tcp-check connect port 143 tcp-check expect string *\ OK tcp-check connect port 993 ssl tcp-check expect string *\ OK ..." I will try that first. thanks Thanks Amir Yosef From: Rainer Duffner [mailto:rai...@ultra-secure.de] Sent: Thursday, January 01, 2015 4:18 PM To: PiBa-NL Cc: Yosef Amir; HAProxy Subject: Re: tcp-check for IMAP SSL ? Am 01.01.2015 um 14:37 schrieb PiBa-NL <piba.nl....@gmail.com<mailto:piba.nl....@gmail.com>>: Yosef Amir schreef op 1-1-2015 om 13:57: listen IMAP_SSL mode tcp bind :443 name VVM_SSL balance roundrobin tcp-check connect port 443 Maybe try the 'ssl' keyword as below. (i have not tested it at all..) tcp-check connect port 443 ssl option tcp-check tcp-check expect string ????? server MIPS3 3.3.3.3 check server MIPS4 4.4.4.4 check Hi, Port 143 will actually be inline-TLS (STARTTLS). SSL is on port 993. The above answer should be correct, according to this: http://comments.gmane.org/gmane.comp.web.haproxy/19274 But only for SSL. Don't know about inline-TLS. Rainer ________________________________ "This e-mail message may contain confidential, commercial or privileged information that constitutes proprietary information of Comverse Inc. or its subsidiaries. If you are not the intended recipient of this message, you are hereby notified that any review, use or distribution of this information is absolutely prohibited and we request that you delete all copies and contact us by e-mailing to: secur...@comverse.com. Thank You."