#1  
Old 21st June 2006, 23:52
adamluz adamluz is offline
Member
 
Join Date: Aug 2005
Location: Burbank, California
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to adamluz Send a message via MSN to adamluz
Default File isn't in mbox format

Signed in to webmail and got the following error:

ERROR: Could not complete request.
Query: SELECT "INBOX"
Reason Given: Internal error occured. Refer to server log for more information. [2006-06-21 14:25:45]


So I used webmin to see if the user's mail was readable and I was able to read everything in the user's e-mail with no problem. When I checked the mail log though its reporting: Jun 21 14:25:45 fc4 imap(web39_mick): File isn't in mbox format: /var/mail/web39_mick

All accounts were created using ISPconfig. I have never made any changes to ispconfig with the maildir or mbox. So my question is, how do I restore this so its readable by clients and the server thinks its mbox. Its still in one file, looks like an mbox file to me, so I am stuck....
Reply With Quote
Sponsored Links
  #2  
Old 22nd June 2006, 12:31
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,400
Thanks: 834
Thanked 5,493 Times in 4,324 Posts
Default

I guess the mbox file gots corrupted. I'am not sure if there is a solution to fix that, but maybe there are tools that are able to check for errors in the mbix format.

The quick and dirty solution is to rename the mbox file and let postfix create a new file when the next email arrives, but you will loose the emails stored in the mbox.

Generally ist better to youe Maildir with a Maildir capable pop3 daemon because mbox is known to get corruption problems from time to time.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 23rd June 2006, 00:00
adamluz adamluz is offline
Member
 
Join Date: Aug 2005
Location: Burbank, California
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to adamluz Send a message via MSN to adamluz
Default

My soltuion: (not the best but it works with out loosing e-mails)

I used webmin tools under the "Read User Mail" to solve the issue


1. Create a second user account similar to the one broken, in my case I had ispconfig create web39_mick2

2. Sign in to webmin and go to the Read User Mail tool. Go to the account having trouble and use the copy function to copy the e-mails to the new account. If you have multiple folders, you have to go folder by folder.

3. Delete the troubled account (remember, if you are using ISPconfig to delete the account, you need to remove that account from the recycle bin as well)

4. Re-create the troubled account

5. Reverse copy the files back to that first account and everything should work fine again.

6. Restart postfix, pop3 & imap, and ispconfig (don't know which one to restart so I restarted all of them to get e-mails to start working again.)

SIDE NOTE: E-Mails were bouncing when the account was down.
Reply With Quote
  #4  
Old 18th April 2007, 11:43
sharif4u sharif4u is offline
Junior Member
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

soltuion:
If you see below error message
File isn't in mbox format: /var/mail/web39_mick

Then open the file with any text editor like vi /var/mail/web39_mick
then Delete the garbage lines(one or two) at the beginning and save the file.

Restart the service and everything shloud be OK now.
Reply With Quote
  #5  
Old 29th May 2008, 00:47
djeshelman djeshelman is offline
Junior Member
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Had the same issue

I'm lucky I had only one user with this issue- a server with about 100 users was powered down 'uncomfortably' two days ago, so fortunately this is the only one I've seen so far. But, if it helps anyone else, here's what I did-

I have Webmin with Usermin installed, so there's an easier way to handle this:

Oddly enough, when I had this problem I could see my user's mail in Usermin or Webmin/Read User Mail, but not via POP/IMAP or Squirrelmail

So, logged in as the user in Usermin, I made a new folder, and copied all the mail to the new folder.

I then removed the 'inbox' directly out of the /var/mail directory, created a new file and did a chown to match the old one.

I restarted postfix and dovecot but I don't know if that will be necessary or not.

The process took mere moments once I figured out what to do.

good luck!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND broke adamluz Installation/Configuration 4 2nd June 2006 21:31
site - databases trueshanti Installation/Configuration 20 26th May 2006 01:28
Mysterious Install Problem tgansert Installation/Configuration 5 9th May 2006 15:35
setup fails on debian 3.1 dtrumbower Installation/Configuration 7 7th March 2006 13:42
Update to 2.2.0 question brianetilley Installation/Configuration 10 4th March 2006 17:02


All times are GMT +2. The time now is 14:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.