Page 1 of 1

webmail issue - The Direct Reference supplied is invalid

Posted: Sun May 24, 2009 3:35 pm
by criptus
I have strange mail web accessing problem. Soon after I login to webmail over web, there is message popping up, that there is server problem. I need to close browser, kill imapd processes to be able to login again. Same problem appears after a few seconds again and again...

When I check imap deamon (sxadmin), it reports this:

REPORT IMAP Server Da(IMAP Server Pr) 05.24.09 21:23:47
[OM.UI 578] The Direct Reference supplied is invalid
User Name: XXXXXXXXXXXXXX
Last Folder: UserFolder - Filing Cab
<- ct_ReadContentRec 3003 0
-> ual_BuildListEntry
-> ual_GetMsgId
<- ual_GetMsgId
-> ual_GetAckId
<- ual_GetAckId
-> mapi_SyncCompFlags
<- mapi_SyncCompFlags
<- ual_BuildListEntry
-> ct_ReadNextContentRec
<- ct_ReadNextContentRec
-> ct_GetCtnerLastCRec
<- ct_GetCtnerLastCRec
<- ual_UpdateAnyList
<- ual_ContentNumForDI
<- /build/11.4.3/src/lib/ual/ual_dref.c:583[101,578]

Restarting imap deamon over swa does not help. Outlook works fine.

What is this?

Re: webmail issue - The Direct Reference supplied is invalid

Posted: Mon May 25, 2009 1:44 pm
by criptus
No ideas?

Re: webmail issue - The Direct Reference supplied is invalid

Posted: Mon May 25, 2009 2:03 pm
by billb3
Have you done an omscan on the account and cleared the imap cache?

Re: webmail issue - The Direct Reference supplied is invalid

Posted: Tue May 26, 2009 4:44 pm
by criptus
I do /opt/scalix/bin/omscan -avfx once a week.

NO change!

I also noticed that when Idelete item - it is not transfered to deleted map! The items are dissapearing and they should go to deleted map :shock:

But again - it works only half a minute and then dies...

How can I clear imap cache?

Re: webmail issue - The Direct Reference supplied is invalid

Posted: Tue May 26, 2009 5:08 pm
by criptus
I cleared imap cache (actually renamed imap-cache folder just in case :wink: ).

------------------------------------------------------------------------------------------------------
description:
http://keystoneit.wordpress.com/2007/06 ... or-a-user/

Follow the steps below to clear IMAP cache:
1. make sure the user is logged out, i.e.
omstat -u all
2. determine the user folder directory, i.e.
omshowu -n <lastname> -f
Note: <lastname> should be the lastname of the user in question.
3. Go there (the so-called g-directory of the user)
cd /var/opt/scalix/??/s/user/????????/
4. This should have a subdirectory called imap-cache. delete that:
rm -r imap-cache
5. Restart IMAP service:
omoff -d 0 -a IMAP & omon IMAP
----------------------------------------------------------------------------------------------------------
It works!

Thank you bilb so much !!!

Whats the point?

How important this imap-cache folder actualy is? Do you do this periodicaly? Shall I put this procedure to crontab?

Re: webmail issue - The Direct Reference supplied is invalid

Posted: Tue May 26, 2009 5:13 pm
by billb3
We rarely have cache corruption needing it to be run, but I run it once a week just to be safe...

Re: webmail issue - The Direct Reference supplied is invalid

Posted: Tue May 26, 2009 5:16 pm
by billb3

Re: webmail issue - The Direct Reference supplied is invalid

Posted: Tue May 26, 2009 5:30 pm
by criptus
Thanks a lot once again 8)