Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Correct way to move domains?

  1. #1
    Join Date
    Dec 2007
    Posts
    8
    Rep Power
    7

    Default Correct way to move domains?

    Hi everyone,

    What is the correct way to move domains? Right now the server's default domain is zimbraserver.domain.com. We're ready to move into full production and would like it to be just domain.com. This was attempted while I was out and horked up the system bad enough that I had to open a support call. I'm a little gunshy as a result

    Thanks in advance!

    ~Lisa

  2. #2
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    If you're just needing to set that domain as default so users don't have to type in the complete 'user@domain.com' to login they can just type 'user':
    Code:
    zmprov mcf zimbraDefaultDomain domain.com
    Did you previously have a Split Domain - Zimbra :: Wiki setup?
    If so primary or secondary?
    Like if primary you change the zimbraMailTransport.
    If secondary you remove the zimbraMailCatchAllAddress & zimbraMailCatchAllForwardingAddress, any zimbraMtaRelayHost and turn back on zimbraMtaDnsLookupsEnabled

    Assuming your just interested in changing user@zimbraserver.domain.com to user@domain.com
    Admin console gui > domains > make a new domain if you haven't already.
    same as:
    Code:
      su zimbra
    zmprov cd domain.com zimbraAuthMech zimbra
    For a moment leave the old domain intact.
    Also leave the admin, spam, ham, and the wiki account untouched right now.
    To move any accounts you've already created over:
    In the admin console gui you can just change the drop down box in the individual account > general tab to the other domain (just to the right of where you assign a username).
    zmprov equilavent would be ra (renameAccount)
    See this article if you need to script for a large number of users Bulk Provisioning - Zimbra :: Wiki
    After you get done you should run a full backup-too lengthy to explain why here.

    Note: As of 5.0beta2/3 there's a command to rename the entire domain:
    Code:
    zmprov -l renameDomain (or 'rd' for short) domain.com newDomain.com
    Last edited by mmorse; 12-05-2007 at 03:39 PM.

  3. #3
    Join Date
    Apr 2007
    Posts
    10
    Rep Power
    8

    Default

    Quote Originally Posted by mmorse View Post
    I
    Note: As of 5.0beta2/3 there's a command to rename the entire domain:
    Code:
    zmprov -l renameDomain (or 'rd' for short) domain.com newDomain.com
    So how safe is it to run this with [old]domain.com == newDomain.com just to make sure everything got changed? I.e.,
    Code:
    zmprov -l renameDomain domain.com domain.com
    .

    Also, I have old Ham and Spam training accounts hanging around after a domain change. SO I now have two sets of training accounts. Should I delete the new training accounts, then rename the old ones to reflect our new server name? The reason I ask is that it Spam is being sent to the old training account.

    TIA,

    Cody

  4. #4
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Do a:
    su - zimbra
    zmprov gacf | grep zimbraSpamIs
    and you'll see what they're set to

  5. #5
    Join Date
    Apr 2007
    Posts
    10
    Rep Power
    8

    Default

    Thanks,
    running
    Code:
    zmprov gacf | grep zimbraSpamIs
    indicates that both Spam and Ham accounts are "in" our old domain.

    Cody

  6. #6
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

  7. #7
    Join Date
    Nov 2007
    Posts
    7
    Rep Power
    8

    Default it has missed one thing... mailbox table

    Code:
    zmprov -l renameDomain domain.com domain.com
    So I renamed my domain with the above command, but I noticed that last login times haven't been updated for any old accounts since the domain rename (new accounts are fine).

    When I look at the mailbox table in the zimbra DB the comment field still has the old domainname. I might be wrong but I think on login it's not finding the right account to update in that table because of the bad data in the comment field.

    Should I just update the table by hand or is there a zm command to fix things up?

  8. #8
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    How much time as passed? ie: Before jumping into a lot of work work try setting:
    zmprov mcf zimbraLastLogonTimestampFrequency 1d
    (default is 7d to cutdown on ldap writes every time you auth...)

  9. #9
    Join Date
    Nov 2007
    Posts
    7
    Rep Power
    8

    Default

    Quote Originally Posted by mmorse View Post
    How much time as passed? ie: Before jumping into a lot of work work try setting:
    zmprov mcf zimbraLastLogonTimestampFrequency 1d
    (default is 7d to cutdown on ldap writes every time you auth...)
    I'm with you on that one. I tested that out earlier and also moved it to 1d. I renamed the domain on Feb 2nd. So it has been over 2 weeks at this point.

    Thanks,
    Will

  10. #10
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Had another thought - do you use external auth? Bug 24012 - "Last logged in" not updating when using external LDAP
    Or has all that changed been renaming the domain?
    Could you post your full version info?
    (http://www.zimbra.com/forums/announc...r-profile.html)

Similar Threads

  1. Advanced MTA Configuration - multiple domains
    By keyhman in forum Installation
    Replies: 6
    Last Post: 04-20-2012, 03:23 AM
  2. Sending mails to domains without use of DNS server
    By generic31 in forum Administrators
    Replies: 5
    Last Post: 08-08-2011, 04:17 AM
  3. Replies: 3
    Last Post: 06-07-2007, 08:19 AM
  4. Virtual Domains Breaking Themes
    By jhoelz in forum Administrators
    Replies: 0
    Last Post: 03-14-2007, 06:58 AM
  5. ZCS NE - move users between domains
    By globalstorm in forum Administrators
    Replies: 3
    Last Post: 11-02-2006, 01:28 PM

Posting Permissions

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