Hi,
Le 02/08/2016 à 23:21, Grégory MARCASSIN - Magic a écrit :
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
Here, you are enabling the Proxy Protocol when connecting to Exim
(really a "good" idea to name those servers "postfix2" and "postfix3"...)
Exim with défault config
You have to enable the Proxy Protocol on the exim side, then.
Please read the Exim documentation to see how to do that (look at the
keyword "hosts_proxy").
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]> 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 <http://www.magic.fr/>
Grégory MARCASSIN
Administrateur Système
Tél : +33 (0)1 41 58 2281
Fax : +33 (0)1 56 72 93 30 <tel:%2B33%20%280%291%2056%2072%2093%2030>
SAV : +33 (0)1 41 58 22 50 <tel:%2B33%20%280%291%2041%2058%2022%2050>
--
Cyril Bonté