Results 1 to 3 of 3

Thread: Domain alias with zmprov

  1. #1
    Klug's Avatar
    Klug is offline Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,292
    Rep Power
    13

    Default Domain alias with zmprov

    Hi all.

    In 5.0.14 we're supposed to have a new zmprov command that allows us to create "nicely" (single operation) a domain alias.

    As we've just upgraded to 5.0.15 NE on RHEL4, I wanted to try.

    The result is not working at all (I want domain.fr to be an alias of domain.com):
    Code:
    [zimbra@zimbra ~]$ zmprov cad domain.fr domain.com
    
    zmprov [args] [cmd] [cmd-args ...]
    
      -h/--help                             display usage
      -f/--file                             use file as input stream
      -s/--server   {host}[:{port}]         server hostname and optional port
      -l/--ldap                             provision via LDAP instead of SOAP
      -L/--logpropertyfile                  log4j property file, valid only with -l
      -a/--account  {name}                  account name to auth as
      -p/--password {pass}                  password for account
      -P/--passfile {file}                  read password from file
      -z/--zadmin                           use zimbra admin name/password from localconfig for admin/password
      -y/--authtoken {authtoken}            use auth token string(has to be in JSON format) from command line
      -Y/--authtokenfile {authtoken file}   use auth token string(has to be in JSON format) from command line
      -v/--verbose                          verbose mode (dumps full exception stack trace)
      -d/--debug                            debug mode (dumps SOAP messages)
    
     zmprov is used for provisioning. Try:
    
         zmprov help account         help on account-related commands
         zmprov help calendar        help on calendar resource-related commands
         zmprov help commands        help on all commands
         zmprov help config          help on config-related commands
         zmprov help cos             help on COS-related commands
         zmprov help domain          help on domain-related commands
         zmprov help list            help on distribution list-related commands
         zmprov help misc            help on misc commands
         zmprov help mailbox         help on mailbox-related commands
         zmprov help notebook        help on notebook-related commands
         zmprov help search          help on search-related commands
         zmprov help server          help on server-related commands
         zmprov help freebusy        help on free/busy-related commands
    Considering Bug 35574 – create command specifically to create an alias domain, the createAliasDomain in zmprov is supposed to be an easy way of creating the alias domain, then change zimbraDomainType then set zimbraDomainAliasTargetId.

    So I tried this by hand:
    Code:
    [zimbra@zimbra ~]$ zmprov cd domain.fr
    51fc62b3-d089-4e3b-b4d7-96d16b7bf4e4
    [zimbra@zimbra ~]$ zmprov md domain.fr zimbraDomainType alias
    ERROR: service.INVALID_REQUEST (invalid request: zimbraDomainType is immutable)
    Am I the only one with this issue?

    Did this really got included in 5.0.14?

  2. #2
    Klug's Avatar
    Klug is offline Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,292
    Rep Power
    13

    Default

    Me again.

    Thanks to Bug 33720 – Add zimbraAliasTargetId of real domain to alias domain and allow auth with alias domain addresses I found the correct "full" zmprov command:

    Code:
    [zimbra@zimbra ~]$ zmprov cd domain.fr zimbraDomainType alias zimbraDomainAliasTargetId domain.com zimbraMailCatchAllAddress @domain.fr zimbraMailCatchAllForwardingAddress @domain.com
    51fc62b3-d089-4e3b-b4d7-96d16b7bf4e4
    [zimbra@zimbra ~]$
    Last edited by Klug; 03-25-2009 at 06:24 AM.

  3. #3
    Klug's Avatar
    Klug is offline Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,292
    Rep Power
    13

    Default

    The above command does not work fully.

    zimbraDomainAliasTargetId _needs_ to be used with the "domain ID", not "domain name".

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Auto-reply not working with a domain alias
    By SuperBeaker in forum Administrators
    Replies: 5
    Last Post: 06-30-2010, 01:39 PM
  2. Replies: 7
    Last Post: 04-27-2009, 02:49 AM
  3. Moving to different server
    By AaronW1000 in forum Installation
    Replies: 2
    Last Post: 07-03-2008, 07:39 AM
  4. Replies: 20
    Last Post: 03-18-2008, 05:37 AM
  5. Domain Alias / User Alias problem after upgrading.
    By Bingo in forum Administrators
    Replies: 1
    Last Post: 04-20-2007, 03:39 AM

Posting Permissions

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