Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: rodantheman on April 19, 2010, 09:34:52 PM

Title: IMAP Email files not saving to correct MailDir directory, file corruption in mai
Post by: rodantheman on April 19, 2010, 09:34:52 PM
Hello All.  I have an SME server (recently patched) that is now doing some strange things it has never done before.  I had a user who could not access his mail via Outlook.  When I tried remotely to access his webmail I could not. It brought up the webmail, but did not display any of his messages.    So I searched through the logs, and I noticed a log complaining about permissions in his MailDir.. So, I checked and found there were a few files that had ownership permissions other than the user in question.   When I looked at the raw files, I found they were mail, that should have been delivered to another user.  They were essentially spam so I just deleted them.  After deleting the other users mail files, the IMAP mail started working as it should. 

To correct this I rebooted and updates and rebooted again.

The original user is now having the same problem again, and I have corrected it again.  I now know of another user who had the same problem, but he has files in his maildir that have no size, and so far, I have not been able to delete them.

So, IMAP keeps putting other users files in the wrong place, or creating corrupted files that cannot be deleted.  My searches for corrupt IMAP files have yet to lead me anywhere. 

If anyone has any suggestions, I would greatly appreciate it!

Title: Re: IMAP Email files not saving to correct MailDir directory, file corruption in mai
Post by: Stefano on April 19, 2010, 09:38:06 PM
If anyone has any suggestions, I would greatly appreciate it!

go to bugzilla and open a bug, thank you
Title: Re: IMAP Email files not saving to correct MailDir directory, file corruption in mai
Post by: CharlieBrady on April 19, 2010, 11:10:00 PM
The original user is now having the same problem again, and I have corrected it again.  I now know of another user who had the same problem, but he has files in his maildir that have no size, and so far, I have not been able to delete them.

It sounds to me like you may have file system corruption, which is most commonly caused by a failed disk drive.
Title: Re: IMAP Email files not saving to correct MailDir directory, file corruption in mai
Post by: rodantheman on April 19, 2010, 11:38:11 PM
The drives are mirrored.  Can I use e3fsck in the same way, or are their special tools for a software mirrored drive?

Title: Re: IMAP Email files not saving to correct MailDir directory, file corruption in
Post by: janet on April 20, 2010, 12:48:31 AM
rodantheman

See http://wiki.contribs.org/Monitor_Disk_Health

and/or

boot up to the drive manufacturers diagnostic software tools disk and run seperate tests on each drives.

Before you do anything else,
MAKE A FULL BACKUP,  ASAP
Title: Re: IMAP Email files not saving to correct MailDir directory, file corruption in mai
Post by: CharlieBrady on April 20, 2010, 03:12:45 AM
The drives are mirrored.  Can I use e3fsck in the same way

Yes, but you need to specify the raid partitions, not the raw disk partitions.

Easiest is to do:

touch /forcefsck
signal-event reboot

Before doing anything, I would read the SMART data from the disks, check /proc/mdstat and look in messages log file for I/O errors.
Title: Re: IMAP Email files not saving to correct MailDir directory, file corruption in mai
Post by: rodantheman on April 22, 2010, 09:34:11 PM
Yes, but you need to specify the raid partitions, not the raw disk partitions.

Easiest is to do:

touch /forcefsck
signal-event reboot

Before doing anything, I would read the SMART data from the disks, check /proc/mdstat and look in messages log file for I/O errors.


Thanks to all who responded.  I still have the problem, but I do appreciate the replies!
Title: Re: IMAP Email files not saving to correct MailDir directory, file corruption in mai
Post by: Stefano on April 22, 2010, 10:14:43 PM

Thanks to all who responded.  I still have the problem, but I do appreciate the replies!


did you do all the steps you were advised to follow?
Title: Re: IMAP Email files not saving to correct MailDir directory, file corruption in mai
Post by: rodantheman on April 22, 2010, 10:19:06 PM
did you do all the steps you were advised to follow?

I have done all but the full fsck scan.  I'm waiting for this weekend so I have a time to react if I have problems.
Title: Re: IMAP Email files not saving to correct MailDir directory, file corruption in mai
Post by: Stefano on April 28, 2010, 12:27:58 PM
any new?