Results 1 to 2 of 2

Thread: Listing Domain Aliases

  1. #1
    Join Date
    Jan 2008
    Rep Power

    Question Listing Domain Aliases

    I know that there is no admin interface for creating / managing domain aliases.

    So to create a domain alias, I simply execute the command (as zimbra)
    zmprov cd zimbraDomainType alias zimbraMailCatchAllAddress zimbraMailCatchAllForwardingAddress
    This creates a domain alias that points to

    My question is: Is there any way to list all the domain aliases for a domain?
    Either via the command line or via soap api??

  2. #2
    Join Date
    Jan 2008
    Rep Power


    I found a way to do it via the command line.
    su zimbra;
    zmprov gad -v zimbraMailCatchAllForwardingAddress zimbraMailCatchAllAddress | grep -B 1 "zimbraMailCatchAllForwardingAddress:" | grep zimbraMailCatchAllAddress;
    Just replace with the domain that you want to check.
    This will give you all domains that are aliases for the domain that you specify 1 per line.

    Now, this actually goes through the entire list of domains on the server and simply parses them 1 by 1 to see if they are an alias (using some clever piped greps) so it is probably not the most efficient method - especially if you have a large number of domains and / or domain aliases on your box.

    I only have about 30 domains on my box and it takes a few seconds to give me my results.

    I would be interested to see if there is a more direct or efficient approach or better use of zmprov that will retrieve the list without having to list every single domain.

    Zimbra Employees??? Any suggestions?
    Last edited by ray.perea; 01-28-2008 at 03:18 AM.

Similar Threads

  1. Domain Aliases
    By wdimmit in forum Administrators
    Replies: 7
    Last Post: 12-27-2010, 11:41 PM
  2. "Away" message with Domain Aliases
    By itmike in forum Administrators
    Replies: 4
    Last Post: 06-06-2008, 07:26 AM
  3. [SOLVED] Remove main domain!
    By zibra in forum Administrators
    Replies: 11
    Last Post: 09-27-2007, 08:50 AM
  4. Bulk Remove domain aliases
    By kechols in forum Administrators
    Replies: 7
    Last Post: 09-05-2006, 08: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