• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1253
  • Last Modified:

zimbra mail server on linux

Dear Experts:

As of now we have outsourced the mail services but we are using the linux box (rhel5) to fetch the messages from the mail server of the outsourced company to our lan. Now our management has decided to manage the mail server in the lan using the suse enterprise linux with zimbra mail, zcs (zimbra collobaration server 7)
Please help me with the following doubts
1.how to backup  and restore the username and password details of each user to zimbra mail server ( how to migrate user login information such as username and password to the new zimbra collobration server 7)
2. how to back up and restore messages of all the user accounts to the new zimbra mail server.

Please suggest. Thanks in advance.
0
D_wathi
Asked:
D_wathi
  • 5
  • 4
1 Solution
 
perfectpcCommented:
Backup the whole opt/zimbra folder and restore on the new office server. Check out the wiki
0
 
d-it-lxCommented:
zimbra over rhel5 it's different that zimbra over suse. You can't copy /opt/zimbra between these servers.

You must to backup every account using REST commands:

Export an account:

/opt/zimbra/bin/zmmailbox -z -m user@domain.com getRestURL “//?fmt=tgz” > /tmp/account.tgz


Next transfer via rsync, scp, sftp, etc. You’ll also need to create the account on the 2nd server if the desired account doesn’t exist at your destination server yet.

Then import with:
/opt/zimbra/bin/zmmailbox -z -m user@domain.com postRestURL “//?fmt=tgz&resolve=reset” /tmp/account.tgz


References:
http://blog.zimbra.com/blog/archives/2008/09/zcs-to-zcs-migrations.html
0
 
D_wathiAuthor Commented:
Sir, Thanks for the reply. my scenario is existing mail  server is non zimbra and want to migrate to the new zimbra mail server ( zcs 7).

To be more clear, As of now our mail services are out sourced to the web hosting company that means we are using their mail server but we have setup a linux server redhat enterprise linux 5 in our lan (office) which is configured to fetch the messages from the web hosting mail server, now i have procured a new server going to install the suse enterprise linux or rhel5 and install the zimbra (zcs 7) and looking for how to migrate the email accounts and messages to this new zimbra mail server. Please help me in this. Thanks in advance.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
d-it-lxCommented:
Migrating information from other mail system, you can use "imapsync"
References:
http://wiki.zimbra.com/wiki/Guide_to_imapsync
0
 
D_wathiAuthor Commented:
Sir, thank you very much.  my existing mail server uses openldap for the user accounts, Please suggest me this case can i use imapsync for migration. Thanks in advance.
0
 
d-it-lxCommented:
You can use this openldap for user authentication.
Install zimbra, create the users account, and connect zimbra to this openldap for user authenticaqtion.

References for user migration:
http://wiki.zimbra.com/wiki/User_Migration_Articles
0
 
D_wathiAuthor Commented:
Sir, thanks for the reply. in my scenario existing mail server is of non zimbra mail server using the openldap for the user login information. Now i have purchased new server in this i have to install zimbra open source edition please guide me how to go about .
1. first i should install zimbra on new server .
2. how to take bakup of useraccounts (login informations) from existing mail server to the newly installed zimbra server

Please help me.
0
 
d-it-lxCommented:
1. Install zimbra on new server (http://diggleby.com/how-to-install-zimbra-on-centos-5-x-linux-server/)
2. Get the useraccounts information from openldap.
   For example (in openldap server):    ldapsearch -x uid
3. Create the user accounts in zimbra server
4. Connect your zimbra server to authenticate with ldap server
0
 
D_wathiAuthor Commented:
Sir, iam really thankful for your help. problem is i have to unistall the existing mail server and give this server for different project as they will install windows on it, for setting up zimbra mail server i have placed a order for new server, iam looking for the user login information to take backup from the existing mail server, is the below correct

1. first take the backup of existing openldap users ( mail account users) from the existing mail server.
2.  a)install rhel/centos and openldap in the new server and import the backed up openldap users login onto the new server.
OR
b)Install zimbra and then import the openldap users login onto the new server zimbra openldap.

Please suggest me in the above also whether it is a or b. Also please please suggest me the steps to do the a or b.
Thanks in advance.



0
 
d-it-lxCommented:
a and b are solutions.
Maybe, "A" option  is the easiest solution for migrate user information (login. password, cn, ....).

If you choose "B" option, you must to create manually the user accounts and all users information into zimbra.

For example:
A) if you migrate all openldap users into a new openldap server, just install openldap, migrate ldap information, install zimbra and create user accounts:

zmprov cd domain.com
zmprov ca user@domain.com pass  

After that, into Zimbra Webmail Administrator, connect your domain and GAL domain to the openldap server in the same machine.

B) After install zimbra, You must create user accounts with all information.
For example:

zmprov cd domain.com
zmprov ca user@domain.com pass name surname address mobile phone ......




-----------------
Consider that zimbra has an openldap server, but you can't migrate from other openldap to zimbra openldap because this openldap server have zimbra schemas and own objects.
In this case is more easy previously install an openldap server, and after that install zimbra and coonect the domain and GAL domain to this openldap server in the same machine.

0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now