haproxy config manual update for multiple ports

Aki Tuomi aki.tuomi at open-xchange.com
Sat Oct 9 13:58:58 EEST 2021


The page really should be migrated into doc.dovecot.org, instead of updated on the wiki.

Aki

> On 09/10/2021 13:56 Marc <marc at f1-outsourcing.eu> wrote:
> 
>  
> 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 send-proxy-v2
> 
> 
> > -----Original Message-----
> > From: dovecot <dovecot-bounces at dovecot.org> On Behalf Of Marc
> > Sent: Saturday, 9 October 2021 12:54
> > To: dovecot at dovecot.org
> > Cc: Siavash Tavakoli <siavash.tavakoli at open-xchange.com>; Aki Tuomi
> > <aki.tuomi at open-xchange.com>
> > Subject: RE: haproxy config manual update for multiple ports
> > 
> > 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