Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-31-2013, 11:59 PM   #1
Registered: Apr 2006
Location: Singapore
Distribution: RHEL4,FC4,FC5
Posts: 89

Rep: Reputation: 15
HAproxy and Exchange OWA/Outlook anywhere

Before I describe my problem, here is the configuration of my haproxy :

Public IP : 202.X.X.X
LB ip :
[root@VM-LB1 ~]# cat /etc/haproxy/haproxy.cfg
log /dev/log local0 debug
maxconn 4096
#chroot /usr/share/haproxy
pidfile /var/run/
uid 99
gid 99
stats socket /var/run/haproxy.stat

log global
retries 3
maxconn 1000
contimeout 5000
clitimeout 86400000
srvtimeout 86400000

listen stats :7777
mode http
stats enable
stats hide-version
stats uri /haproxy
stats auth admin:123456
stats realm HAProxy\ Statistics
stats admin if TRUE

frontend CAS-WEB
mode tcp
bind :80,:443
default_backend cas-web-servers
option tcplog

frontend CAS-pop3
mode tcp
bind :110,:993,:995
default_backend CAS-pop3-servers
option tcplog

frontend HT-SMTP
mode tcp
bind :25,:587
default_backend ht-servers

backend cas-web-servers
balance leastconn
option redispatch
option abortonclose
stick on src
stick-table type ip size 10240k expire 240m
#option ssl-hello-chk
option httpchk HEAD / HTTP/1.0
server cas1 check port 443 check-ssl inter 5000 rise 2 fall 2
server cas2 check port 443 check-ssl inter 5000 rise 2 fall 2

backend CAS-pop3-servers
stick-table type ip size 10240k expire 60m
stick on src
option redispatch
option abortonclose
balance leastconn
server cas1 weight 1 check port 110 inter 2000 rise 2 fall 3 on-marked-down shutdown-sessions

backend ht-servers
option redispatch
option abortonclose
balance leastconn
server ht1 check port 25 inter 5000 rise 2 fall 2
server ht2 check port 25 inter 5000 rise 2 fall 2

Problem :

I have 2 backend servers running Exchange OWA. connection speed is excellent if is up. If it is down, traffic will point to and it will start to crawl. OWA will be VERY slow, Outlook(connect using outlook anywhere technology, which is also dependent on 443) will also take forever to connect.

But, I if nat the public ip directly to without going through haproxy), OWA and Outlook can load very fast!.

Question is :

why is fast and why is slow? something wrong with my haproxy config? and why there is not problem if i NAT directly to

Thanks in advance.

Last edited by binary_0011; 02-01-2013 at 12:01 AM.
Old 03-12-2013, 08:34 AM   #2
LQ Newbie
Registered: Mar 2013
Posts: 3

Rep: Reputation: Disabled
It could be related to health check failures?

I would personally check the logs or HAProxy stats page and look for error and dwntime.

Hope that helps.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL + Exchange and/or Outlook Micro420 Linux - Server 1 11-20-2008 11:36 PM
Configure Evolution with Exchange OWA leupi Linux - Desktop 2 07-19-2007 11:33 PM
Exchange Client w/o OWA on Mandriva stccrd Linux - Software 1 08-16-2006 11:11 PM
evolution outlook exchange configuration sailajabhandaru Linux - Software 0 12-08-2005 07:14 AM
Outlook and exchange server PAB Linux - Newbie 3 11-08-2003 01:33 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration