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

Unrecognized protocol header

$
0
0

I have a working Haproxy load balancer configure with postfix.
Mode: tcp
Haproxy version: 2.4.22
Postfix version: 3.5.8-7

I want to forward the client IP to postfix using the proxy protocols. So the client ip appears in the mail log and not haproxies.

I have added accept-proxy to the frontend bind.
I have added send-proxy to each backend node.
I have added the postfix main.cf with postscreen_upstream_proxy_protocol = haproxy
I have enabled postscreen in postfix master.cf and restarted both haproxy and postfix.

However, I get the following warnings and errors.

postfix/postscreen[123456]: warning: haproxy read: unrecognized protocol header: XXXXX TCP4 “haproxy ip” “client ip” 48024 25\r\n

Any help is greatly appreciated

5 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles