Hi  , 

I am trying to configure the HAProxy for SMTP load balancing.  The same has 
been configure on my local server as follows , below are the content of the 
/etc/haproxy.cfg 


listen smtp 192.168.30.195:25
        mode tcp
        option tcplog
        balance roundrobin

        server smtp1 192.168.30.196:25 weight 1 maxconn 5000 check
        server smtp2 192.168.40.197:25 weight 1 maxconn 5000 check

On 192.168.30.196 and 192.168.40.197  postfix running on 25 port and load is 
getting balance properly. 

My Question :--
===========

1) How do I get end users real request IP on 192.168.30.196 and 192.168.40.197 
? 

Currently whenever any end user send the emails from desktop  vai  
192.168.30.195 IP , then I am getting 192.168.30.195 IP in smtp1's  and 
smtp2's  maillog  i.e  not the actual desktop sender IP.  How to get the 
desktop IP i.e real  IP in maillog  ?

2)  My desktop user is not getting authenticate from the 192.168.30.196 and 
192.168.40.195 . On the SMTP server I have ldap authentication which is running 
properly. 


because of the above 2 problem I can't use the HAProxy in production 
environment. 

Can any please guide me how to solve above 2 problem ? I checked mailling list 
and do Google but could not got any positive response. 

Your inputs will be valuable for me. 

Thanks & Regards
Jayesh Shinde






      

Reply via email to