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.

link|improve this question

50% accept rate
feedback

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.

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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