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.

Old email account cannot be deleted after changing domain name of account.

Discussion in 'E-mail Discussions' started by SuperBaby, Nov 23, 2009.

  1. SuperBaby

    SuperBaby Well-Known Member

    Joined:
    Nov 27, 2003
    Messages:
    331
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Thailand
    cPanel Access Level:
    Website Owner
    Twitter:
    I saw someone also mentioned about this but there was no solution.

    Under WHM, I restored a *.tar.gz file and re-created an old account. After that, I changed the domain from olddomain.com to newdomain.com.

    Under cPanel of that account, it shows me:

    xxx@olddomain.com (which was added before the account was deleted earlier)
    yyy@newdomain.com (which I just added)

    I tried to delete xxx@olddomain.com but it said I have no access to this domain.

    I checked httpd.conf and there was no occurrence of olddomain.com.

    How do I manually remove this old email account?
     
  2. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    1- check if the email account folder exists as /home/user/mail/olddomain.com/xxx
    2- check if there is folder /home/etc/olddomain.com and if so remove it.
    3- Logout of cPanel, backup the files 'email_accounts.yaml' and empty 'email_accounts.cache' in /home/user/.cpanel/ and try to log in to cPanel again.
    4- If it still does not work, run '/scripts/whoowns olddomain.com' and see if this gives you a clue.
     
  3. SuperBaby

    SuperBaby Well-Known Member

    Joined:
    Nov 27, 2003
    Messages:
    331
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Thailand
    cPanel Access Level:
    Website Owner
    Twitter:
    1- check if the email account folder exists as /home/user/mail/olddomain.com/xxx

    No. Only the new domain is available under "mail" directory.

    2- check if there is folder /home/etc/olddomain.com and if so remove it.

    No. Only the new domain is available under "mail" directory.

    3- Logout of cPanel, backup the files 'email_accounts.yaml' and empty 'email_accounts.cache' in /home/user/.cpanel/ and try to log in to cPanel again.

    This seems to solve the problem. Thanks.

    4- If it still does not work, run '/scripts/whoowns olddomain.com' and see if this gives you a clue.
     
  4. Metro2

    Metro2 Well-Known Member

    Joined:
    May 24, 2006
    Messages:
    376
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I'm experiencing this problem as well with one account.

    I tried JPC-Howards checklist / procedure below:

    1 - don't see a folder for it in the old domain
    2 - don't see a folder for it in etc for old domain
    3 - tried this, but it didn't change anything
    4 - ran that script, but it returns nothing (no text, no answer)

    Any more tricks up your sleeve JPC-Howard? Anyone else maybe?

    Thanks for any advice at all!


    UPDATE - FOUND A SOLUTION THAT WORKED FOR ME HERE - http://forums.cpanel.net/f43/defined-email-addresses-file-db-location-137637.html More specifically - http://forums.cpanel.net/f43/defined-email-addresses-file-db-location-137637.html#post591297
     
    #4 Metro2, Nov 25, 2009
    Last edited: Nov 25, 2009
Loading...

Share This Page