OK, then you'll need to enable the PROXY protocol in exim assuming it supports the protocol.
On Tue, Aug 2, 2016 at 5:39 PM, Grégory MARCASSIN - Magic < [email protected]> wrote: > It s true but i want the real IP of the client so i need this option. > > > > > Le 02/08/2016 à 23:37, Jeff Palmer a écrit : > > I'm not familiar with exim itself, but unless it supports the PROXY > protocol, you should probably remove the "send-proxy" part of your > bk_postfix backend. > > > > On Tue, Aug 2, 2016 at 5:21 PM, Grégory MARCASSIN - Magic < > [email protected]> wrote: > >> Hi, >> >> Sorry to ask you something that I can probably find on the internet. :$ >> But I do not find clearly what I wish. >> Thank you in advance for your help. >> >> I wish to inform exim to support haproxy >> >> check: >> >> $ Telnet VIP 25 >> Trying 192.168.56.50 ... >> Connected to vip. >> Escape character is '^]'. >> 554 SMTP synchronization error >> Connection closed by foreign host. >> >> log: >> 2016-08-02 8:37:37 p.m. SMTP protocol synchronization error (input feels >> without waiting for greeting) rejected connection from H lb1web >> [192.168.56.51] input = "PROXY TCP4 192.168.56.1 192.168.56.50 64036 25 \ r >> \ not" >> >> >> Currently here is my conf >> >> global >> chroot /var/lib/haproxy >> pidfile /var/run/haproxy.pid >> maxconn 8000 >> user haproxy >> group haproxy >> daemon >> tune.ssl.default-dh-param 2048 >> tune.bufsize 72000 >> >> #nbproc 4 >> >> # turn on stats unix socket >> stats socket /var/lib/haproxy/stats >> >> defaults >> mode http >> log global >> option httplog >> option dontlognull >> option http-server-close >> option forwardfor >> option forwardfor header X-ClientIP >> option redispatch >> option httpchk >> retries 3 >> timeout http-request 5s >> timeout queue 1m >> timeout connect 5s >> timeout client 30s >> timeout server 10s >> timeout http-keep-alive 10s >> timeout check 10s >> maxconn 3000 >> >> # HAProxy web ui >> listen stats 192.168.56.50:8080 >> mode http >> stats hide-version >> stats enable >> stats uri /stats >> stats realm HAProxy\ Statistics >> stats auth admin:admin >> stats admin if TRUE >> >> frontend smtp_proxy >> mode tcp >> bind 192.168.56.50:25 transparent >> default_backend bk_postfix >> >> backend bk_postfix >> mode tcp >> option smtpchk >> option forwardfor >> #source 0.0.0.0 usesrc clientip >> server postfix2 192.168.56.53:25 send-proxy check >> server postfix3 192.168.56.54:25 send-proxy check >> >> >> Exim with défault config >> >> Le 02/08/2016 à 23:12, Jeff Palmer a écrit : >> >> What specifically are you having issues with, and what are the >> configurations you have already tried? >> >> >> Just asking someone to do your job for you isn't likely to get a lot of >> replies. >> >> >> >> On Tue, Aug 2, 2016 at 4:36 PM, Grégory MARCASSIN - >> Magic<[email protected]> <[email protected]> wrote: >> >> Hi, >> Sorry to ask ... >> >> Can you send me a url or a conf for the support EXIM4 ? >> >> >> Thx a lot >> >> Best regards >> -- >> >> >> >> >> -- >> 130-134 Avenue du Président Wilson >> 93512 Montreuil Cedex >> www.magic.fr >> >> Grégory MARCASSIN >> Administrateur Système >> Tél : +33 (0)1 41 58 22 81 >> Fax : +33 (0)1 56 72 93 30 <%2B33%20%280%291%2056%2072%2093%2030> >> SAV : +33 (0)1 41 58 22 50 <%2B33%20%280%291%2041%2058%2022%2050> >> > > > > -- > Jeff Palmer > https://PalmerIT.net > > > -- > 130-134 Avenue du Président Wilson > 93512 Montreuil Cedex > www.magic.fr > > Grégory MARCASSIN > Administrateur Système > Tél : +33 (0)1 41 58 22 81 > Fax : +33 (0)1 56 72 93 30 <%2B33%20%280%291%2056%2072%2093%2030> > SAV : +33 (0)1 41 58 22 50 <%2B33%20%280%291%2041%2058%2022%2050> > -- Jeff Palmer https://PalmerIT.net

