On 12/7/2009 1:07 PM, Javier Henderson wrote:
Greetings,

I am trying to configure Postfix to gracefully deal with the failure of the 
LDAP server it uses for alias resolution.

It's working fine, using the LDAP server to resolve u...@domain.com to 
u...@somehost.domain.com, but if the LDAP server dies or becomes unreachable 
for whatever reason, Postfix replies with 5xx error codes about the user being 
invalid.


Postfix always replies with a 4xx code when a lookup table is unavailable or returns an error.

If your postfix is responding with 550, it's because your LDAP server is lying to postfix that a lookup key doesn't exist rather than reporting an error. That's broken behavior by the LDAP server, not postfix.

Is there a way to configure it to return 4xx codes so the remote end tries 
later?

If you're unable to repair your LDAP server, you can periodically dump the LDAP data to a local hash: or cdb: file.

  -- Noel Jones

Reply via email to