We assume that sometime we need to change zimbra server’s hostname, As server hostname by default integrated with many services such as LDAP, POSTFIX MTA etc.. So this tutorial will guide you to Change hostname on Zimbra server by using zmsetservername command.
First of all stop the zimbra service.
#su zimbra
#zmcontrol stop
#zmcontrol stop
Then perform the below to change server’s hostname.
#/opt/zimbra/libexec/zmsetservername -n newhostname
After that start zimbra service.
#zmcontrol start
That’s it.

We can also use zmhostname command to change host-name of zimbra mail server
Yes we can use aforesaid command.