POP3: Your mailbox is already locked

Use this forum if you want to discuss a problem or ask a question related to a hMailServer beta release.
Locked
Aldoir
Normal user
Normal user
Posts: 59
Joined: 2005-12-01 12:20

POP3: Your mailbox is already locked

Post by Aldoir » 2006-08-23 16:13

Hi martin,

Sorry for this topic, but I think this problem should be handled separately.

Recent releases (B299 and B230) are causing me a lot of headache with invalid "-ERR Your mailbox is already locked" messages.

The problem occours with different users, from different domains. At the same time a user is having this problem, other users can download their emails thru POP3 without problems.

Although POP3 is refusing connection, IMAP works well.

Maybe the same problem that affected SMTP is causing this problem with broken connections?

Thanks

User avatar
Slug
Moderator
Moderator
Posts: 1369
Joined: 2005-03-13 05:42
Location: Sydney Australia
Contact:

Re: POP3: Your mailbox is already locked

Post by Slug » 2006-08-23 16:21

Aldoir wrote:Hi martin,

The problem occours with different users, from different domains. At the same time a user is having this problem, other users can download their emails thru POP3 without problems.
This is normal behavour
Although POP3 is refusing connection, IMAP works well.
This too is normal, as IMAP will accept multiple people accessing the same email account at the same time POP will not.

Are you sharing the same pop account with multiple people ?? or is the pop account being locked with only one person accessing the account at one time ??

Michael
Last edited by Slug on 2006-08-23 16:49, edited 1 time in total.
Missing Hmailserver ... Now running Debian servers

User avatar
Bram
Senior user
Senior user
Posts: 417
Joined: 2004-05-24 22:57
Location: The Netherlands
Contact:

Post by Bram » 2006-08-23 16:38

Pop3 locks are account specific.

Only one user at a time can access a pop3 mailbox (the same mailbox). Others will get a lock notification.

If a mailbox is locked and there is no pop3-activity for 2 minutes, hmailserver should remove the lock automaticly.

GotNet
Normal user
Normal user
Posts: 207
Joined: 2005-04-16 20:52
Contact:

Post by GotNet » 2006-08-23 16:49

Martin, I've sent one more log from B230. See user "Leslie". He is on a Blackberry as well as Outlook. The connections from 66.195.xxx.xxx are from the LAN. See what you think. Something different is going on. :|

User avatar
martin
Developer
Developer
Posts: 6777
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2006-08-23 17:17

Looked at the log snippet for leslie. He connected to the server (at 07:51:11.859) but doesn't send any QUIT before he's disconnected, which leads has the effect that the mailbox remains locked until there has been a timeout (at 07:38:05). So when he tries to connect at 07:36:41.562, his mailbox is locked.
When he tries to connect at 07:51:11, it works fine again since the mailbox was automatically unlocked at 07:38.. :-\

According to the RFC, a POP3 server should wait at least 10 minutes before disconnecting any clients. hMailServer follows this part of the RFC. But perhaps it should unlock the mailbox immediately if it's sure that a client has been disconnected. It actually did this in previous versions. Now it waits for the timeout. Guess I have to change back the behaviour. :-\

User avatar
Slug
Moderator
Moderator
Posts: 1369
Joined: 2005-03-13 05:42
Location: Sydney Australia
Contact:

Post by Slug » 2006-08-23 17:33

martin wrote:Guess I have to change back the behaviour. :-\
Why ?? if people who wrote the client software that was compliant then you would not need to have to put together hacks to cover their crap ..

Michael
Missing Hmailserver ... Now running Debian servers

User avatar
martin
Developer
Developer
Posts: 6777
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2006-08-23 17:45

Well, mobile devices dosen't need to be non-compliant to disconnect improperly. :)

User avatar
Slug
Moderator
Moderator
Posts: 1369
Joined: 2005-03-13 05:42
Location: Sydney Australia
Contact:

Post by Slug » 2006-08-23 17:47

Yeah didnt think of that .... :oops:

hehehe
Michael
Missing Hmailserver ... Now running Debian servers

User avatar
martin
Developer
Developer
Posts: 6777
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2006-08-23 17:48

Might be something else going on as well. Will check this.

One local user disconnected improperly as well and hMailServer didn't seem to detect this properly.

There's two different situations:
1) hMailServer runs a timeout check and detects that one client has disconnected.
2) hMailSever tries to send a piece of data to the client, but this fails since the network/client isn't available at the moment.

Edit: Figured out a way to reproduce the problem now by terminating the client improperly.

westdam
Senior user
Senior user
Posts: 727
Joined: 2006-08-01 21:24
Location: Padova, Italy
Contact:

