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

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 05-08-2007, 06:02 AM
Special Member
 
Posts: 163
Default Migration from sendmail dovecot on Redhat ES4

Here's a basic procedure I was planning to use to migrate from Redhat 4 es sendmail with dovecot to Zimbra Open source....

a Backup to tape...(duh).
1 Backup to disk for useability.
2 Cat /var/spool/mail/$username > /home/$username/mail/old_inbox.
3 Make a tar file of all users /mail folder in their home dirs.
4 Stage new server.
5 Create users.
6 find out where the h&(&* the home dirs are and see if my /home/$username/mail/ files are in the proper format...
7. move and chane permissions of files (mail folders)...
8 Test
9 Deploy
Are there better tools for this?
Anyone do a sililar migration?
Reply With Quote
  #2 (permalink)  
Old 05-08-2007, 07:59 AM
Special Member & Volunteer
 
Posts: 155
Default

Quote:
Originally Posted by timothyalangorman View Post
Here's a basic procedure I was planning to use to migrate from Redhat 4 es sendmail with dovecot to Zimbra Open source....

...

6 find out where the h&(&* the home dirs are and see if my /home/$username/mail/ files are in the proper format...
7. move and chane permissions of files (mail folders)...
Well, I don't think you'll find that the mail format is similar enough to be able to do things that way. Zimbra stores all of it's email in it's own dir, under /opt/zimbra. It doesn't use the directories of your system accounts -- and in fact Zimbra users don't need to have system accounts.

What I might recommend is this --

Setup your new server, with Zimbra on it. Create the email accounts you want in Zimbra. Then, use a program such as imapsync to pull your email from your existing server over to Zimbra on the new server.

Good luck!
-Eric
Reply With Quote
  #3 (permalink)  
Old 05-11-2007, 10:48 AM
Special Member
 
Posts: 163
Default What if my existing server is the same IP and name?

Here's aplan.. can I simply

1 change the ip and name of the oldserver.
2 create a pop account in the clients zimbra profile (to connect to the old server)
3 drag and drop the folders?

If I'm only migrating 15 or so accounts that wouldn't be bad....
Reply With Quote
  #4 (permalink)  
Old 05-11-2007, 11:40 AM
Advanced Member
 
Posts: 215
Default

Quote:
Originally Posted by andreychek View Post
Well, I don't think you'll find that the mail format is similar enough to be able to do things that way. Zimbra stores all of it's email in it's own dir, under /opt/zimbra. It doesn't use the directories of your system accounts -- and in fact Zimbra users don't need to have system accounts.

What I might recommend is this --

Setup your new server, with Zimbra on it. Create the email accounts you want in Zimbra. Then, use a program such as imapsync to pull your email from your existing server over to Zimbra on the new server.

Good luck!
-Eric
I'm going to second this. I went from a courier IMAP/Postfix/ASSP/Squirellmail set up to Zimbra in pretty much the same steps..

1. Install and setup ZCS and add the new host as an MX for your domain in DNS.
2. Create your user accounts and aliases in ZCS as a mirror of accounts in your existing environment
3. Get a secondary MXin the mean time if you want to handle your downtime email (I used a free service I found online to host a secondary. I listed my old server as 10 the free serivce as 15 and the new Zimbra machine as 20)
4. Notify users of downtime and copy your old /etc/shadow file as a backup, then create a new single password for every system account on your old system and put it in the password field for all users. This simplifies having to specify a ton of passwords when using imapsync
5. Use imapsync to sync all of your accounts first disabling you mail services (this is where the secondary MX came in handy as it took a while)
6. Remove your old primary MX record in DNS and make your new machine the primary.
7. Test and verify

YMMV and I may have missed a step or two but this was just for an example. I was able to change over with no issues save one ... I changed an account name and forgot to include a single alias for it ... resolved in about 2 minutes

Other then that, not a missed email and the only thing different was the web interface address which I eventually changed to the old name after I had ZCS running for a few days.

The only thing that "might" suck is recreating all the accounts if you have a LOT.

Hope _something_ out of here was useful

Regards,
Lonny
Reply With Quote
  #5 (permalink)  
Old 05-11-2007, 11:44 AM
Moderator
 
Posts: 6,237
Default

Quote:
Originally Posted by timothyalangorman View Post
2 create a pop account in the clients zimbra profile (to connect to the old server)
3 drag and drop the folders?
If I'm only migrating 15 or so accounts that wouldn't be bad....
Don't use pop!
If your adverse to imapsync as you sound like you are (been recomended a bunch):
http://wiki.zimbra.com/index.php?tit...nded_Method.29
you can always open the accouts on both ends in thunderbird-THEN drag folders.
Reply With Quote
  #6 (permalink)  
Old 05-21-2007, 10:07 AM
Special Member
 
Posts: 163
Red face My final resolve...

++++++++++++++++++++++++++++++++++++++++++++++++++ ++
Here's what I did... Mind you out smaller sister company is only a 15-25 user network....
On out main company (200 or so users) I'll user imapsync...
++++++++++++++++++++++++++++++++++++++++++++++++++ ++

They use mozilla tb.

pre > I added the accounts to the new server with no network installed.
(the existing email server still in 100% operation)


1 I renamed and changed the ip of the sendmail server.
2 networked the new server.
3 I changed the old tb account to sendmails new ip. and renamed it "old server"
4 I added a new account for the new server.
5 Drag and drop folders.
6 delete old account

Done.
No email lost. No downtime.

Last edited by timothyalangorman; 05-21-2007 at 10:10 AM..
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.