Friday, February 6, 2015

Error while accessing sent and draft folders – webmail – Squirrel mail









ERROR: Could not complete request
Query: SELECT{12} INBOX.Drafts
Reason Given: [SERVERBUG]Internal error occurred. Refer to server log for more information.






Recently I have got this error in one of our client’s cPanel server. When he access Drafts or Sent folders in squirrel mail, He was getting the following error. Accessing INBOX works fine. Only problem was associated with Draft and Sent folder. I have tried to create a new email account and it works fine the newly created email account has no problems in accessing Sent or Draft folders in squirrel mail.


Solution:

Log into server as root. Check the .Sent folder inside the mail folder.
#cd /home/user/mail/domain.com/email_account/.Sent
Check whether tmp folder is present in this folder. If not, then create it.
#root@server [/home/user/mail/domain.com/email_account/.Sent]# ls -ld tmp/
drwxr-x--x 2 user user 4096 Jan 31 11:30 tmp//
If tmp was missing then you create the tmp directory using mkdir command.
#root@server [/home/user/mail/domain.com/email_account/.Sent]#mkdir tmp
Make sure to assign the ownership as user for this tmp folder. You’ll also get the same error, if the ownership of the tmp folder is wrong.
Same procedures can be done in .Drafts folder if you’re facing this error in Drafts folder.


Reference crybit.com


No comments:

Post a Comment