Quoting KT Walrus <ke...@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