Dovecot Director self ip

Tomaž thomas at brix.si
Fri Jul 29 19:59:14 UTC 2016


Hello everybody!
I kindly ask somebody to help me with this problem. I'm trying to 
configure Dovecot proxy with Director. On the same machine is KeepAlived 
that needs this configured to bind non local IP:
sysctl net.ipv4.ip_nonlocal_bind=1

But as already mentioned in this email: 
http://www.dovecot.org/list/dovecot/2012-November/087033.html
Dovecot Director needs sysctl net.ipv4.ip_nonlocal_bind=0 (if this is 
set, everything works ok, but we break keepalived) because otherwise the 
second server uses IP from the first server as "self".

Is it possible to configure this some other way, so Dovecot Director 
doesn't try to bind to all IPs and because of above configuration, uses 
the first one that binds.

This is the result from director status on server 1:
root at u1:~# doveadm director ring status
director ip    port type last failed status
172.16.100.191 9090 self never handshaking
172.16.100.192 9090      never       handshaking

and server 2:
root at u2:/var/log# doveadm director ring status
director ip    port type last failed status
172.16.100.191 9090 self never handshaking
172.16.100.192 9090      never

My dovecot config:
http://pastebin.com/RnmHRWhY

Thank you very much!
Thomas


More information about the dovecot mailing list