Login to Your Zimbra Server with root login and password .
Type following commands :-
[root@mail]# su – zimbra
This Command will change the Console name to
[zimbra@mail ~]$
Then Type Following command.
[zimbra@mail ~]$ zmprov -l renamedomain olddomain.com newdomain.com
This has been tested against Zimbra 6, 7 and 8.
Reference: https://communities.vmware.com/thread/459923