Unable to delete email from webmail

Arunlal P.R

Member
Oct 31, 2018
20
0
1
India
cPanel Access Level
Root Administrator
Everyday we recieves the following error in same domain different email account.

Server error: UID MOVE: IMAP session state is inconsistent, please relogin.

Could you please let me know the actual reason behind this?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


Thanks!
 

sevenokve

Member
Aug 11, 2020
9
2
3
Puerto La Cruz, Venezuela
cPanel Access Level
Root Administrator
Hi @cPanelLauren !

Did you find a solution for this particular issue?

I have the exact same error (Server error: UID MOVE: IMAP session state is inconsistent, please relogin.) when I try to delete messages in a particular email account with Roundcube. I've also tried to delete the messages with Horde, but it shows another error: An error occurred while moving messages from "Inbox" to "Trash". This is what the server said: The IMAP server closed the connection. IMAP error reported by the server.

It happens in a specific email account within the same cPanel user.

The only difference I've managed to find between that email account and the rest (from the same cPanel user) is that in that account, the storage used is way higher than the average Joe. About 15 GB. For the rest, everything seems to be exactly the same.

If you have any news, please let me know. I've checked online all the way around and haven't found anything useful so far.

Regards.
 

joabk

Registered
Jul 9, 2020
1
0
1
Kenya
cPanel Access Level
Root Administrator
Hey @sevenokve

I had a similar problem and for me, it was affecting a domain that had mdbox which heaps all emails in one file. I did a conversion to maildir and am no longer getting the error. You can also try to recreate the SQLite DB files in the /etc directory. Back them up by renaming them with mv /etc/[user].rcube.db for all the DBs corresponding to the affected user and the system will create new ones next time you log in.
 
Last edited:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
There are a few cases like this I see in the ticket system as well where the account data had become corrupted. Also noted by the errors as follows in the maillog at /var/log/maillog

Error: mdbox rebuild: Failed to fix file /home/$USER/mail/domain.tld/mailuser/storage/m.XXX

Possibly moving to maildir could be a solution, restoring from a backup may also be - the only alternate would be to manually remove the files via SSH
 

sevenokve

Member
Aug 11, 2020
9
2
3
Puerto La Cruz, Venezuela
cPanel Access Level
Root Administrator
Hi @joabk and @cPanelLauren

Converting to maildir did the trick for me. It took a while since the account was quite heavy, but at the end it did work just fine.

So, for anyone else who is having the same issue, converting from mdbox to maildir may work. If it doesn't try the other methods provided by joabk or cPanelLauren.

Thanks for the help guys. :)