Hello,

I've several Postfix servers configured to relay email for users/domains.
We've different LDAP servers to query and a cdb file; something like this:

relay_recipient_maps = ldap:/etc/postfix/ldap_users.cf, ldap:/etc/postfix/activedirectory.cf, ldap:/etc/postfix/activedirectory2.cf, cdb:/etc/postfix/relayusers

For a moment, one ActiveDirectory server for some domains was down, so I've seen in logs:

warning: dict_ldap_connect: Unable to bind to server ldap://IP1 ldap://IP2 as cn=x,ou=x,dc=x,dc=x: -1 (Can't contact LDAP server)

The other LDAP and AD server configured in Postfix, were responding ok but a lot of emails were being rejected with the "Temporary lookup failure" error (and not only emails for domains in that down AD server, emails for domains of working LDAP/AD too).

Mar 6 16:19:13 relay1 postfix/smtpd[21555]: warning: dict_ldap_connect: Unable to bind to server ldap://IP1 ldap://IP2 as cn=x,ou=x,dc=x,dc=x: -1 (Can't contact LDAP server) Mar 6 16:19:13 relay1 postfix/smtpd[21555]: maps_find: relay_recipient_maps: u...@domain.com: search aborted Mar 6 16:19:13 relay1 postfix/smtpd[21555]: mail_addr_find: u...@domain.com -> (try again) Mar 6 16:19:13 relay1 postfix/smtpd[21555]: 0F36A38C1CA: reject: RCPT from mail1.bemta7.messagelabs.com[216.82.254.103]: 451 4.3.0 <u...@domain.com>: Temporary lookup failure; from=<fromu...@dom.com> to=<u...@domain.com> proto=ESMTP helo=<fromserver>

Is anyway to configure Postfix to avoid this situation? If one LDAP/AD of the configuration of relay_recipient_maps is down, query other servers and give that failure error only for domains configured in the down server.

Thank you.
Regards,

--
Alvaro MarĂ­n Illera
Hostalia Internet
www.hostalia.com

Reply via email to