Re: dict_ldap_lookup: Search error -5

"aslay-acme" <[email protected]> Fri, 13 Feb 2009 16:40:02 +0800
Newsgroups gmane.mail.jamm.user
Message-ID <016f01c98db6$b4ec0220$3435280a@acmew2k>
Scalix message contentHi Andre,

Thanks for your reply, I am using Fodora4 + postfix + openldap + dovecot +
MailScanner + JAMM

I have checked the ldap logs but nothing special around the time when the
error happens.

My dovecot.conf has a line poiting to dovecot-ldap.conf as below :

auth_userdb =3D ldap /etc/dovecot-ldap.conf

The content of dovecot-ldap.conf :


hosts =3D localhost

dn =3D cn=3Ddovecot,dc=3Dpds-malaysia,dc=3Dcom

dnpass =3D testing

base =3D o=3Dhosting,dc=3Dpds-malaysia,dc=3Dcom

user_attrs =3D mail,homeDirectory,,,,

user_filter =3D
(&(objectClass=3DJammMailAccount)(mail=3D%u)(accountActive=3DTRUE)(delete=
=3DFALSE))

pass_attrs =3D mail,userPassword

pass_filter =3D
(&(objectClass=3DJammMailAccount)(mail=3D%u)(accountActive=3DTRUE)(delete=
=3DFALSE))

default_pass_scheme =3D CRYPT

user_global_uid =3D 101

user_global_gid =3D 103


Do you know where can I configure my ldap lookup timeout ?



Lai








Sent: 12 February, 2009 9:00 PM
Subject: Re: [Jamm-users] dict_ldap_lookup: Search error -5


Hello Lai,


it seems that for some reasons the LDAP lookups from postfix sometimes fail
with a timeout.


I would suggest to look if you see some messages from openldap (or whatever
ldap server you use)


arround the times you see the postfix warnings.


Perhaps it=92s also a peak of incomming (spam) mails which overloads the ld=
ap
server for a short time.


Sometimes we see spam delivery attempts to almost all email addresses
[email protected] up to [email protected] with several thousand
requests per minute.


What is the ldap lookup timeout, perhaps you can increase it.


Andr=E9


From: aslay-acme [mailto:[email protected]]
Sent: Wednesday, February 11, 2009 5:44 PM
To: [email protected]
Subject: [Jamm-users] dict_ldap_lookup: Search error -5


Hi all,


My JAMM server has been running for 4 years without major problems, but
recently i notice following warning messages from


maillog :


warning: dict_ldap_lookup: Search error -5: Timed out
Feb 11 23:53:27 server2 postfix/trivial-rewrite[8859]: fatal:
ldap:domains(0,100): table lookup problem
Feb 11 23:53:28 server2 postfix/smtpd[12499]: warning: premature
end-of-input on private/rewrite socket while reading input attribute name
Feb 11 23:53:28 server2 postfix/smtpd[12499]: warning: problem talking to
service rewrite: Success
Feb 11 23:53:28 server2 postfix/master[3746]: warning: process
/usr/libexec/postfix/trivial-rewrite pid 8859 exit status 1


Above messages appears many times per day.


My server is FC4. I have tried using sldapindex, db_recover to repair the
ldap database, but the problem persist.


I have changed the NIC and incresed the RAM from 512MB to 1GB but the
problem still happen. My server is currently


hosting 30 domains with total about 300 users, there is no performance
issues on the server and no changes on server


configuration except adding or deleting user accounts. Many days and hours
has been spent to search from Google but


cannot find any solutions. Lastly I subscribe this mailing list and
hopefully someone can help me.....


Thanks in advance


Lai



__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3849 (20090212) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




----------------------------------------------------------------------------
--



__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3849 (20090212) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





_______________________________________________
Jamm-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jamm-users



__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3849 (20090212) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


---------------------------------------------------------------------------=
---
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H