Re: dict_ldap_lookup: Search error -5

"Andre Schild" <[email protected]> Thu, 12 Feb 2009 14:00:44 +0100
Newsgroups gmane.mail.jamm.user
Message-ID <L1D5E5CD4EC0F4287BBA2E401D93137D3.1234454773.scalix01.aarboard.ch@MHS>
--===============6653034954710592179==
Content-Type: multipart/alternative;
	boundary="2_0_44_108326aMHTML_=_01"

--2_0_44_108326aMHTML_=_01
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hello Lai,

=20

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

=20

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.

=20

Perhaps it=E2=80=99s also a peak of incomming (spam) mails which overload=
s the
ldap 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.

=20

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

=20

Andr=C3=A9

=20

=20

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

=20

Hi all,

=20

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

maillog :

=20

warning: dict_ldap_lookup: Search error -5: Timed out=20
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.

=20

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

=20

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

=20

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

=20

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

=20

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

=20

=20

=20

=20

Thanks in advance

=20

=20

Lai

=20




--2_0_44_108326aMHTML_=_01
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang=3D"en">
<head><meta http-equiv=3D"Content-Type" content=3D"text/html;">
<title>Scalix message content</title>
<style type=3D"text/css">
<!--
=2ENormal {  text-align: left; text-indent:0pt; margin-top:0pt; margin-bo=
ttom:0pt; font-family: Arial; font-size: 12pt; }
=2EDefault_Paragraph_Font {font-family: Arial; color: Black; background-c=
olor: white ; font-size: 12pt; font-weight: normal;  font-style: normal; f=
ont-variant: normal; vertical-align: normal; text-decoration: none;}
div.ltTOCtitle { font-family: Verdana; font-size: 8pt; font-weight: bold;=
 text-align: center;}
div.ltTOCl1 { font-family: Verdana; font-size: 8pt; font-weight: bold; ma=
rgin-left:32pt; text-indent:-32pt;}
div.ltTOCl2 { font-family: Verdana; font-size: 8pt; font-weight: bold; ma=
rgin-left:40pt; text-indent:-32pt;}
div.ltTOCl3 {  font-family: Verdana; font-size: 8pt; font-weight: bold; m=
argin-left:48pt; text-indent:-32pt;}
div.ltTOCl4 { font-family: Verdana; font-size: 8pt; font-weight: bold; ma=
rgin-left:56pt; text-indent:-32pt;}
div.ltTOCl5 { font-family: Verdana; font-size: 8pt; font-weight: bold; ma=
rgin-left:64pt; text-indent:-32pt;}
div.ltTOCl6 { font-family: Verdana; font-size: 8pt; font-weight: bold; ma=
rgin-left:72pt; text-indent:-32pt;}
-->
</style>
</head>

<body>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>Hello Lai,</span>=
</div>
<span style=3D'font-size: 10pt; '> </span><br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>it seems that for=
 some
reasons the LDAP lookups from postfix sometimes fail with a
timeout.</span></div>
<span style=3D'font-size: 10pt; '> </span><br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>I would suggest t=
o look if
you see some messages from openldap (or whatever ldap server you
use)</span></div>
<br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>arround the times=
 you see
the postfix warnings.</span></div>
<span style=3D'font-size: 10pt; '> </span><br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>Perhaps it&#8217;=
s also a
peak of incomming (spam) mails which overloads the ldap server for a shor=
t
time.</span></div>
<br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>Sometimes we see s=
pam
delivery attempts to almost all email addresses [email protected] up to=

[email protected] with several thousand requests per minute.</span></=
div>
<span style=3D'font-size: 10pt; '> </span><br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>What is the ldap l=
ookup
timeout, perhaps you can increase it.</span></div>
<span style=3D'font-size: 10pt; '> </span><br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>Andr&eacute;</spa=
n></div>
<span style=3D'font-size: 10pt; '> </span><span style=3D'font-size: 10pt;=
 '>
</span><br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>From: aslay-acme
[mailto:[email protected]] </span><br><span style=3D'font-size: 10pt; '=
>Sent:
Wednesday, February 11, 2009 5:44
PM</span><br><span style=3D'font-size: 10pt; '>To:
[email protected]</span><br><span style=3D'font-size: 10pt=
; '>Subject:
[Jamm-users] dict_ldap_lookup: Search error -5</span></div>
<span style=3D'font-size: 10pt; '> </span><br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>Hi all,</span></d=
iv>
<span style=3D'font-size: 10pt; '> </span><br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>My JAMM server ha=
s been
running for 4 years without major problems, but recently i notice followi=
ng
warning messages from</span></div>
<br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>maillog :</span><=
/div>
<span style=3D'font-size: 10pt; '> </span><br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>warning: dict_lda=
p_lookup:
Search error -5: Timed out </span><br><span style=3D'font-size: 10pt; '>F=
eb 11
23:53:27 server2 postfix/trivial-rewrite[8859]: fatal: ldap:domains(0,100=
):
table lookup problem</span><br><span style=3D'font-size: 10pt; '>Feb 11 2=
3:53:28
server2 postfix/smtpd[12499]: warning: premature end-of-input on private/=
rewrite
socket while reading input attribute
name</span><br><span style=3D'font-size: 10pt; '>Feb 11 23:53:28 server2
postfix/smtpd[12499]: warning: problem talking to service rewrite:
Success</span><br><span style=3D'font-size: 10pt; '>Feb 11 23:53:28 serve=
r2
postfix/master[3746]: warning: process /usr/libexec/postfix/trivial-rewri=
te pid
8859 exit status 1</span></div>
<br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>Above messages ap=
pears many
times per day.</span></div>
<span style=3D'font-size: 10pt; '> </span><br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>My server is FC4.=
 I have
tried using sldapindex, db_recover to repair the ldap database, but the p=
roblem
persist.</span></div>
<span style=3D'font-size: 10pt; '> </span><br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>I have changed th=
e NIC and
incresed the RAM from 512MB to 1GB but the problem still happen. My serve=
r is
currently </span></div>
<span style=3D'font-size: 10pt; '> </span><br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>hosting 30 domain=
s with
total about 300 users, there is no performance issues on the server and n=
o
changes  on server</span></div>
<span style=3D'font-size: 10pt; '> </span><br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>configuration exc=
ept adding
or deleting user accounts.  Many days and hours has been spent to search f=
rom
Google but </span></div>
<span style=3D'font-size: 10pt; '> </span><br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>cannot find any s=
olutions.
Lastly I subscribe this mailing list and hopefully someone can help
me.....</span></div>
<span style=3D'font-size: 10pt; '> </span><span style=3D'font-size: 10pt;=
 '>
</span><span style=3D'font-size: 10pt; '> </span><span style=3D'font-size=
: 10pt; '>
</span><br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>Thanks in
advance</span></div>
<span style=3D'font-size: 10pt; '> </span><span style=3D'font-size: 10pt;=
 '>
</span><br>
<div class=3D"Normal"><span style=3D'font-size: 10pt; '>Lai</span></div>
<span style=3D'font-size: 10pt; '> </span><br>



</body>

</html>

--2_0_44_108326aMHTML_=_01--


--===============6653034954710592179==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--===============6653034954710592179==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--===============6653034954710592179==--