I apologise in advance for this long post. This is more me kind of cataloguing exactly what we've tried and how it's going.
Now understanding that under /opt/zimbra/store we have the folder "0" where messages are being stored. Under this folder we have lots more numbered folders. These numbered folders are representative of each users group_ID within SQL.
Source:
Zimbra Server - Zimbra :: Wiki Quote:
Message Store
The Zimbra Message Store is where all email messages reside, including the message body and any file attachments. Messages are stored in MIME format.
The Message Store is located on each Zimbra server under
/opt/zimbra/store. Each mailbox has a dedicated directory named after its internal Zimbra mailbox ID.
|
I have managed to find out a users group_ID by following the below, found on the zimbra forums.
[SOLVED] Lost user email Quote:
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 @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="";
How do I use zmlmtpinject command?
Best regards,
Bibo
|
After I had found a users Group_ID i went into their folder store, located the newest email via incremental numbering and opened using gedit to verify the email.
This was the correct users folder.
Afterwards I used mysql to search the directories as follows:
Quote:
Log on as su
type su zimbra
type mysql
This will connect you with mysql, then continue as follows within sql
SHOW databases;
use mboxgroup"usergroupid"
SHOW tables;
SELECT * FROM mail_item;
|
This came up with only 27 rows, showing that the sql had only catalogued the new emails and folders.
I was then called by a technical advisor and he mentioned this wiki directory.
Network Edition Moving from Open Source to Network Edition ZCS - Zimbra :: Wiki
Which apparently tells you that you need to export data before running the upgrade. Which we had not done as had been led to believe that you just run the ./install.sh from the Network edition installer, which then gives you the option to upgrade.
Right now it seems that we are going to have to look into restoring the data.
Only problem is that after talking with tech support zimbra had an issue with no longer recognising the mysql command as a zimbra user. This has led us to a whole mess, and we are currently at the stage where we have uninstalled the network edition, re-installed the open source edition, copied back the contents of /opt/zimbra/ from a backup of the open source version, running /opt/zimbra/libexec/zmfixperms -extended and then zmcontrol start.
We have managed to get back our old sql database with mboxes, which can locate 607 rows for the same user that previously only had 27.
We cannot now access webadmin or webmail from the server, nor can we seem to get access to the server using telnet on port 143 (imap) or 110 (pop3) from any workstation.
I'm now kind of stuck.