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, when the user exists. > > This is not how postfix works. Proof: > > | Aug 29 12:28:40 server postfix/proxymap[26770]: warning: dict_ldap_connect: > Unable to bind to server ldap://192.168.202.1 as : -1 (Can't contact LDAP > server) > | Aug 29 12:28:40 server postfix/smtpd[26769]: NOQUEUE: reject: RCPT from > localhost[127.0.0.1]: 451 4.3.0 <bast...@example.org>: Temporary lookup > failure; from=<> to=<bast...@example.org> proto=ESMTP helo=<test> > > So you are something missing. So please provide complete information, > see DEBUG_README. > > Bastian > Transcript of session follows.
Out: 220 server.home.com ESMTP Postfix In: EHLO mx2.home.com Out: 250-server.home.com Out: 250-PIPELINING Out: 250-SIZE 10240000 Out: 250-VRFY Out: 250-ETRN Out: 250-ENHANCEDSTATUSCODES Out: 250-8BITMIME Out: 250 DSN In: MAIL FROM:<k...@yahoo.es> SIZE=33690 Out: 250 2.1.0 Ok In: RCPT TO:<p...@home.com> ORCPT=rfc822;p...@home.com Out: 451 4.3.0 <p...@home.com>: Temporary lookup failure In: DATA Out: 554 5.5.1 Error: no valid recipients In: RSET Out: 250 2.0.0 Ok In: QUIT Out: 221 2.0.0 Bye 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 with more details Aug 31 09:09:18 compaq postfix/smtpd[17159]: maps_find: virtual_alias_maps: @home.com: not found Aug 31 09:09:18 server postfix/smtpd[17159]: mail_addr_find: car...@home.com -> (not found) Aug 31 09:09:18 server postfix/smtpd[17159]: dict_ldap_lookup: In dict_ldap_lookup Aug 31 09:09:18 server postfix/smtpd[17159]: dict_ldap_lookup: No existing connection for LDAP source accounts, reopening Aug 31 09:09:18 server postfix/smtpd[17159]: dict_ldap_connect: Connecting to server ldap://ldap1.home.com:389 ldap://ldap2.home.com:389 Aug 31 09:09:18 server postfix/smtpd[17159]: dict_ldap_connect: Actual Protocol version used is 2. Aug 31 09:09:18 server postfix/smtpd[17159]: dict_ldap_connect: Binding to server ldap://ldap1.home.com:389 ldap://ldap2.home.com:389 as dn cn=unix-conector,cn=HOME,dc=home,dc=com 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/smtpd[17106]: maps_find: virtual_mailbox_maps: p...@home.com: search aborted Aug 31 09:09:20 server postfix/smtpd[17106]: mail_addr_find: p...@home.com -> (try again) Aug 31 09:09:20 server postfix/smtpd[17106]: NOQUEUE: reject: RCPT from mx2.home.com[192.168.25.8]: 451 4.3.0 <p...@home.com>: Temporary lookup failure; from=<1rotupcencuba-return-109620-pepe=home....@egrupos.net> to=<p...@home.com> proto=ESMTP helo=<mx2.home.com> Aug 31 09:09:20 server postfix/smtpd[17106]: > rodas.home.com[192.168.25.8]: 451 4.3.0 <p...@home.com>: Temporary lookup failure This is my config accounts_server_host = ldap://ldap1.home.com:389, ldap://ldap2.home.com:389 accounts_search_base = ou=HOME,dc=home,dc=com accounts_query_filter = (&(objectClass=user)(!(objectClass=computer))(mail=%s)) accounts_result_filter = %d/%u/ accounts_result_attribute = mail accounts_bind = yes accounts_bind_dn = cn=conector,cn=HOME,dc=home,dc=com accounts_bind_pw = xxxxxx virtual_mailbox_domains = home.com virtual_mailbox_base = /var/spool/virtualmail/ virtual_mailbox_maps = ldap:accounts virtual_alias_maps = hash:/etc/postfix/virtual_alias virtual_minimum_uid = 500 virtual_uid_maps = static:501 virtual_gid_maps = static:501 as will see I have two ldap servers, where the first tier ldap1 "not responsible for technical failures or problems of electric power would leave the postfix do my users search ldap server to the second, in this case" LDAP2 "but not I work. my version is postfix-2.3.3-2.1 Thanks