nginx proxy to dovecot servers

Rick Romero rick at havokmon.com
Fri Jun 3 13:33:35 UTC 2016


  Quoting KT Walrus <kevin at my.walr.us>:

>> Dovecot supports real IP forwarding with HAproxy.
>
> Yes. I was aware of this, but that doesn’t answer my question of how to
> configure a Dovecot proxy to listen on many IPs/ports and do
> authentication based on the incoming IP/port. If I could do this without
> having to run 50 Dovecot proxies (one for each incoming IP/port), I
> would probably use the HAProxy/Dovecot Proxy solution.

http://wiki.dovecot.org/Variables

%l is local IP, so if your backend auth system knows who is supposed to
auth where, then I'd say one instance on all IPs, and use the variable in
your auth query.

Rick


More information about the dovecot mailing list