haproxy config manual update for multiple ports

Marc Marc at f1-outsourcing.eu
Sat Oct 9 13:54:24 EEST 2021


would you mind updating the haproxy config on https://wiki2.dovecot.org/HAProxy

now you have the normal ports without proxy protocol and high ports with proxy, easier with testing. 


frontend ft_imap
    bind :143
    bind :993
    mode tcp
    tcp-request connection set-dst-port dst_port,add(10000)
    default_backend bk_imap

backend bk_imap
    mode tcp
    balance leastconn
    stick store-request src
    stick-table type ip size 200k expire 30m
    server s1 backend.example.com:10143 send-proxy-v2


> -----Original Message-----
> From: Marc
> Sent: Thursday, 7 October 2021 11:51
> To: 'dovecot at dovecot.org' <dovecot at dovecot.org>
> Subject: haproxy config manual update for multiple ports
> 
> 
> 
> https://wiki2.dovecot.org/HAProxy
> 
> Maybe update this to having multiple ports (if this is even possible)
> 
> frontend ft_imap
>     bind :110 <<
>     bind :143
>     mode tcp
>     default_backend bk_imap
> 
> backend bk_imap
>     mode tcp
>     balance leastconn
>     stick store-request src
>     stick-table type ip size 200k expire 30m
>     server s1 backend.example.com:10143 send-proxy-v2 <<< how to put
> more ports here?
> 


More information about the dovecot mailing list