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 02-28-2010, 04:17 AM
Intermediate Member
 
Posts: 23
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
Reply With Quote
  #2 (permalink)  
Old 02-28-2010, 09:39 AM
Moderator
 
Posts: 7,928
Default

Code:
zmprov createAliasDomain aliasdomain.com domain.com -zimbraMailCatchAllForwardingAddress @domain.com

zmprov md domain.com zimbraMailCatchAllAddress @domain.com -zimbraMailCatchAllCanonicalAddress @aliasdomain.com
__________________
Reply With Quote
  #3 (permalink)  
Old 03-01-2010, 11:34 PM
Intermediate Member
 
Posts: 23
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)
Reply With Quote
  #4 (permalink)  
Old 03-02-2010, 12:20 AM
Intermediate Member
 
Posts: 23
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"
Reply With Quote
  #5 (permalink)  
Old 03-02-2010, 01:38 AM
Moderator
 
Posts: 7,928
Default

Managing Domains - Zimbra :: Wiki
__________________
Reply With Quote
  #6 (permalink)  
Old 03-02-2010, 01:46 AM
Intermediate Member
 
Posts: 23
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
Reply With Quote
  #7 (permalink)  
Old 03-02-2010, 02:24 AM
Intermediate Member
 
Posts: 23
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)
Reply With Quote
  #8 (permalink)  
Old 03-02-2010, 03:33 AM
Intermediate Member
 
Posts: 23
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
Reply With Quote
  #9 (permalink)  
Old 03-02-2010, 06:15 AM
Intermediate Member
 
Posts: 23
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.
Reply With Quote
  #10 (permalink)  
Old 03-07-2011, 10:09 PM
Special Member
 
Posts: 101
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
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.