Connection dropped by IMAP server

seby

Well-Known Member
Oct 18, 2005
46
0
156
Hi all,

I'm currently facing this issue with email server.

Using cPanel WHM 11.28.64 CENTOS 5.5 i686 standard

When I click on SquirrelMail, I get an error message:

Connection dropped by IMAP server

Hordemail gives error as 'Login failed, becoz the username or password
you entered was incorrect'.

The error will exist in only few minuites after that it will start working fine.

Problem is with all hosted sites on server.

Any suggestions on how to correct this issue would be greatly appreciated.

Thanking you,
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Please try saving WHM > Tweak Settings area on the server, then see if you are still receiving this error in Squirrelmail. If you are, please also check Roundcube if that is working or not and, if it is not working to send emails either, please provide any errors from the following Roundcube log:

Code:
tail -50 /var/cpanel/roundcube/log/errors
Roundcube does the most robust logging, while Squirrelmail doesn't provide any really, so it's easier to troubleshoot the issue with Roundcube.

Thanks!
 

seby

Well-Known Member
Oct 18, 2005
46
0
156
Thanks for your reply.

Sometimes round cube giving a blank page and sometimes getting this error message

Unexpected condition from IMAP server, closed or corrupt connection to IMAP. Possible mailbox corruption.

tail -50 /var/cpanel/roundcube/log/errors shows

[16-Jan-2011 09:13:35] Unexpected condition from IMAP server, closed or corrupt connection to IMAP. Possible mailbox corruption.
[16-Jan-2011 09:13:35] PHP Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/cpanel/base/3rdparty/roundcube/program/include/rcube_imap_generic.php on line 213
[16-Jan-2011 10:10:00] Unexpected condition from IMAP server, closed or corrupt connection to IMAP. Possible mailbox corruption.
[16-Jan-2011 10:10:00] PHP Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/cpanel/base/3rdparty/roundcube/program/include/rcube_imap_generic.php on line 213
[16-Jan-2011 10:11:49] Unexpected condition from IMAP server, closed or corrupt connection to IMAP. Possible mailbox corruption.
[16-Jan-2011 10:11:49] PHP Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/cpanel/base/3rdparty/roundcube/program/include/rcube_imap_generic.php on line 213
tail -50 /var/cpanel/roundcube/log/errors shows[17-Jan-2011 05:28:28 +0000]: IMAP Error: Authentication for [email protected] failed (LOGIN): in /usr/local/cpanel/base/3rdparty/roundcube/program/include/rcube_imap.php on line 143 (GET /cpsess6571993833/3rdparty/roundcube/index.php?_task=mail&_remote=1&_action=check-recent&_t=1295242113706&_mbox=INBOX&_list=1&_quota=1&_=1295242113708&_unlock=1)
 
Last edited:

seby

Well-Known Member
Oct 18, 2005
46
0
156
I get following email notifications from cpanel.

imap on serverxx.com failed

imap failed @ Mon Jan 17 05:25:32 2011. A restart was attempted automagically.
Service Check Method: [tcp connect]

Failure Reason: TCP Transaction Log:
<< * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc. See COPYING for distribution information.
>> A001 LOGIN __cpanel__service__auth__imap__DeHTlvoWs1WA6UtqhYe7b6O_i1crMV5mEvD7kspUJCBW1m5_l7ILmWOZiRt9C06A NB49tQtFK4h9wO9bYbG4t36uBo2E38d1HOkGRNW8gO6CrecoS8f_drdKCC7C5Bj_
======================================================

exim on serverxx.com failed

exim failed @ Sun Jan 16 13:31:41 2011. A restart was attempted automagically.
Service Check Method: [tcp connect]

Failure Reason: TCP Transaction Log:
<< 220-serverxx.com ESMTP Exim 4.69 #1 Sun, 16 Jan 2011 13:32:14 +0000
<<
<<
>> EHLO localhost
<< 250-serverxx.com Hello localhost [127.0.0.1]
<<
<<
<<
<<
<<
>> AUTH PLAIN AF9fY3BhbmVsX19zZXJ2aWNlX19hdXRoX19leGltX181SmkzcXlLVTRPdHhaaFJOQWNhYmExMDhScHNVNVlVbFA5dG53RzdNajdUV0t4RkhrVUlfRkYxWk9oRjBhRjlIAEp4bjVBWlVBMUVLS1VJRXk5aFJPY0h2VDJEdUdqRlN1dUdzVHBFWGhINkpXcVNEaHA5QVQ1MEVoYlp5SWZrb04=
- Hide quoted text -
<< 435 Unable to authenticate at present
exim: ** [435 Unable to authenticate at present != 2]
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
I'd suggest opening a ticket at this phase. WHM > Support Center > Contact cPanel or using the link in my signature.
 

manokiss

Well-Known Member
Mar 31, 2002
576
1
318
Im having the same problem since yesterday:

imap failed @ Tue Jan 18 23:38:21 2011. A restart was attempted automagically.
Service Check Method: [tcp connect]

Failure Reason: TCP Transaction Log:
<< * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc. See COPYING for distribution information.
>> >> A001 LOGIN __cpanel__service__auth__imap__jygkybd9IZx7c28EYhCtcdRhDrCtXjaulWSQoId_sr35juzz6dFxfSw_bAm07VEe OqFf8y5fs_ib1dFwhRWdLloMQosE31mRUvuECv5V6_o4zwLE4YlfJ3lO_eDiVer6
<< * BYE Temporary problem, please try again later
imap: ** [* BYE Temporary problem, please try again later != A001 OK]



There is any step to correct this or i have to open a ticket?
 

seby

Well-Known Member
Oct 18, 2005
46
0
156
problem fixed by changing mailserver to Dovecot on whm

Main >> Service Configuration >> Mailserver Selection
 

manokiss

Well-Known Member
Mar 31, 2002
576
1
318
Thanx Seby....hmm...well...i do not want to switch to Dovecot....cant be the only way :)
Anyone from cpanel?
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
Thanx Seby....hmm...well...i do not want to switch to Dovecot....cant be the only way :)
Anyone from cpanel?
Have you customized the Courier configuration? Please let us know the output from the following command:
Code:
# cat /var/cpanel/courierconfig.yaml
For reference, Dovecot is now the default selection for the IMAP and POP mail server on new installations; Dovecot also has a number of advantages over Courier, as detailed in WebHost Manager via the following menu path: WHM: Main >> Service Configuration >> Mailserver Selection

I would check the log file used by Courier (and Dovecot) for clues; the following command can be used to monitor the log file via root SSH access:
Code:
# tail -fvn0 /var/log/maillog
After starting the "tail" command via SSH, proceed with testing Webmail applications, including Horde, Roundcube, and Squirrelmail.
 
Last edited:

manokiss

Well-Known Member
Mar 31, 2002
576
1
318
hi, i have opened a ticket at that time and you have increased the authdeamon number to 20, that was temporary fix as im having the same problem again.
Question...switching to Dovecot will effect somehow to the users (lost emails, auth problems, etc.) Also as you said dovecot have many advantages but the one disadvantage is the imap is "Trash mailbox is not automatically expunged", can you please give me more details on it and let me know if in fact this continue being not supported bu Dovecot?
Thanx in advance!