Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Thanks.

share|improve this question
add comment

2 Answers

up vote 1 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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.