Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sometimes, my LDAP server is not responding for a couple of seconds and when Postfix does its lookup, it bounces with an error: "Invalid user specified". Is there a way to force the lookup to be retried a few seconds later before bouncing?


share|improve this question
up vote 2 down vote accepted

What about just increasing the timeout for LDAP lookups? The ldap_table man page has details. The default is 10 seconds. If it's not a timeout issue -- that is, if the LDAP server is actually rejecting connections -- maybe you could set up a local replica on the Postfix server. Whether or not this is possible depends a lot on your environment and which server you're running.

share|improve this answer

You could also look at NSCD in order to cache the results from LDAP.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.