HAProxy Enterprise Documentation 12.0

Configuring MAPI/RPC Services

HAProxy provides the following template to help you configure MS Exchange 2010 MAPI (Message Application Programming Interface) / RPC (Remote Procedure Call) services.

You may have to modify these parameters to suit your environment:

peer directive statements

HAProxy server names and associated administrative IP


The listening IP (usually an IP address configured over VRRP)


The server name and IP addresses


You can use the defaults XCHANGE2010_TCP, peers and backend sourceaddr sections for other Exchange 2010 TCP based services. There is no need to duplicate them.

peers hapeelb
    peer hapee1
    peer hapee2
    # Persistence table

backend sourceaddr
    stick-table size 10k type ip peers hapeelb

defaults XCHANGE2010_TCP
    mode tcp
    log global
    option tcplog
    balance leastconn
    option dontlognull
    option redispatch
    option contstats
    option socket-stats
    timeout server 600s
    timeout client 600s
    timeout connect 5s
    timeout queue 60s
    retries 3
    default-server inter 15s rise 2 fall 2
    backlog 10000

frontend ft_xchange2010_rpctcp
    bind name epm tcp-ut 30s
    bind name mapi tcp-ut 30s
    bind name addressbook tcp-ut 30s
    default_backend bk_xchange2010_rpctcp

backend bk_xchange2010_rpctcp
    balance leastconn
    stick on src table sourceaddr
    option tcp-check
    tcp-check connect port 135
    tcp-check connect port 60000
    tcp-check connect port 60001
    default-server on-marked-down shutdown-sessions
    server CAS1 check
    server CAS2 check

Next up

Configuring POP3 Service