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.

Defined email addresses file/db location

Discussion in 'E-mail Discussions' started by AndyB78, Nov 11, 2009.

  1. AndyB78

    AndyB78 Active Member

    Joined:
    Oct 7, 2003
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Romania
    Hello,

    Where should I look for the email addresses defined in cPanel? Is there a file or a db where they are all listed? I know there is the /home/user/mail/domain folder that contains the new/ cur/ etc folders. I don't mean this. I mean where does cPanel records the email addresses created for a domain/account?

    And now why I am asking this: I have a customer that did something (I am not sure what) and now besides all the valid emails, there is one weird @domain.com address (it simply appers like that above all the valid email addresses). No user before @. Just @domain.com. Where should I look for it and delete that leftover?

    Regards!
     
  2. 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:
    To clarify, is this seen as an e-mail forwarder or an e-mail account?

    There is a YAML file that contains a list of the current e-mail accounts, but care should be taken if attempting to edit it so as to preserve the syntax and format of the data without introducing corruption. The file is stored in a path like the following example (where "username" is the cPanel account username):
    Code:
    /home/username/.cpanel/email_accounts.yaml
    Please save a fresh backup before attempting any modification, so that there is something to revert to if the need arises; via root SSH access, a command such as the following will save a backup copy (where "username" is the cPanel account username):
    Code:
    # cp -pv /home/username/.cpanel/email_accounts.yaml /home/username/.cpanel/email_accounts.yaml.backup
     
    Metro2 likes this.
  3. AndyB78

    AndyB78 Active Member

    Joined:
    Oct 7, 2003
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Romania
    Hello Don,

    Thanks - it worked!

    By the way...it was an email account not a forwarder.

    Best Regards!
     
Loading...

Share This Page