Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4731

Haproxy configuration for postfix synchronous or asynchronous

$
0
0

@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
Masuqur

Configuration file

global
log /var/log/haproxy local0
log /var/log/haproxy local1 notice
chroot /var/lib/haproxy
stats timeout 30s
user haproxy
group haproxy
daemon

defaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000

listen 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 check

frontend http_front
bind *:8081
stats uri /haproxy?stats
default_backend http_back

backend http_back
balance roundrobin
server local 10...*:8081 check

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4731

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>