I have a workaround for this issue I think...<br><br>This error is produced because gmail doesn't close the connection properly when talking to the server, therefore the mailbox remains open and locked.<br><br>I have changed the following parater from 7200 (2 hours) to 300 (5 min)<br>
<font><font color="#000000"><pre class="programlisting"><tt class="userinput"><b>/proc/sys/net/ipv4/tcp_keepalive_time</b></tt><br><br><br><br><a href="http://tldp.org/HOWTO/TCP-Keepalive-HOWTO/usingkeepalive.html">http://tldp.org/HOWTO/TCP-Keepalive-HOWTO/usingkeepalive.html</a><br>
</pre></font></font>I'm not sure why the default setting in linux is 2 hours.<br>Maybe this is needed when using some specific protocols like bgp to prevent erros when the system is flapping....<br><br>I can't think of any reason to keep the connection open for 2 hours.<br>
<br>Changing this setting has +-fixed the issue, but I'm not sure what other implications this setting may have on the system.<br><br><br>Cheers.<br>Mario.<br><br><div class="gmail_quote">2009/2/25 Gunnar Wrobel <span dir="ltr"><<a href="mailto:wrobel@pardus.de">wrobel@pardus.de</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
Quoting Mario Ramos <<a href="mailto:mario@hummy.org" target="_blank">mario@hummy.org</a>>:<br>
<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Hello.<br>
<br>
I'm trying to set up gmail to fetch mail from my kolab accounts.<br>
<br>
When I use POP3S, on gmail I get:<br>
<br>
Server returned error: "[IN-USE] Unable to lock maildrop:<br>
Mailbox is locked by POP server"<br>
Also in /kolab/var/imapd/log/pop3d.log I get:<br>
<br>
Feb 23 22:39:43 mrburns <error> pop3s[10062]: Unable to lock<br></div>
maildrop <a href="http://domain.com" target="_blank">domain.com</a>[1]!<div class="Ih2E3d"><br>
user.mramos: Mailbox is locked by POP server<br>
<br>
When I use IMAPS, on gmail I get:<br>
<br>
Using IMAP port 993:<br>
<br></div>
There was a problem connecting to <a href="http://mail.domain.com" target="_blank">mail.domain.com</a>[2]<div class="Ih2E3d"><br>
Show error details Server returned error: "Missing +OK<br>
response upon connecting to the server: * OK [CAPABILITY IMAP4<br></div>
IMAP4rev1 LITERAL+ ID AUTH=PLAIN SASL-IR] <a href="http://ldap.domain.com" target="_blank">ldap.domain.com</a>[3] Cyrus<div class="Ih2E3d"><br>
IMAP4 v2.3.11-kolab-nocaps server ready"<br>
<br>
And on /kolab/var/imapd/log/imapd.log I get:<br>
<br>
Feb 23 22:55:22 mrburns <debug> imaps[10789]: accepted<br>
connection<br>
Feb 23 22:55:22 mrburns <debug> imaps[10789]: SSL_accept()<br>
incomplete -> wait<br>
Feb 23 22:55:22 mrburns <debug> imaps[10789]: mydelete:<br>
starting txn 2147485336<br>
Feb 23 22:55:22 mrburns <debug> imaps[10789]: mydelete:<br>
committing txn 2147485336<br>
Feb 23 22:55:22 mrburns <debug> imaps[10789]: mystore:<br>
starting txn 2147485337<br>
Feb 23 22:55:22 mrburns <debug> imaps[10789]: mystore:<br>
committing txn 2147485337<br>
Feb 23 22:55:22 mrburns <debug> imaps[10789]: SSL_accept()<br>
succeeded -> done<br>
Feb 23 22:55:22 mrburns <notice> imaps[10789]: starttls:<br>
TLSv1 with cipher RC4-MD5 (128/128 bits new) no authentication<br>
I've been searching about the "Mailbox is locked" and all<br>
I can find is people blaming gmail.<br>
<br>
<br>
</div></blockquote>
<a href="http://markmail.org/message/pw4za5ltlr5hxuv2#query:Server%20returned%20error%3A%20%22%5BIN-USE%5D%20Unable%20to%20lock%20maildrop%3A%20Mailbox%20is%20locked%20by%20POP%20server%22+page:1+mid:pw4za5ltlr5hxuv2+state:results%5B4%5D" target="_blank">http://markmail.org/message/pw4za5ltlr5hxuv2#query:Server%20returned%20error%3A%20%22[IN-USE]%20Unable%20to%20lock%20maildrop%3A%20Mailbox%20is%20locked%20by%20POP%20server%22+page:1+mid:pw4za5ltlr5hxuv2+state:results[4]</a><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
</blockquote>
<a href="http://groups.google.com/group/Gmail-Help-POP-and-IMAP-en/browse_thread/thread/9503a8e5f6b4f48a/01c6939d1a60104d?lnk=raot&fwc=1%5B5%5D" target="_blank">http://groups.google.com/group/Gmail-Help-POP-and-IMAP-en/browse_thread/thread/9503a8e5f6b4f48a/01c6939d1a60104d?lnk=raot&fwc=1[5]</a><div class="Ih2E3d">
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The weirdest thing, is that sometimes gmail works, but that's only<br>
1 out of 15 or 20.<br>
<br>
Is not SSL related, it does the same using POP.<br>
<br>
Does anyone have any hints on what's causing this error?<br>
</blockquote>
<br></div>
I assume several processes may not perform POP on the same mailbox at the same time. And apparently the way google talks to the server keeps processes open, thus locking additional ones.<br>
<br>
In the IMAP situation Google does not seem to understand the IMAP response from the server. I believe the Cyrus IMAP server can be considered a reference when it comes to IMAP. So if Google does not understand it this is definitely something they need to fix on their side.<br>
<br>
Cheers,<br>
<br>
Gunnar<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Thanks.<br>
Mario.<br>
<br>
-- <br>
PS – Please help preserve the environment, don't print this email<br>
unless you have to.<br>
</blockquote>
<br></div>
-- <br>
______ <a href="http://kdab.com" target="_blank">http://kdab.com</a> _______________ <a href="http://kolab-konsortium.com" target="_blank">http://kolab-konsortium.com</a> _<br>
<br>
p@rdus Kolab work is funded in part by KDAB and the Kolab Konsortium<br>
<br>
____ <a href="http://www.pardus.de" target="_blank">http://www.pardus.de</a> _________________ <a href="http://gunnarwrobel.de" target="_blank">http://gunnarwrobel.de</a> _<br>
E-mail : <a href="mailto:p@rdus.de" target="_blank">p@rdus.de</a> Dr. Gunnar Wrobel<br>
Tel. : +49 700 6245 0000 Bundesstrasse 29<br>
Fax : +49 721 1513 52322 D-20146 Hamburg<br>
--------------------------------------------------------------------<br>
>> Mail at ease - Rent a kolab groupware server at p@rdus <<<br>
--------------------------------------------------------------------<br>
<br>
Links:<br>
------<br>
[1] <a href="http://domain.com" target="_blank">http://domain.com</a><br>
[2] <a href="http://mail.domain.com" target="_blank">http://mail.domain.com</a><br>
[3] <a href="http://ldap.domain.com" target="_blank">http://ldap.domain.com</a><br>
[4] <a href="http://markmail.org/message/pw4za5ltlr5hxuv2#query:Server%20returned%20error%3A%20%22%5BIN-USE%5D%20Unable%20to%20lock%20maildrop%3A%20Mailbox%20is%20locked%20by%20POP%20server%22+page:1+mid:pw4za5ltlr5hxuv2+state:results" target="_blank">http://markmail.org/message/pw4za5ltlr5hxuv2#query:Server%20returned%20error%3A%20%22[IN-USE]%20Unable%20to%20lock%20maildrop%3A%20Mailbox%20is%20locked%20by%20POP%20server%22+page:1+mid:pw4za5ltlr5hxuv2+state:results</a><br>
[5] <a href="http://groups.google.com/group/Gmail-Help-POP-and-IMAP-en/browse_thread/thread/9503a8e5f6b4f48a/01c6939d1a60104d?lnk=raot&fwc=1" target="_blank">http://groups.google.com/group/Gmail-Help-POP-and-IMAP-en/browse_thread/thread/9503a8e5f6b4f48a/01c6939d1a60104d?lnk=raot&fwc=1</a><br>
<br>
<br>
----------------------------------------------------------------<br>
This message was sent using IMP, the Internet Messaging Program.<br>
<br>_______________________________________________<br>
Kolab-users mailing list<br>
<a href="mailto:Kolab-users@kolab.org">Kolab-users@kolab.org</a><br>
<a href="https://kolab.org/mailman/listinfo/kolab-users" target="_blank">https://kolab.org/mailman/listinfo/kolab-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>PS – Please help preserve the environment, don’t print this email unless you have to.<br>