Post by westdam » 2006-08-23 18:58

hi martin, i've got too with 4.3 230 the locking problem.
do you want my log file??

User avatar
martin
Developer
Developer
Posts: 6777
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2006-08-23 20:30

Nope I don't think I've need it. I'm currently writing some changes that should solve it.

User avatar
martin
Developer
Developer
Posts: 6777
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2006-08-24 00:14

Hi guys,

I was able to reproduce this issue by telnetting the POP3 server and logging on, then terminating the telnet client using the task manager.

I've created a new build which I'm testing now. If some of you have big problems with the locking, I suggest you install the new build. Done two changes in this build:

- If there's a problem sending or receiving data from a client, hMailServer will disconnect the client immediately.
- hMailServer now unlocks the mailbox directly when a client has been disconnected.

To my defense, hMailServer actually followed the POP3 specification in the previous build... but I understand that the old implementation didn't work in real-life. :)

http://dev.hmailserver.com/hMailServer-4.3-B231.exe

I've run through the standard test suite which tests the basic functionality, and I will run the extended "stress test" (which basically opens up lots and lots of conncetions towards the server) over the night.

GotNet
Normal user
Normal user
Posts: 207
Joined: 2005-04-16 20:52
Contact:

Post by GotNet » 2006-08-24 00:40

Sorry!!

I'm installing as we speak... Thanks!

westdam
Senior user
Senior user
Posts: 727
Joined: 2006-08-01 21:24
Location: Padova, Italy
Contact:

Post by westdam » 2006-08-24 00:59

u're great martin, i'll test tomorrow..

steve`
New user
New user
Posts: 11
Joined: 2005-08-14 22:25

Post by steve` » 2006-08-24 01:07

hi martin,

I also had the locking problem and I just upgraded to B231 and it works now.
Thanks

Aldoir
Normal user
Normal user
Posts: 59
Joined: 2005-12-01 12:20

Post by Aldoir » 2006-08-24 19:43

Updated here too, thank you Martin

GotNet
Normal user
Normal user
Posts: 207
Joined: 2005-04-16 20:52
Contact:

Post by GotNet » 2006-08-25 02:59

All good here - Thanks, Martin. :)

jrkelley
New user
New user
Posts: 5
Joined: 2006-11-09 23:33

Post by jrkelley » 2007-03-06 23:33

I have this issue with users running Outlook 2002 SP3. I'm running hmailserver v 4.3-B248. Will be upgrading tonight to the latest release, but this is well after the version the above people are running. Is there a way to shorten the timeout period?

roderickprince
New user
New user
Posts: 4
Joined: 2008-01-03 22:12

POP - Your mailbox is already locked

Post by roderickprince » 2008-01-03 22:21

Experiencing this problem with version 4.4.1 B273

Reproduceable in that my connection during the week is through my Blackberry (using it as a modem - speed is much like 2 tin cans and a shoe lace) and if someone sends a large file Outlook can't retrieve the message quickly enough before it checks again - leading to the lock.

The lock doesn't seem to clear and so I try to get an IMAP connection, delete the files, and then purge the deleted files... no joy.

End up having to remote desktop into the server and delete and recreate the e-mail account.

Gotta be a better way.

Any pointers are greatly appreciated.

Happy Trails,
Roderick...
rprince@radiaInteractive.com

beast84
New user
New user
Posts: 1
Joined: 2008-10-16 10:52

Re: POP3: Your mailbox is already locked

Post by beast84 » 2008-10-16 10:54

Hello,
I still have this problem with version: 4.4.2-B283 !!!

Could someone help me what to do to solve it ????
PLEASE HELP ME !!!!

User avatar
martin
Developer
Developer
Posts: 6777
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Re: POP3: Your mailbox is already locked

Post by martin » 2008-10-16 13:50

beast84,
Solve what?

chrigiboy
Normal user
Normal user
Posts: 31
Joined: 2007-11-08 14:52

Re: POP3: Your mailbox is already locked

Post by chrigiboy » 2008-11-16 19:14

Hello,
from time to time we got the same problem, with many accounts. When we stop and start the server the problem is solved. Is there a bugfix or a lockout Manager or can i setup the lockout time expl to 5 minutes?

Version: 4.4.2-B283 MySQL localhost

^DooM^
Site Admin
Posts: 13862
Joined: 2005-07-29 16:18
Location: UK

Re: POP3: Your mailbox is already locked

Post by ^DooM^ » 2008-11-16 19:48

using POP3 only one client can connect at any one time. If you want to use multiple clients use IMAP.
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

Locked