IMAP/SWA Internal Error - Failed Login for some users

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

IMAP/SWA Internal Error - Failed Login for some users

Postby les » Mon Mar 26, 2007 12:46 pm

Hi,

Upgraded a centos 4.4 system running v10 to 11.0.2.1

Seemed to go fine. After a short period users informed me that swa and imap access were not working.

I could see that if i telnet to the imap port on 143 i would get logged out with an internal error.

This would only happen for some users, not all.

sxadmin can login to imap/swa. another user, created many moons ago, smcmahon can login to imap/swa. A newly created user after the upgrade cannot login to imap/swa.

This was an "inherited system" and i finally found that the previous tech had been in the /var/opt/scalix/sys/pam.d directory trying to "crowbar" in pam auth via smb.
There was stuff left behind that was wrong, which subsequently got upgraded to v11 as it was.

I rsynced a "virgin" /var/opt/scalix/xx/s/sys/pam.d directory from a known working scalix server to this one, ofcourse removing all the dud files. (Maybe that wasn't a great idea...)

but i got it to work after a restart of scalix services.

However it only worked for a short time (not exactly sure but less than 30 minutes) and then it broke in exactly the same way.

so its still busted.

I've read heaps of posts on similar issues....

permissions on user directories are fine.
permissions on tmp and temp are fine.
i have 111gb of disk space free.
have run omcheck - all good.
rebooted and restarted scalix services many times.
the users have no differences between settings (i.e. all unlocked and all can use swa). There is no commonality, i.e. it doesn't matter if you are standard or premium.

ofcourse pop3 works for all users as it uses a different pam.d auth file.

I also removed /etc/pam_smb.conf which again was a hack to try and get smb auth going.

I enabled debug logging for imap and tested a login......

some of the logs are below....full logs can be posted if necessary....

I'm afraid my only way forward now is to uninstall scalix-server, leaving behind the data directory and do a reinstall which will pick up the existing data directory. Thus treating it like a cross platform upgrade such as when you go from fc4 to fc5.
i cant be sure what else has been changed by the previous tech so my thoughts are ....

a clean, bare bones scalix structure + original data directory = should be working fine ;) or so the theory goes.

I'll be doing that about 6 hours from now after i rest my head ;)

If anyone can shed any light on why this has happened, and or why some users can use swa/imap or not i would greatly appreciate it.


debug]# cat imap.localhost.localdomain
6148 01:56:39.536 IMAP4 Server 11.0.2.17 on server1.office.local at Tue Mar 27 01:56:39 2007
6148 01:56:45.088 RSP: 1. BAD syntax error
6148 01:56:53.361 CMD: 1. LOGIN "les.stott" <password>
6148 01:56:53.637 RSP: 1. NO LOGIN failed, internal error
6148 01:56:53.638 IMAP4 Satellite Server exiting.

debug]# cat OM156U.log (excerpt only)
COMMAND 360 GET_SYNC_CHANGES 01:56:53
{
UARef = 6149
SeqNo = 9
GetSyncFlags = 128
ChangeReqFile =
SyncDate = 1174908011
FolderDRef = USER_FOLDER
SimpleFilter =
ComplexFilter =
LocalStoreId = imap-156
GetItemDRef =
MaxDataKbSize =
SyncType =
}

REPLY 360 GET_SYNC_CHANGES
{
UARef = 6149
SeqNo = 9
ReplyFlags = 0
ErrorNo = 0
Err2 = 0
Err3 = 0
GetSyncRepFlags = 0
ActionFName = /var/opt/scalix/s1/s/temp/001vh63.ofa
ActionFSize = 63
DataFName =
DataFSize = 0
NumChanges = 0
Status = 0
ParentDirectRef =
CompressedASize = 0
CompressedDSize = 0
} 01:56:53


COMMAND 171 GET_FILE 01:56:53
{
UARef = 6149
SeqNo = 10
GetFlags =
FromFileId = 130
FromFileNo =
ToFileName =
ToFileId =
ToFileExt =
CharSet =
AALogStart =
DirHandle =
FileNameBase =
}

REPLY 171 GET_FILE
{
UARef = 6149
SeqNo = 10
ReplyFlags = 0
ErrorNo = 0
Err2 = 0
Err3 = 0
Filename = /var/opt/scalix/s1/s/user/g00004s/00000v8.ofs/00000v8.modtimes
VersionNo = 0
ModDate = 0
FileSize = 136
} 01:56:53

COMMAND 360 GET_SYNC_CHANGES 01:56:53
{
UARef = 6149
SeqNo = 11
GetSyncFlags = 262144
ChangeReqFile =
SyncDate =
FolderDRef =
SimpleFilter =
ComplexFilter =
LocalStoreId =
GetItemDRef =
MaxDataKbSize =
SyncType =
}

REPLY 360 GET_SYNC_CHANGES
{
UARef = 6149
SeqNo = 11
ReplyFlags = 0
ErrorNo = 0
Err2 = 0
Err3 = 0
GetSyncRepFlags = 0
ActionFName = /var/opt/scalix/s1/s/temp/001vh64.ofa
ActionFSize = 106
DataFName =
DataFSize = 0
NumChanges = 1
Status = 0
ParentDirectRef =
CompressedASize = 0
CompressedDSize = 0
} 01:56:53
[root@server1 debug]# vi OM156U.log
ModDate = 0
FileSize = 136
} 01:56:53

COMMAND 360 GET_SYNC_CHANGES 01:56:53
{
UARef = 6149
SeqNo = 11
GetSyncFlags = 262144
ChangeReqFile =
SyncDate =
FolderDRef =
SimpleFilter =
ComplexFilter =
LocalStoreId =
GetItemDRef =
MaxDataKbSize =
SyncType =
}

REPLY 360 GET_SYNC_CHANGES
{
UARef = 6149
SeqNo = 11
ReplyFlags = 0
ErrorNo = 0
Err2 = 0
Err3 = 0
GetSyncRepFlags = 0
ActionFName = /var/opt/scalix/s1/s/temp/001vh64.ofa
ActionFSize = 106
DataFName =
DataFSize = 0
NumChanges = 1
Status = 0
ParentDirectRef =
CompressedASize = 0
CompressedDSize = 0
} 01:56:53
Regards,

Les Stott

Return to “Scalix Server”



Who is online

Users browsing this forum: Google [Bot] and 15 guests

cron