[xmail] POP3 locks
Hi guys, For the second time in about a month, a specific user of my XMail-1.25 server running on FreeBSD-7.0 RELEASE is having problem with his POP3 account. I dont know why but the account gets locked for some reason, a file is created inside MailRoot/pop3locks/usern...@domain.lock and the file contains this: 34387167856 I have to manually delete the lock file or restart the server to fix the problem. While locked, its impossible for him or me to retrieve his emails. I was wondering what could have caused this? Under what circumstances a user gets his account locked? What can I do to prevent this from happening again? Thanks a lot for your advices, -fred ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] POP3 locks
On Tue, 31 Mar 2009, fred wrote: For the second time in about a month, a specific user of my XMail-1.25 server running on FreeBSD-7.0 RELEASE is having problem with his POP3 account. I don?t know why but the account gets locked for some reason, a file is created inside MailRoot/pop3locks/usern...@domain.lock and the file contains this: 34387167856 I have to manually delete the lock file or restart the server to fix the problem. While locked, it?s impossible for him or me to retrieve his emails. I was wondering what could have caused this? Under what circumstances a user gets his account locked? What can I do to prevent this from happening again? Hmmm, lock file are always removed when the POP3 sessions ends. Even if XMail would crash in the middle of the request, during part of its boot up, it clears the lock files. So I find it strange of a lock file being permanently stuck there. Can you try a netstat (when the lock file is left there) to see if the connection with the client IP (on inbound port 110) is still there? - Davide ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] POP3 locks
2009/3/31 fred f...@fullmetalpacket.com I don’t know why but the account gets locked for some reason, a file is created inside MailRoot/pop3locks/usern...@domain.lock and the file contains this: 34387167856 I have to manually delete the lock file or restart the server to fix the problem. While locked, it’s impossible for him or me to retrieve his emails. I was wondering what could have caused this? Under what circumstances a user gets his account locked? What can I do to prevent this from happening again? Fred, This most typically happens when a POP3 client tries to download an email with a large attachment and the connection or download of the message data is unexpectedly stopped. In short, this is a result of the RFC for POP3 which specifies a single connection per mailbox. Your best option for handling this would be to get the users to switch to a more robust method, like IMAP. There should be a timeout period on the lock, but* *I don't know what it is. -Jonathan ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] POP3 locks
On Tue, 31 Mar 2009, Jonathan Kelly wrote: 2009/3/31 fred f...@fullmetalpacket.com I don?t know why but the account gets locked for some reason, a file is created inside MailRoot/pop3locks/usern...@domain.lock and the file contains this: 34387167856 I have to manually delete the lock file or restart the server to fix the problem. While locked, it?s impossible for him or me to retrieve his emails. I was wondering what could have caused this? Under what circumstances a user gets his account locked? What can I do to prevent this from happening again? Fred, This most typically happens when a POP3 client tries to download an email with a large attachment and the connection or download of the message data is unexpectedly stopped. In short, this is a result of the RFC for POP3 which specifies a single connection per mailbox. Your best option for handling this would be to get the users to switch to a more robust method, like IMAP. There should be a timeout period on the lock, but I don't know what it is. If the connection is (unexpectedly or not) stopped, XMail receives a notification (assuming the OS does not have bugs), it shuts down its session with the client, and removes the lock file. If the connections gets somewhere stuck, the lock could remain there. But, XMail has timeouts everywhere, so even if the client stops responding, XMail would get a timeout, shutdown the client session, and remove the lock. - Davide ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] POP3 locks
-Original Message- From: xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org] On Behalf Of Davide Libenzi Sent: 31 mars 2009 11:58 To: XMail Users Mailing List Subject: Re: [xmail] POP3 locks On Tue, 31 Mar 2009, fred wrote: For the second time in about a month, a specific user of my XMail-1.25 server running on FreeBSD-7.0 RELEASE is having problem with his POP3 account. I don?t know why but the account gets locked for some reason, a file is created inside MailRoot/pop3locks/usern...@domain.lock and the file contains this: 34387167856 I have to manually delete the lock file or restart the server to fix the problem. While locked, it?s impossible for him or me to retrieve his emails. I was wondering what could have caused this? Under what circumstances a user gets his account locked? What can I do to prevent this from happening again? Hmmm, lock file are always removed when the POP3 sessions ends. Even if XMail would crash in the middle of the request, during part of its boot up, it clears the lock files. So I find it strange of a lock file being permanently stuck there. Can you try a netstat (when the lock file is left there) to see if the connection with the client IP (on inbound port 110) is still there? - Davide Hi Davide, I will paste the output of the netstat cmd when the problem occurs once again. Here are the startup switches that I use if it can help: XMAIL_CMD_LINE=-Y- -F- -Pl -Ph -Sl -Fl -Cl -Ll -Yl -Qt 5 -Qi 5 -Ql -Qg Could the -Ph switch be causing this? Hang the connection in bad login response? Don't think so. Also, maybe setting the -Pt timeout switch would help? Thanks! -fred ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] POP3 locks
On Tue, 31 Mar 2009, fred wrote: Hi Davide, I will paste the output of the netstat cmd when the problem occurs once again. Here are the startup switches that I use if it can help: XMAIL_CMD_LINE=-Y- -F- -Pl -Ph -Sl -Fl -Cl -Ll -Yl -Qt 5 -Qi 5 -Ql -Qg Could the -Ph switch be causing this? Hang the connection in bad login response? Don't think so. Also, maybe setting the -Pt timeout switch would help? No, you shouldn't be needed that. Check if the client IP is listed in your `netstat` output, when the connection is reported locked by the client. - Davide ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail