Few days ago, i am migrating Zimbra mail server from OSE version to NE version. The migrating process working fine from migrating Account, Password, Alias Account, Distribution List, Mailboxes and etc. All account after migration still using default value on new Zimbra NE. My client want the new Zimbra NE using value/parameter like Class Of Services on old Zimbra. Create the COS on new Zimbra with the same name/value/features like COS on old Zimbra. After created, the new COS applied to all account with the following command.
[code lang=’bash’]
zmprov sac accountname cosname
[/code]
example
[code lang=’bash’]
zmprov sac [email protected] staff
[/code]
Note :
The above command will modify COS for [email protected] account with COS name staff. If you want to set COS for all account, you can make a script as below
[code lang=’bash’]
vi /srv/set-cos.sh
[/code]
Fill with the following line
[code lang=’bash’]
#!/bin/bash
clear
rm /srv/modify-cos.zmp
echo “Retrieve zimbra user name…”
USERS=`su – zimbra -c ‘zmprov -l gaa | sort’`;
for ACCOUNT in $USERS; do
echo “Modify COS for account $ACCOUNT”
echo “sac $ACCOUNT staff” >> /srv/modify-cos.zmp
done
[/code]
Give execute access and run the above script
[code lang=’bash’]
chmod +x /srv/set-cos.sh
sh /srv/set-cos.sh
[/code]
The result of the above script is file with name modify-cos.zmp which is located in /srv/ folder. Execute it file with the following command as user Zimbra
[code lang=’bash’]
su – zimbra
zmprov < /srv/modify-cos.zmp
[/code]
Good luck and hopefully useful :D
how to migrate COS in zimbra to Zimbra.
Hi Rajkumar,
You can use ZeXtras to do that