Hi,
why dont you create 2 MX record for the smtp hostname that you put on
your desktop
youre desktop will get 1 of the 2 mx record (ip 192.168.30.196 or
192.168.30.197) this is all in the SMTP protocol no need for haproxy to
do this.
Then all your log in postfix will show clients IP and auth will work
just as usual
Bye
jayesh shinde a écrit :
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
--
Guillaume Bourque, B.Sc.,
consultant, infrastructures technologiques libres !
Logisoft Technologies inc. http://www.logisoftech.com
514 576-7638, http://ca.linkedin.com/in/GuillaumeBourque/fr