Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

"Ghost" email accounts after deleting Add on domain

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

  1. Sausages

    Sausages Registered

    Joined:
    Mar 1, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    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:
    459
    Likes Received:
    6
    Trophy Points:
    68
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Sausages

    Sausages Registered

    Joined:
    Mar 1, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    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:
    459
    Likes Received:
    6
    Trophy Points:
    68
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    sneader likes this.
  5. Sausages

    Sausages Registered

    Joined:
    Mar 1, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    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,544
    Likes Received:
    9
    Trophy Points:
    268
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #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:
    51
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice