Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-02-2009, 04:13 AM
Senior Member
 
Posts: 55
Exclamation [SOLVED] Lost user email

Hi all,

I had hardware problem. My mysql didnīt start and I saw in logfile that
my database was corrupted. I read the Mysql Crash Recovery Wiki (Mysql Crash Recovery - Zimbra :: Wiki) and
I could recover my database.

But one of my users have lost all email since nov 15 to now and she donīt receive new emails.

I would like to know how I can fix this.
My Zimbra verion is 5.0.19.

Best regards,
Bibo
Reply With Quote
  #2 (permalink)  
Old 12-02-2009, 05:03 AM
Outstanding Member
 
Posts: 594
Default

What error does it give while recovering mysql ? Do you have backups available with you ?
Reply With Quote
  #3 (permalink)  
Old 12-02-2009, 05:14 AM
Senior Member
 
Posts: 55
Default

Hi Veronica,

I have received many errors like this bellow with differents page number.

091130 16:11:24 InnoDB: Error: page 304 log sequence number 0 467750856
InnoDB: is in the future! Current system log sequence number 0 915381.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: MySQL :: MySQL 5.0 Reference Manual :: 13.2.6.2 Forcing InnoDB Recovery
InnoDB: for more information.

Maybe I have a old backup. Can the old backup help me?

Best regards,
Bibo


Quote:
Originally Posted by veronica View Post
What error does it give while recovering mysql ? Do you have backups available with you ?
Reply With Quote
  #4 (permalink)  
Old 12-02-2009, 06:12 AM
Outstanding Member
 
Posts: 594
Default

use last full backup to restore the mail. Then incremental backups and finally redologs. Make sure to restore to some other account name first say restore_user or else you will loose current mails. Then lmtpinject lost mails to the account
Reply With Quote
  #5 (permalink)  
Old 12-02-2009, 07:37 AM
Senior Member
 
Posts: 55
Default

Hi Veronica,

I couldnīt find this command. I am using the Open Source Edition.
When the user that lost email try to send a new email she received
an network error. Clicking the button "Show Details" we have this message.

method: SendMsgRequest
msg: system failure: writing open conversation association for hash Lm+bDViFtgEPkWd4dEVhf1U6c18
code; service.FAILURE
detail: soap:Receiver
trace: btpool0-32:1259765442615:b22da6bf1e362955
request: Body {
...
}

Best regards,
Bibo

Quote:
Originally Posted by veronica View Post
use last full backup to restore the mail. Then incremental backups and finally redologs. Make sure to restore to some other account name first say restore_user or else you will loose current mails. Then lmtpinject lost mails to the account
Reply With Quote
  #6 (permalink)  
Old 12-02-2009, 08:53 AM
Senior Member
 
Posts: 55
Default

Hi,

I found the /opt/zimbra/bin/zmlmtpinject command.
I discovered for this user that the mboxgroup is 10.

My procedure to find mboxgroup.

1) Get the user ID of the account in question.
su - zimbra
zmprov ga <account>@domain.com zimbraId

1) Login to mysql on the zimbra host
mysql

2) Change to zimbra database
use zimbra;

3) Find the group ID for the account
select group_id from mailbox where account_id="<zimbraId>";

How do I use zmlmtpinject command?

Best regards,
Bibo
Reply With Quote
  #7 (permalink)  
Old 12-02-2009, 08:59 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Quote:
Originally Posted by bibo View Post
How do I use zmlmtpinject command?
For use examples please search the forums and wiki for the word 'zmlmtpinject' or even:

Code:
zmlmtpinject --help
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 12-02-2009, 09:54 AM
Senior Member
 
Posts: 55
Default

Hi,

I donīt understand how zmlmtpinject command will help in my problem.

My problem is one user has lost email since nov 15 to now. I think that all emails are stored, but they arenīt index. She canīt send email too.

How to force to zimbra verify all email stored and reindex them.
I tried reindex button in the GUI Admin for her but it didnīt work.

best regards,
Bibo
Reply With Quote
  #9 (permalink)  
Old 12-02-2009, 12:32 PM
Moderator
 
Posts: 1,147
Default

You could try exporting the account using zmmailbox, renaming it, creating a new account with the old name, and importing the account. This should fix the issues of not being able to receive mail. Then use zmlmtpinject to add any missing messages that are in the store, but don't show up in the account to the account.
Reply With Quote
  #10 (permalink)  
Old 12-03-2009, 05:31 AM
Senior Member
 
Posts: 55
Default

Hi,

I tried to inject one message by zmlmtpinject command and it worked.
I used this command bellow.

$ zmlmtpinject -r user@domain.com -s \
user-old@domain.com /opt/zimbra/store/0/10/msg/11/45325-52305.msg

But this user has many folders. If I use the command bellow all the messages will be in the inbox folder? or the command will create all the folders?

$ zmlmtpinject -r user@domain.com -s user-old@domain.com \
-d /opt/zimbra/store/0/10

Best regards,
Bibo
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.