hey I have tried to build a small load balancer to a smtp service.

my haproxy.conf is:
##conf start
global
        log 127.0.0.1 local0
        log 127.0.0.1 local1 notice
        #log loghost  local0 info
        maxconn 4096
        #chroot /usr/share/haproxy
        uid 99
        gid 99
        daemon
        #debug
        #quiet
defaults
        log global
        mode tcp
#        option httplog
        option dontlognull
        retries 3
#        redispatch
        maxconn 2000
        contimeout 5000
        clitimeout 50000
        srvtimeout 50000
listen tcp 0.0.0.0:225
        mode tcp
        option tcplog
        balance leastconn
        maxconn 10000
        server smtp1 192.168.25.1:25 maxconn 10
        server smtp2 192.168.25.1:25 maxconn 10
##conf end

when I run the connection from other machine I get all the load on one machine..

Reply via email to