[tpop3d-discuss] -ERR Unable to open mailbox; it may be locked by another concurrent session

Emil Filipov tie at einet.bg
Wed, 26 Nov 2003 16:28:06 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0015_01C3B43A.45898890
Content-Type: text/plain;
	charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

Hi,

I am trying to install tpop3d on a Gentoo Linux with Maildir support. =
Here is my conf:

listen-address: 0.0.0.0
max-children: 10
strip-domain: yes
timeout-seconds: 60
mailbox: maildir: $(home)/Maildir
tcp-wrappers-name: pop3
auth-passwd-enable: yes

Here are the interesting parts of  tpop3d -h:

tpop3d # tpop3d -h
tpop3d, version 1.4.2
......
Available authentication drivers:

  auth-pam         Uses Pluggable Authentication Modules
  auth-passwd      Uses /etc/passwd or /etc/shadow
  auth-mysql       Uses a MySQL database

Available mailbox drivers:

  bsd              BSD (`Unix') mailspool
  maildir          Qmail-style maildir
  empty            Empty mailbox

This tpop3d has TCP Wrappers support.
.............
And finally here is the log from a failed session:

TCP Wrappers support enabled, using daemon name `pop3'
listener_new: gethostbyaddr(0.0.0.0): cannot resolve name
listener_new: 0.0.0.0: no domain suffix can be appended for this address
listener_new: 0.0.0.0: using fallback domain suffix `blabla.com'
listening on address 0.0.0.0, port 110, domain blabla.com
1 authentication drivers successfully loaded
net_loop: tpop3d version 1.4.2 successfully started

connection_sendresponse: client [5]192.168.0.110/blabla.com: sent `+OK =
<28bc78e74f42ea7702159b47476c7f2a@blabla.com>'
listeners_post_select: client [5]192.168.0.110/blabla.com: connected

connection_parsecommand: client [5]192.168.0.110/blabla.com: received =
`user tie'
connection_sendresponse: client [5]192.168.0.110/blabla.com: sent `+OK =
Tell me your password.'

connection_parsecommand: client [5]192.168.0.110/blabla.com: received =
`pass [...]'
authcontext_new_user_pass: began session for `tie' with passwd; uid =
1000, gid 10
fork_child: [5]tie(192.168.0.110): successfully authenticated with =
passwd
fork_child: new child is PID 7082
mailspool_new_from_file: Is a directory
dotfile_unlock(/home/tie/Maildir): open: No such file or directory
connection_sendresponse: client [5]tie(192.168.0.110): sent `-ERR Unable =
to open mailbox; it may be locked by another concurrent session.'
authcontext_delete: finished session for `tie' with passwd
--------- Cut --------------- Cut  =
-------------------------------------------------------------------------=
--------------------------------------------------
I have tried to install tpop3d v1.5.2 but got the same results. Even =
more interesting is the thing that on another serverthe exact same =
configuration=20
works with the exact same version of tpop3d with no problems at all. The =
only significatn difference that comes to my mind is that the /home is =
on a
ResiserFS where it works, while here is Ext3. But I can't imagine how =
this can be a problem.

I saw a prevous post of someone troubled by the same thing, but the =
answer was something like "Check your maildir for a *.lock file".
Well I don't have one (*.lock file I mean). And I'm pretty sure that =
there are no concurrent pop3 sessions.

Any ideas?

Regards,
Emil Filipov
------=_NextPart_000_0015_01C3B43A.45898890
Content-Type: text/html;
	charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r">
<META content=3D"MSHTML 6.00.2800.1226" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am trying to install tpop3d on a =
Gentoo Linux=20
with Maildir support. Here is my conf:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><EM>listen-address: =
0.0.0.0<BR>max-children:=20
10<BR>strip-domain: yes<BR>timeout-seconds: 60<BR>mailbox: maildir:=20
$(home)/Maildir<BR>tcp-wrappers-name: pop3<BR>auth-passwd-enable:=20
yes<BR></EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Here&nbsp;are the interesting parts of =
&nbsp;tpop3d=20
-h:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><EM>tpop3d # tpop3d =
-h</EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><EM>tpop3d, version =
1.4.2</EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><EM>......</EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><EM>Available authentication=20
drivers:</EM></FONT></DIV>
<DIV><EM></EM>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><EM>&nbsp;=20
auth-pam&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Uses Pluggable=20
Authentication Modules<BR>&nbsp; =
auth-passwd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Uses=20
/etc/passwd or /etc/shadow<BR>&nbsp;=20
auth-mysql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Uses a MySQL=20
database</EM></FONT></DIV>
<DIV><EM></EM>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><EM>Available mailbox =
drivers:</EM></FONT></DIV>
<DIV><EM></EM>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><EM>&nbsp;=20
bsd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
BSD (`Unix') mailspool<BR>&nbsp;=20
maildir&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Qmail-style=20
maildir<BR>&nbsp;=20
empty&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Empty=20
mailbox<BR></EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><EM>This tpop3d has TCP Wrappers=20
support.</EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><EM>.............</EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>And finally here is the log from a =
failed=20
session:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><EM>TCP Wrappers support enabled, using =
daemon name=20
`pop3'<BR>listener_new: gethostbyaddr(0.0.0.0): cannot resolve=20
name<BR>listener_new: 0.0.0.0: no domain suffix can be appended for this =

address<BR>listener_new: 0.0.0.0: using fallback domain suffix=20
`blabla.com'<BR>listening on address 0.0.0.0, port 110, domain =
blabla.com<BR>1=20
authentication drivers successfully loaded<BR>net_loop: tpop3d version =
1.4.2=20
successfully started</EM></FONT></DIV>
<DIV><EM></EM>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><EM>connection_sendresponse: client=20
[5]192.168.0.110/blabla.com: sent `+OK &lt;</EM><A=20
href=3D"mailto:28bc78e74f42ea7702159b47476c7f2a@blabla.com>'"><EM>28bc78e=
74f42ea7702159b47476c7f2a@blabla.com&gt;'</EM></A><BR><EM>listeners_post_=
select:=20
client [5]192.168.0.110/blabla.com: connected</EM></FONT></DIV>
<DIV><EM></EM>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><EM>connection_parsecommand: client=20
[5]192.168.0.110/blabla.com: received `user =
tie'<BR>connection_sendresponse:=20
client [5]192.168.0.110/blabla.com: sent `+OK Tell me your=20
password.'</EM></FONT></DIV>
<DIV><EM></EM>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><EM>connection_parsecommand: client=20
[5]192.168.0.110/blabla.com: received `pass =
[...]'<BR>authcontext_new_user_pass:=20
began session for `tie' with passwd; uid 1000, gid 10<BR>fork_child:=20
[5]tie(192.168.0.110): successfully authenticated with =
passwd<BR>fork_child: new=20
child is PID 7082<BR>mailspool_new_from_file: Is a=20
directory<BR>dotfile_unlock(/home/tie/Maildir): open: No such file or=20
directory<BR>connection_sendresponse: client [5]tie(192.168.0.110): sent =
`-ERR=20
Unable to open mailbox; it may be locked by another concurrent=20
session.'<BR>authcontext_delete: finished session for `tie' with=20
passwd</EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>--------- Cut --------------- Cut&nbsp; =

-------------------------------------------------------------------------=
--------------------------------------------------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have tried to install tpop3d v1.5.2 =
but got the=20
same results. Even more interesting is the thing that on another =
serverthe exact=20
same configuration </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>works with </FONT><FONT face=3DArial =
size=3D2>the exact=20
same version of tpop3d with no problems at all. The only significatn =
difference=20
that comes to my mind is that the /home is on a</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ResiserFS where it works, while here is =
Ext3. But I=20
can't imagine how this can be a problem.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I saw a prevous post of someone =
troubled by the=20
same thing, but the answer was something like "Check your maildir for a =
*.lock=20
file".</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Well I don't have one (*.lock =
file&nbsp;I mean).=20
And I'm pretty sure that there are no concurrent pop3 =
sessions.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any ideas?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Emil Filipov</DIV></FONT></BODY></HTML>

------=_NextPart_000_0015_01C3B43A.45898890--