Re: Multiple Ldap Servers

2009-08-31 Thread Michel Bulgado
On Sat, 2009-08-29 at 12:32 +0200, Bastian Blank wrote: On Fri, Aug 28, 2009 at 09:37:02PM -0400, mic...@casa.co.cu wrote: For more details of my problem, when the server is not responding ldap1 by technical problems, Postfix rejects all email me saying that the mailbox does not exist,

Re: Multiple Ldap Servers

2009-08-31 Thread Victor Duchovni
On Mon, Aug 31, 2009 at 10:19:48AM -0400, Wietse Venema wrote: Aug 31 09:09:20 server postfix/smtpd[17106]: warning: dict_ldap_lookup: Search error -5: Timed out Aug 31 09:09:20 server postfix/cleanup[17106]: warning: AEF14688F: virtual_alias_maps map lookup problem for p...@home.com

Re: Multiple Ldap Servers

2009-08-31 Thread Wietse Venema
Victor Duchovni: On Mon, Aug 31, 2009 at 10:19:48AM -0400, Wietse Venema wrote: Aug 31 09:09:20 server postfix/smtpd[17106]: warning: dict_ldap_lookup: Search error -5: Timed out Aug 31 09:09:20 server postfix/cleanup[17106]: warning: AEF14688F: virtual_alias_maps map lookup

Re: Multiple Ldap Servers

2009-08-31 Thread Wietse Venema
Victor Duchovni: On Mon, Aug 31, 2009 at 10:33:54AM -0400, Wietse Venema wrote: Victor Duchovni: On Mon, Aug 31, 2009 at 10:19:48AM -0400, Wietse Venema wrote: Aug 31 09:09:20 server postfix/smtpd[17106]: warning: dict_ldap_lookup: Search error -5: Timed out

Re: Multiple Ldap Servers

2009-08-31 Thread Victor Duchovni
On Mon, Aug 31, 2009 at 01:40:34PM -0400, Wietse Venema wrote: We just pass a list of servers to the LDAP library. Perhaps the simplest enhancement would be to rotate the server list when a query times out, before asking the LDAP library to re-connect. server-list before

Re: Multiple Ldap Servers

2009-08-31 Thread Wietse Venema
Victor Duchovni: On Mon, Aug 31, 2009 at 01:40:34PM -0400, Wietse Venema wrote: We just pass a list of servers to the LDAP library. Perhaps the simplest enhancement would be to rotate the server list when a query times out, before asking the LDAP library to re-connect.

Re: Multiple Ldap Servers

2009-08-31 Thread Victor Duchovni
On Mon, Aug 31, 2009 at 02:42:50PM -0400, Wietse Venema wrote: This looks like unconditional rotation after non-error? Yes, the connection is kept open, so we only reconnect on error, so pre-rotation is simplest. -- Viktor. Disclaimer: off-list followups get on-list replies or get

Re: Multiple Ldap Servers

2009-08-29 Thread Bastian Blank
On Fri, Aug 28, 2009 at 09:37:02PM -0400, mic...@casa.co.cu wrote: For more details of my problem, when the server is not responding ldap1 by technical problems, Postfix rejects all email me saying that the mailbox does not exist, when the user exists. This is not how postfix works. Proof:

Multiple Ldap Servers

2009-08-28 Thread Michel Bulgado
Hello Using postfix-2.3.3-2.1 + with virtual accounts active directory to make the search for my users. I wonder if it is possible to declare more than one ldap server in postfix, for if it fails then postfix ldap1 continue doing searches on LDAP2. failover? Redundancy? Thanks Michel

Re: Multiple Ldap Servers

2009-08-28 Thread Victor Duchovni
On Fri, Aug 28, 2009 at 10:48:00AM -0400, Michel Bulgado wrote: Using postfix-2.3.3-2.1 + with virtual accounts active directory to make the search for my users. I wonder if it is possible to declare more than one ldap server in postfix, for if it fails then postfix ldap1 continue doing

Re: Multiple Ldap Servers

2009-08-28 Thread Michel Bulgado
On Fri, 2009-08-28 at 10:48 -0400, Michel Bulgado wrote: Hello Using postfix-2.3.3-2.1 + with virtual accounts active directory to make the search for my users. I wonder if it is possible to declare more than one ldap server in postfix, for if it fails then postfix ldap1 continue doing

Re: Multiple Ldap Servers

2009-08-28 Thread Victor Duchovni
On Fri, Aug 28, 2009 at 10:58:56AM -0400, Michel Bulgado wrote: On Fri, 2009-08-28 at 10:48 -0400, Michel Bulgado wrote: Hello Using postfix-2.3.3-2.1 + with virtual accounts active directory to make the search for my users. I wonder if it is possible to declare more than one