Author Topic: [Solved] Migrate old server to zentyal  (Read 1954 times)

Miko10

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +2/-0
    • View Profile
[Solved] Migrate old server to zentyal
« on: June 04, 2014, 08:11:42 am »
Hello guys.
I'm planning migrate my old mail server to zentyal. Old server runs on ubuntu with postfix and egroupware. It woks as mail server for my employees, so it stores all my company mails. Postfix is configured to use maildir, so all messages are in home folders of current user.

Is there a good way how to backup mails, reinstall server to zentyal and than import messages to users mailboxes? I want use openchange in zentyal.

Thanks for any advice.
« Last Edit: June 04, 2014, 04:56:37 pm by Miko10 »

dave2318

  • Zen Apprentice
  • *
  • Posts: 48
  • Karma: +3/-0
    • View Profile
Re: Migrate old server to zentyal
« Reply #1 on: June 04, 2014, 11:56:20 am »
Hi there,
I found that in my Zentyal 3.4 openchange server all mail was stored in /var/vmail/domainname. On my old postfix server all email was stored in the /home/username/mail folder.
to migrate i copied all the home folders to my PC
I wrote a quick vbs script to change the folder structure to the same layout as the zentyal structure then uploaded again to the new server.
Once complete i had to chown -R ebox:ebox the /var/vmail/domainname folder.
All email migrated, just one downside, all email was unread.

changes i had to make to the structure:-
Mail was stored in username/mail had to move all to /username
sent folder was Sent had to change to .Sent
drafts folder was Drafts had to change to .Drafts
Spam folder was Spam had to change to .Spam
Trash folder was Trash had to change to .Trash
had to delete any other folders then move the remaining folders out of /username/mail/foldername to /username/foldername

Miko10

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +2/-0
    • View Profile
Re: Migrate old server to zentyal
« Reply #2 on: June 04, 2014, 01:08:25 pm »
Thanks for reply, i will try.

Miko10

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +2/-0
    • View Profile
Re: Migrate old server to zentyal
« Reply #3 on: June 04, 2014, 02:37:22 pm »
Hi,
I copy whole folder /user/Maildir to /var/vmail/domain/user. Messages in main folder /cur are OK. But from other folders are missing. I can see in openchange webmail Archive 2013 folder, bud is empty. Sent too... When I look at filesystem, messages are there.
I attached screenshots. Any advice?

Thanks.

Miko10

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +2/-0
    • View Profile
Re: Migrate old server to zentyal
« Reply #4 on: June 04, 2014, 04:55:40 pm »
So when I manualy create subfolders in webmail and than copy only cur folder, than it appears OK.

Thanks dave2318 for advice.
« Last Edit: June 04, 2014, 05:06:32 pm by Miko10 »