I am reading the messages through my Java program and it works superb.
However, it works perfect when IMAP is used. But if I use POP to read the messages through my Java code I get an error: Your mailbox is already locked. Below is the stacktrace:
1.
Code: Select all
javax.mail.AuthenticationFailedException: Your mailbox is already locked
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:104)
at javax.mail.Service.connect(Service.java:234)
at Testclass.connect(Testclass.java:241)
3. I also tried to delete the email account and added it again, but problem persists.
4. That email account is using by multiple Java/Thunderbird clients and there were some cases when it may not have been closed correctly. It is usually closed through the Java program. I understand if multiple clients want to access the same email account IMAP should be used and not POP. But I was testing my functionality and I used POP and now I cannot connect to it.
5. Below is the log from hMailServer: This is the only log I have since I turn it ON just now.
Code: Select all
"DEBUG" 4164 "2011-07-05 12:06:17.370" "Creating session 91"
"POP3D" 4164 91 "2011-07-05 12:06:17.372" "10.253.190.153" "SENT: +OK POP3"
"POP3D" 3120 91 "2011-07-05 12:06:17.375" "10.253.190.153" "RECEIVED: USER info@something.com"
"POP3D" 3120 91 "2011-07-05 12:06:17.377" "10.253.190.153" "SENT: +OK Send your password"
"POP3D" 3120 91 "2011-07-05 12:06:17.378" "10.253.190.153" "RECEIVED: PASS ***"
"POP3D" 3120 91 "2011-07-05 12:06:17.384" "10.253.190.153" "SENT: +OK Mailbox locked and ready"
"POP3D" 3196 91 "2011-07-05 12:06:17.391" "10.253.190.153" "RECEIVED: STAT"
"POP3D" 3196 91 "2011-07-05 12:06:17.393" "10.253.190.153" "SENT: +OK 0 0"
"DEBUG" 4164 "2011-07-05 12:06:17.642" "Creating session 92"
"POP3D" 4164 92 "2011-07-05 12:06:17.644" "10.253.190.153" "SENT: +OK POP3"
"POP3D" 4164 92 "2011-07-05 12:06:17.647" "10.253.190.153" "RECEIVED: USER info@something.com"
"POP3D" 4164 92 "2011-07-05 12:06:17.649" "10.253.190.153" "SENT: +OK Send your password"
"POP3D" 3436 92 "2011-07-05 12:06:17.652" "10.253.190.153" "RECEIVED: PASS ***"
"POP3D" 3436 92 "2011-07-05 12:06:17.658" "10.253.190.153" "SENT: -ERR Your mailbox is already locked"
"POP3D" 3528 92 "2011-07-05 12:06:17.660" "10.253.190.153" "RECEIVED: QUIT"
"POP3D" 3528 92 "2011-07-05 12:06:17.662" "10.253.190.153" "SENT: +OK POP3 server saying goodbye..."
"DEBUG" 3436 "2011-07-05 12:06:17.664" "Closing TCP/IP socket"
"DEBUG" 3436 "2011-07-05 12:06:17.667" "Ending session 92"
"DEBUG" 2540 "2011-07-05 12:06:17.820" "Ending session 91"
I am using hMailServer 5.3.3-B1879, JDK1.6, Mozila Thunderbird 3.1.10.
Thanks in advance,
Parag