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.

"Ghost" email accounts after deleting Add on domain

Discussion in 'E-mail Discussions' started by Sausages, Jan 11, 2010.

  1. Sausages

    Sausages Registered

    Joined:
    Mar 1, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I've moved an add on domain out to it's own account on the server and recreated the mailboxes, but on the previous account there are still mailbox entries for the add on domain which cannot be deleted.

    The error returned is "Account does not exist". The mailbox usage shows there are still messages in the mailboxes but it isn't important to access these.

    How can I delete these ghost email accounts?
     
  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
    Try to delete the folders 'domain.com' from original account's mail and etc folder where domain.com was setup as an addon.
     
  3. Sausages

    Sausages Registered

    Joined:
    Mar 1, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Thanks, I've done that but the entries within cPanel are still there.


    I'm really only doing this as a matter of tidying up the accounts, I don't think I have any mail delivery issues.
     
  4. 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
    Logout of cPanel, backup the file 'email_accounts.yaml' and empty 'email_accounts.cache' in /home/user/.cpanel/ and try to log in to cPanel again.
     
    sneader likes this.
  5. Sausages

    Sausages Registered

    Joined:
    Mar 1, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I've now tried that but still no change. Did you want me to empty email_accounts.yaml also?
     
  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:
    As was suggested by JPC-Howard, please retain a backup copy. With the cache file emptied or renamed/moved out of the way, next, rename the original YAML file, then access cPanel and refresh the E-mail Accounts page; the YAML file should be regenerated.

    Here is is an example of how to rename the YAML file via SSH access; replace "username" with your cPanel account username:
    Code:
    # cd ~username/.cpanel
    # mv -v email_accounts.yaml email_accounts.yaml.backup
     
    #6 cPanelDon, Jan 11, 2010
    Last edited: Jan 11, 2010
    sneader likes this.
  7. Sausages

    Sausages Registered

    Joined:
    Mar 1, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Thanks JPC-Howard and cPanelDon, that's resolved it. I had made a backup of the YAML file (I learned that a long time ago!) and it's now removed the rogue entries from cPanel.
     
Loading...

Share This Page