Hi,
after I set /etc/openldap/ldap.conf everythinks works fine.
URI ldaps://ldap.img.local ldaps://ldap2.img.local ldaps://ldap3.img.local
NETWORK_TIMEOUT 3
TIMEOUT 3
Thanks
Michal
Dne 25. 10. 2016 v 9:46 Wietse Venema napsal(a):
MichalZ:
Hi,
I have defined three ldap servers in the virtual_alias_maps lookup table,
but failover seems doesn't work. When I shutdown first ldap server I get
this error:
warning: ldap:/etc/postfix-in/ldap-mail-groups.cf lookup error
warning: dict_ldap_lookup: Search error -5: Timed out
which is correct, but users trying sent mails also gets 4xx error message
and postfix is still trying connect to the first ldap server. Do I missing
something in the configuration or ldap failover in the postfix doesn't work
correctly?
Postfix ldap_table(6) says:
server_host (default: localhost)
...
Depending on the LDAP client library you're using, it should be
possible to specify multiple servers here, with the library try-
ing them in order should the first one fail.
So there.
Wietse