Results 1 to 10 of 10

Thread: [SOLVED] Removal of alias domain and masquerading

  1. #1
    gurdeepsv is offline Intermediate Member
    Join Date
    Sep 2009
    Posts
    23
    Rep Power
    5

    Default [SOLVED] Removal of alias domain and masquerading

    Hi,

    I wish to remove the domain alias and domain masquerading which I had set with following commands:

    zmprov createAliasDomain aliasdomain.com domain.com zimbraMailCatchAllForwardingAddress @domain.com

    zmprov md domain.com zimbraMailCatchAllAddress @domain.com zimbraMailCatchAllCanonicalAddress @aliasdomain.com

    Kindly guide me to do so safely

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Code:
    zmprov createAliasDomain aliasdomain.com domain.com -zimbraMailCatchAllForwardingAddress @domain.com
    
    zmprov md domain.com zimbraMailCatchAllAddress @domain.com -zimbraMailCatchAllCanonicalAddress @aliasdomain.com

  3. #3
    gurdeepsv is offline Intermediate Member
    Join Date
    Sep 2009
    Posts
    23
    Rep Power
    5

    Default

    Quote Originally Posted by uxbod View Post
    Code:
    zmprov createAliasDomain aliasdomain.com domain.com -zimbraMailCatchAllForwardingAddress @domain.com
    
    zmprov md domain.com zimbraMailCatchAllAddress @domain.com -zimbraMailCatchAllCanonicalAddress @aliasdomain.com
    Hi,

    It gives the following error:
    ERROR: account.DOMAIN_EXISTS (domain already exists: aliasdomain.com)

  4. #4
    gurdeepsv is offline Intermediate Member
    Join Date
    Sep 2009
    Posts
    23
    Rep Power
    5

    Default

    Quote Originally Posted by gurdeepsv View Post
    Hi,

    It gives the following error:
    ERROR: account.DOMAIN_EXISTS (domain already exists: aliasdomain.com)
    Hi,

    zmprov help domain gives the following result.
    I am looking for removing the alias domain, but there seems to be no option for that. Please help.


    [zimbra@nirvana ~]$ zmprov help domain

    countAccount(cta) {domain|id}

    createAliasDomain(cad) {alias-domain-name} {local-domain-name|id} [attr1 value1 [attr2 value2...]]

    createDomain(cd) {domain} [attr1 value1 [attr2 value2...]]

    deleteDomain(dd) {domain|id}

    getAllDomains(gad) [-v] [-e] [attr1 [attr2...]]

    getDomain(gd) [-e] {domain|id} [attr1 [attr2...]]

    getDomainInfo(gdi) name|id|virtualHostname {value} [attr1 [attr2...]]

    modifyDomain(md) {domain|id} [attr1 value1 [attr2 value2...]]

    renameDomain(rd) {domain|id} {newDomain}
    -- NOTE: renameDomain can only be used with "zmprov -l/--ldap"

  5. #5
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

  6. #6
    gurdeepsv is offline Intermediate Member
    Join Date
    Sep 2009
    Posts
    23
    Rep Power
    5

    Default

    Quote Originally Posted by uxbod View Post
    Hi,

    I referred this link for setting up the alias domain and masquerading.
    But now I want to romove it urgently, which the link "Managing Domains" does not talk about. Kindly help.

    Waiting for your reply.

    Regards

  7. #7
    gurdeepsv is offline Intermediate Member
    Join Date
    Sep 2009
    Posts
    23
    Rep Power
    5

    Default

    Quote Originally Posted by gurdeepsv View Post
    Hi,

    I referred this link for setting up the alias domain and masquerading.
    But now I want to romove it urgently, which the link "Managing Domains" does not talk about. Kindly help.

    Waiting for your reply.

    Regards
    If I use "" instead of aliasdomain.com to disable alias domain it stil lgives an error.

    zmprov createAliasDomain "" domain.com -zimbraMailCatchAllForwardingAddress @domain.com
    ERROR: service.INVALID_REQUEST (invalid request: invalid domain name)

  8. #8
    gurdeepsv is offline Intermediate Member
    Join Date
    Sep 2009
    Posts
    23
    Rep Power
    5

    Default

    Masquerading disabled with the following command:
    zmprov md domain.com zimbraMailCatchAllAddress @domain.com -zimbraMailCatchAllCanonicalAddress @aliasdomain.com

    "-" works with zmprov md commands

    Still need help to reverse the following command of domain alias itself:

    zmprov createAliasDomain aliasdomain.com domain.com zimbraMailCatchAllForwardingAddress @domain.com

  9. #9
    gurdeepsv is offline Intermediate Member
    Join Date
    Sep 2009
    Posts
    23
    Rep Power
    5

    Default Solved

    Use the following command to get zimbraId

    /opt/zimbra/openldap-2.3.43.8z/sbin/slapcat -f /opt/zimbra/conf/slapd.conf > /tmp/output

    Find out zimbraId for the alias domain. Make sure it is not zimbraDomainAliasTargetId which looks similar.

    zimbraId: d15b1663-c7c4-485d-8bd7-21427b985a48

    Use zmprov dd d15b1663-c7c4-485d-8bd7-21427b985a48
    to delete the alias domain.

    Masquerading deleted in one of the post above.

  10. #10
    sangamc is offline Special Member
    Join Date
    Aug 2009
    Location
    florida
    Posts
    129
    Rep Power
    5

    Default

    Quote Originally Posted by gurdeepsv View Post
    Use the following command to get zimbraId

    /opt/zimbra/openldap-2.3.43.8z/sbin/slapcat -f /opt/zimbra/conf/slapd.conf > /tmp/output
    What is the updated syntax of this command? there is no slapd.conf in the /opt/zimbra/conf directory anymore.

    thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Domain Masquerading
    By tirpitz in forum Installation
    Replies: 1
    Last Post: 11-10-2009, 11:53 AM
  2. Problems with Domain Masquerading and internal delivery
    By sirio81 in forum Administrators
    Replies: 1
    Last Post: 06-22-2009, 11:27 PM
  3. [SOLVED] Domain Masquerading
    By emmaylots in forum Administrators
    Replies: 3
    Last Post: 07-18-2008, 01:38 AM
  4. Domain Masquerading and Zimbra
    By sparticle in forum Installation
    Replies: 1
    Last Post: 08-11-2006, 09:46 AM
  5. Domain Masquerading using Zimbra to replace MDAEMON server
    By sparticle in forum Administrators
    Replies: 2
    Last Post: 08-04-2006, 10:38 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
  •