Hi Ram
apparently, its not postfix itself, which connects to LDAP, but the nss library, which brings up the following idea: postfix, when starting up, wants to verify the user it shall run under, which is done via the nss library. If this user is not a unix user, the nss library will try to contact the LDAP server according to /etc/nsswitch.conf

suomi

On 2010-06-04 12:04, Ram wrote:
On our postfix servers , we use a remote ldapserver for system-auth for
some FM users.  System users login via /etc/shadow .. FM users login via
ldap.



The MTA is not configured to use any ldap connection.
Yet whenever postfix is being restarted , If the remote ldapserver is
not available postfix refuses to start.

I get errors like this


Jun  4 14:53:00 mmail postfix/smtpd[23565]: nss_ldap: reconnecting to
LDAP server (sleeping 4 seconds)...
Jun  4 14:53:04 mmail postfix/smtpd[23565]: nss_ldap: failed to bind to
LDAP server ldap://XXXXXXXX: Can't contact LDAP server
Jun  4 14:53:04 mmail postfix/smtpd[23565]: nss_ldap: reconnecting to
LDAP server (sleeping 8 seconds)...
Jun  4 14:53:12 mmail postfix/smtpd[23565]: nss_ldap: reconnected to
LDAP server ldap://XXXXXXXXXX after 3 attempts








How do I configure postfix , not to connect to ldap at all.




Thanks
Ram

Reply via email to