Hativ,
Willy,

Am 04.04.20 um 12:41 schrieb Tim Düsterhus:
> The Dovecot source code is here:
> https://github.com/dovecot/core/blob/de9968d623e331a18b43dfe8a00421f72f7f7962/src/lib-master/master-service-haproxy.c#L354
> 
> A quick glance at the Dovecot code looks like Dovecot parses the proxy
> protocol correctly with regard to TLVs.

I spoke too soon here. Dovecot ignores the addresses as it should for
LOCAL (i.e. health check) connections [1] and then attempts to parse the
TLV, interpreting the IP addresses as a TLV [2]. From my understanding
HAProxy sends IP addresses for LOCAL connections for compatibility.

Best regards
Tim Düsterhus

[1]
https://github.com/dovecot/core/blob/de9968d623e331a18b43dfe8a00421f72f7f7962/src/lib-master/master-service-haproxy.c#L386-L390
[2]
https://github.com/dovecot/core/blob/de9968d623e331a18b43dfe8a00421f72f7f7962/src/lib-master/master-service-haproxy.c#L456

Reply via email to