I'm moving users from one NE instance running ZCS 7.1.4 to a new one running ZCS 7.1.4 using this method I got from Zimbra Support:
Export complete mailbox using "zmmailbox" command and import the same on other server.
a. Export account : zmmailbox -z -m email@example.com getRestURL "//?fmt=tgz" > /tmp/user-export.tgz
b. Copy/Rsync/scp the exported file to the remote server.
c. If the domain name is different, then create the domain or else no need to create the domain.
d. If the remote system is using the same ldap you need not create the user accounts or else you just need to create the user accounts on new server (we can use shell script for for creating bulk user accounts).
e. Locally on the remote server run the below command to import the account :
zmmailbox -z -m firstname.lastname@example.org postRestURL “//?fmt=tgz&resolve=skip” /tmp/user-export.tgz
f. If the import works then update the mailhost to point to the new host :
zmprov ma email@example.com zimbraMailHost 'newserver.com'
The process works fine until the last step:
zimbra@mail:~$ zmprov ma firstname.lastname@example.org zimbraMailHost 'newmail.example.com'
ERROR: service.INVALID_REQUEST (invalid request: specified zimbraMailHost does not correspond to a valid server service hostname: newmail.example.com)
The hostnames have been changed to protect the innocent but they do resolve and migrated users can send mail from their mailbox on the new server to their own mailbox (or each other's mailbox) on the new server.
What am I missing?