Connection dropped by IMAP server

Hello Everyone, I need some help!

We have an Xserve G5 running 10.4.2 Server as our mail server. On-campus, people use Entourage to get their mail; off-campus they use Squirrelmail.

Here's the problem: Now and then a user will not be able to use Entourage to connect to their email account. Squirrelmail also doesn't work and when they try to login in SM, they get the following error: "ERROR: Connection dropped by IMAP server."

I used 'ps -ax' to view all processes on the mail server. There are a bunch (like 30) lines that say 'imapd: localhost [::1]' with no username afterwards. Also, in Server Admin's Mail Service window, there are a bunch of lines (about 30) in the Connections pane that have no username and the address is localhost. My guess is these are Squirrelmail sessions that didn't completely close because the user didn't click Sign Out or something. Just a guess. I don't know. I also don't know if this is related to my problem, or another issue going on at the same time.

Anyway. So, let's say johndoe gets the "dropped by IMAP server" error. There is a line in 'ps -ax' that says 'imapd: localhost [::1] johndoe user.johndoe' and for the life of me, I can't kill the process. I can kill everything else.

So I stopped the Mail Service via Server Admin and refreshed the Connections pane. Everyone disappears except johndoe. 'ps -ax' shows all other connections are gone except johndoe. Start Mail Service, johndoe still gets "dropped by IMAP server" error when trying to login.

So I tried to restart the server via Apple menu, Restart. Server hangs after dock and desktop items disappear. Just shows background...endlessly. Have to hold down Xserve power button for 5 seconds. Wait a few seconds, turn it back on, everything boots up fine. johndoe can now log in.

Seems trivial, eh? Well, I've had this happen to two other users in the last 2 months. If the pattern holds, johndoe's account is likely to do this again a few times in the next week. I'll have no idea why and no way to fix it except restart the entire server. And I think that's awful that I can't resolve this issue without cutting off ALL email access to resolve one account. But anyway. Plus, johndoe will not receive any email while this is happening. Messages to him get put in La La Land. I can't find them to deliver into his mailbox once he can log in again. Grrrr. I'm guessing they're just lost forever.

Does anyone have any ideas? Have you seen that SquirrelMail error before? Does anyone know which log files I should start monitoring to maybe find more answers??? (Please be specific: for example, tell me the full location.)

Thanks for your help!

Posted on Sep 15, 2005 5:06 PM

Reply
37 replies

Nov 3, 2005 5:28 PM in response to Steven Muellener

Ok I found out that you can reboot your the server with "reboot -qn" even if there is a process which can't be killed by "kill -9". Thats a beginning.

But somehow IMAP-connections to the XServe can get really dead for instance if a user gives a commend in squirrelmail (rename or move or ...) and than press the cancel button in the browser.

Nobody has made this experience or found a solution for that problem? (Logs show nothing strange to me)

Steven

Jan 26, 2006 12:00 AM in response to Patrick Young2

Hopefully, you all have got this licked. I haven't. This is my first attempt at an OS X Server. I have been a do-it-yourselfer with linux servers for several years though, but not an expert. I appreciate any help from anyone.

The problem is similar. I originally had the mailserver set up with imap 100 max connections. The Outlook clients kept losing their connections. I found this post and read the above and the logs looked very similar. I increased the connections to 10,000, which is very overkill. The problem still occurs, but not as frequently. The current connections are nowhere near 10,000, so the number of available connections doesn't seem to be the only problem.

Any ideas? Thanks in advance.

Feb 8, 2006 5:03 PM in response to D Little

I am seeing very similar issues - I too have just increased my IMAP connections from 100 to 300, will wait and see. We are getting the issue about 1 a week - possibly linked to our Retrospect backup - I have also taken our mailserver completely out of Retrospect.

Final point is: when the Mail process is down, I also can't do much else - I can ARD in, but I can't do ps -aux for instance - it just hangs. I can't launch Terminal (have to leave it open), can't even do ls -l (ls works). Seems as though the 'process maker' is old and busted 🙂

Attempting to shutdown -r just results in me being kicked off ARD, and the mail server just sits there inaccessible until someone uses the power button.

Any thoughts?

Feb 14, 2006 11:18 PM in response to Michael Cutter1

I decided not to go headless and am glad I did since I've had many problems administering remotely, mostly with WGM, but also with terminal. ServerAdmin is ok, but limited.

My client machines are WinXP using Outlook. Both ethernet adapters on my server are on the same subnet. My problem with dropped/stuck IMAP connections was fixed after I found and fixed a reverse DNS lookup problem on my server, and on the WinXPs added a second WINS server by adding the second ethernet adapter IP on my OS X Server. I don't know which of the two things I did fixed it, or if it was the combination, but after that I haven't had a recurrence of the problem.

Mar 17, 2006 1:37 PM in response to Michael Cutter

I have run into the same situation a time or two. I had one user have 30+ connections to the server and caused it to crash. After increasing the number of connections allowed it has seemed to calm for now.

I have found that keeping server admin open will eat up the CPU. I have to actually quit the server admin program and things take a minute or so and goes back down to 15% instead of 99%. Can get a good view of this when the activity viewer is open.

Could be a connection in the two, or simply two different problems.

Mac OS X (10.4.5) Server

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Connection dropped by IMAP server

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.