The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Changing Primary domain via "Modify Account" Email account renaming behaviour.

Discussion in 'E-mail Discussions' started by 4u123, Aug 4, 2014.

  1. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    Ok, so customer wants to change their primary hosted domain on their hosting account. We go to WHM > Modify an Account and change the domain.

    Usually when this happens, the process automatically renames the mail folders and Email accounts from name@domain1.com to name@domain2.com

    I did one of these last week and noticed that the Email accounts didn't get renamed - the /home/username/mail/domain1.com was still there a long with all the email accounts and a new directory for /home/username/mail/domain2 was created.

    This is not my experience of how this has worked in the past.

    So my questions are...

    1. What determines whether or not the Email accounts will be renamed?
    2. Perhaps this behaviour has changed in a recent update?

    I know that it's possible to re-create the same accounts in the new domain and them move the individual mail files over - but they have a lot of mail, so would prefer a cleaner way.

    Any advice greatly appreciated.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    It looks like you opened a support ticket to address this issue. For reference, the ticket number was 5298995. The result of the ticket was that a directory with the new domain name was already created in /home/$user/mail. Thus, the existence of this directory prevented it from generating automatically when the account was modified to a new domain name.

    Thank you.
     
  3. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    Just to correct you on that Michael...

    When I first attempted to change the domain name on the account, it was successful, but the mail accounts did not get renamed - as per my description above. This sub directory was created during that process, it was not pre-existing.

    So the existence of the sub directory was not the cause of this problem, as it didn't exist - although it may have been the cause of further attempts to rename the account.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Thank you for the clarification. Please feel free to reply to the ticket if you can reproduce the original issue so we can continue to investigate.
     
Loading...

Share This Page