Defined email addresses file/db location

AndyB78

Well-Known Member
Oct 7, 2003
85
2
158
Romania
cPanel Access Level
Root Administrator
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!
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
14
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
No user before @. Just @domain.com. Where should I look for it and delete that leftover?
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
 
  • Like
Reactions: Metro2