Jump to content

Tipl-toshniwal/change-default-domain-zimbra

From TetraWiki

Setting a default domain name[edit]

To set a default domain name on a one domain zimbra install, you can run the following command as the zimbra user from the zimbra server machine command line.

su - zimbra
zmprov mcf zimbraDefaultDomainName mycompany.com

EX: zmprov mcf zimbraDefaultDomainName tipl.com     #Done for Tipl-Thoshniwal 

Additional Information

If you want to change just the @server.domain.com part of the email address you want the renameDomain command.

zmprov -l renameDomain currentDomain.com newDomain.com

Afterwards correct things like the spam/ham etc if that was your only domain and the accounts got renamed:

zmprov md domain.com zimbraAttributeToChange newvalue

Another alternative is just creating domain.com (you can have unlimited domains) and move users to it (leaving the domain server.domain.com alone).

zmprov renameAccount user@server.domain.com user@domain.com