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.

Email account from wrong domain

Discussion in 'E-mail Discussions' started by Legin76, Oct 9, 2009.

  1. Legin76

    Legin76 Well-Known Member

    Joined:
    Dec 11, 2007
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    I've got an account that I created by duplicating another account.

    There seem to be a strange issue where the new account has an email address from the original account but it can not be deleted. (Sorry, you do not have access to the domain originaldomain.co.uk)

    When I go to the original account the email address no longer exists there so can't be deleted their either.

    Its not needed on either domain.

    It will be very disconcerting for the site owner when it list someone else's email address.

    Does anyone know how to solve this?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If I understand correctly, you backed up an entire cPanel account then restored it on another server and modified the account to have a different domain? Is that what you mean by duplicating an account?
     
  3. Legin76

    Legin76 Well-Known Member

    Joined:
    Dec 11, 2007
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    Well I backed it up, renamed the original, restored the package then changed the new one to a new domain and the out the old one back to what it was.
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Each user account has a cPanel users file; in these files there are entries to help keep track of domains on each user account. Each file name matches the cPanel account username, and is located in the following directory path:
    /var/cpanel/users/

    Here are two commands you might run to check if more than one account, or if an undesired account has ownership over the domain name in question; this would need to be executed via root SSH access:
    Code:
    # /scripts/whoowns originaldomain.co.uk
    # grep -HinR "originaldomain.co.uk" /var/cpanel/users/
    Look for entries beginning with the following three prefixes:
    (where # is an incremental number)

    DNS=
    DNS#=
    XDNS#=

    "DNS=" indicates the primary domain of an account.
    "DNS#=" indicates a secondary domain on an account, such as a parked domain or an add-on domain.
    "XDNS#=" indicates a domain that was removed or deleted, retained in this type of entry for resource tracking (e.g., bandwidth usage)

    If the domain "originaldomain.co.uk" is seen in more than one file within the cPanel users directory path (at "/var/cpanel/users/"), then that is most likely why the reported message is being seen in cPanel.

    If attempting manual correction of any files within the cPanel users directory path, the following script must be executed afterward to ensure the change takes full effect:
    Code:
    # /scripts/updateuserdomains --verbose
    Depending on what factors are involved, it may also help to verify mail permissions, by executing the following script as a final step:
    Code:
    # /scripts/mailperm --verbose
     
  5. Legin76

    Legin76 Well-Known Member

    Joined:
    Dec 11, 2007
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    Everything in those files appears to be correct.

    I ran the permissions script which found a couple of issues on other sites but nothing on the ones in question.

    Just to make it clear what the problem is too

    2 domains - originaldomain.com and newdomain.com

    In the email accounts for originaldomain.com there are no email accounts.

    In email accounts for newdomain.com there is username@originaldomain.com which can not be deleted as it does not have permission.

    Also the original account was an import from an ensim server.
     
  6. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Please submit a ticket for this specific situation; I believe it requires more in-depth investigation to determine the source of the issue. Once submitted, please PM me the ticket number.
     
Loading...

Share This Page