@masuqur wrote:
Hi,
I configured haproxy 2.1 with postfix using the sample socket configuration found in example folder, socks4.cfg.I managed to send mail. but it takes around 30 sec average to get a success response.
I observed that I get response near to same time when I get email. Is it working in a synchronous way. But If I call direct to one of the SMTP then it give me immediate response.
So how can I configure it in a asyn way to get immediate response
Thanks
MasuqurConfiguration file
global
log /var/log/haproxy local0
log /var/log/haproxy local1 notice
chroot /var/lib/haproxy
stats timeout 30s
user haproxy
group haproxy
daemondefaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000listen smtp_back
bind :2525
mode tcp
option tcplog
maxconn 2000
timeout connect 5000
timeout client 50000
timeout server 50000
option smtpchk
no option http-server-close
balance roundrobin
server SMTPS43 10...:25 send-proxy check
server SMTPS53 10...*:25 send-proxy checkfrontend http_front
bind *:8081
stats uri /haproxy?stats
default_backend http_backbackend http_back
balance roundrobin
server local 10...*:8081 check
Posts: 1
Participants: 1