1

Topic: Missing users and emails

Hi all

We have a client who crashed his hdd.

We have managed to recover the data from the drive and copied
the mail onto the new drive(/var/vmail)

We have run the following commands

cp -R kamal.com /var/vmail

chown -Rv vmail:vmail kamal.com

chmod 700 kamal.com

Their are no users when i open roundcube nor mail when I add users

Any advice would help

Thank You

Regards

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Missing users and emails

tim wrote:

Their are no users when i open roundcube nor mail when I add users

Did you restore mail accounts?

3

Re: Missing users and emails

Hi

Had a  sector by sector recovery of the hdd, so therefore no sqldump.

Any other ideas

Regards

4

Re: Missing users and emails

You have to check mail accounts first. For example, if you store mail accounts in MySQL database, then connect to MySQL server and check accounts.

If there's no accounts at all, you should consider restoring from backup copies or creating new accounts from scratch.

5

Re: Missing users and emails

How do I import the mail if i create accounts from scratch

6

Re: Missing users and emails

While creating new mail accounts, it will generate maildir path of new accounts in MySQL (or OpenLDAP), please make sure your mailboxes (mail data) are stored in the same path.

For example, if you create new mail account "tim@example.com", it will generate maildir path like below:

/var/vmail/vmail1/example.com/t/i/i/tim-20120110165209

The actual mailbox will be stored under:

/var/vmail/vmail1/example.com/t/i/i/tim-20120110165209/Maildir/
/var/vmail/vmail1/example.com/t/i/i/tim-20120110165209/Maildir/cur/
/var/vmail/vmail1/example.com/t/i/i/tim-20120110165209/Maildir/tmp/
/var/vmail/vmail1/example.com/t/i/i/tim-20120110165209/Maildir/new/
...