Results 1 to 8 of 8

Thread: ERROR: service.INVALID_REQUEST (invalid request: specified zimbraMailHost does not co

  1. #1
    addihetja is offline Intermediate Member
    Join Date
    Jul 2006
    Location
    Iceland
    Posts
    23
    Rep Power
    9

    Default ERROR: service.INVALID_REQUEST (invalid request: specified zimbraMailHost does not co

    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 user@domain.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 user@domain.com 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 user@domain.com zimbraMailHost 'newserver.com'

    The process works fine until the last step:
    zimbra@mail:~$ zmprov ma user@example.com 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?

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,504
    Rep Power
    57

    Default

    Quote Originally Posted by addihetja View Post
    The process works fine until the last step:
    zimbra@mail:~$ zmprov ma user@example.com zimbraMailHost 'newmail.example.com'
    ERROR: service.INVALID_REQUEST (invalid request: specified zimbraMailHost does not correspond to a valid server service hostname: newmail.example.com)
    That error usually means exactly what it says. You can verify the settings by going to the Split DNS article and running all the commands in the 'Verify...' section of that article - details of the format of the config files and expected output are shown for verification.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    addihetja is offline Intermediate Member
    Join Date
    Jul 2006
    Location
    Iceland
    Posts
    23
    Rep Power
    9

    Default

    The test seems OK to me, though:

    [root@newmail ~]# cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    192.168.80.1 mail.example.com mail
    192.168.80.5 newmail.example.com newmail
    127.0.0.1 localhost.localdomain localhost
    ::1 localhost6.localdomain6 localhost6
    [root@newmail ~]# hostname
    newmail
    [root@newmail ~]# host $(hostname)
    newmail.example.com has address 192.168.80.5
    [root@newmail ~]#

    ---
    root@mail:~# cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    192.168.80.1 mail.example.com mail
    192.168.80.5 newmail.example.com newmail
    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    root@mail:~# hostname
    mail
    root@mail:~# host $(hostname)
    mail.example.com has address 192.168.80.1

    Both servers show up when I dig -t mx example.com; mail with priority 10 and newmail with 20. Could the ipv6 stuff be throwing zmprov off?
    Last edited by addihetja; 02-11-2012 at 05:05 PM.

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,504
    Rep Power
    57

    Default

    Quote Originally Posted by addihetja View Post
    The test seems OK to me, though:
    Unfortunately the hosts file is not correct, it should only contain the loopback and the line that has the IP address of server on which ZCS is installed - nothing else.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    addihetja is offline Intermediate Member
    Join Date
    Jul 2006
    Location
    Iceland
    Posts
    23
    Rep Power
    9

    Default

    Should it be:
    127.0.0.1 localhost.localdomain localhost
    192.168.80.1 mail.example.com mail

    or:

    127.0.0.1 localhost.localdomain localhost
    192.168.80.1 mail.example.com mail
    192.168.80.5 newmail.example.com newmail

  6. #6
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,504
    Rep Power
    57

    Default

    Quote Originally Posted by addihetja View Post
    Should it be:
    That would depend on which host this /etc/hosts file is located. You're talking about two different servers, aren't you? In your examples above, the first one is the correct format but obviously the second line in there would change depending on the server IP & hostname.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    addihetja is offline Intermediate Member
    Join Date
    Jul 2006
    Location
    Iceland
    Posts
    23
    Rep Power
    9

    Default

    Removing the IPv6 lines gives me the same result. I have tried both including the 192.168.80.5 line and without, restarting zimbra in between.

  8. #8
    ccelis5215 is offline Elite Member
    Join Date
    Jun 2011
    Location
    Caracas Venezuela
    Posts
    461
    Rep Power
    4

    Default

    In newmail server
    [root@newmail ~]# cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    192.168.80.5 newmail.example.com newmail

    In mail server
    root@mail:~# cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    192.168.80.1 mail.example.com mail

    ------

    Your /etc/conf files in every server look this?
    Last edited by ccelis5215; 02-12-2012 at 04:57 PM. Reason: typo

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 03-28-2008, 02:24 AM
  2. Problem with Mail Server - Need help!
    By joeleo in forum Installation
    Replies: 2
    Last Post: 03-04-2008, 12:03 PM
  3. Replies: 0
    Last Post: 01-16-2008, 02:45 PM
  4. An invalid request was made
    By deepblue in forum Administrators
    Replies: 5
    Last Post: 01-25-2007, 03:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •