Results 1 to 6 of 6

Thread: Migration from sendmail dovecot on Redhat ES4

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    173
    Rep Power
    8

    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?

  2. #2
    Join Date
    Oct 2005
    Location
    Harrisburg, Pennsylvania
    Posts
    155
    Rep Power
    10

    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

  3. #3
    Join Date
    May 2007
    Posts
    173
    Rep Power
    8

    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....

  4. #4
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    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.

  5. #5
    Join Date
    May 2007
    Posts
    173
    Rep Power
    8

    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.

  6. #6
    Join Date
    Mar 2007
    Location
    Regina, Sask.
    Posts
    215
    Rep Power
    8

    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

Similar Threads

  1. Migration from Sendmail
    By clawes in forum Installation
    Replies: 3
    Last Post: 02-20-2006, 06:31 PM
  2. Small pilot fetchmail / sendmail migration?
    By ljfrench in forum Administrators
    Replies: 2
    Last Post: 10-01-2005, 12:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •