Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-25-2009, 05:33 AM
Moderator
 
Posts: 2,207
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?
Reply With Quote
  #2 (permalink)  
Old 03-25-2009, 07:10 AM
Moderator
 
Posts: 2,207
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 07:24 AM..
Reply With Quote
  #3 (permalink)  
Old 03-25-2009, 08:49 AM
Moderator
 
Posts: 2,207
Default

The above command does not work fully.

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.