Cannot Create an Email Account. Error Message...

riverside

Registered
Jul 4, 2011
1
0
51
Hi

Everything had been working fine earlier today, of course, but after trying to make some unrelated changes, involving moving a blog and changing domain redirects, I found that the email account associated with the website was gone. So I tried to create a new email account in cPanel.

I went to Email Accounts, and filled out the address ([email protected]), filled out the password field, etc. But when I hit Create Account - I get this message:

No such file or directory: /home/*datebasename*/etc/example.com/passwd passwd

Any idea what's going on, and how I can fix it?


Many thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello :)

It's possible you accidentally removed the /etc directory from the account when you were moving the directories around. Check to see if the following directory exists:

/home/$username/etc

If it does not exist, you will need to restore it from a backup because it includes files that are required for your email accounts.

Thank you.
 

Kahuna

Member
Nov 10, 2010
7
0
51
I have the same problem. A user deleted that /etc/ directory. Is there a way to regenerated it specifically for that user?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello Kahuna,

Unfortunately, there is no way to regenerate the folders and files in /home/username/etc location. You would need to use a backup for the account to restore the folders and files there.

Alternatively, you could copy the /home/username/etc folder from a new account you create in WHM > Create a New Accounbt area, and then re-create every single missing email account once you've gotten /home/username/etc/ back there.

The folder structure will be something like the following:

Code:
[email protected] [/home/tristan]# ls -ld etc && ls -lah etc && ls -lah etc/tristanwallace.com
drwxr-x--- 3 tristan mail 4096 Jul 12 16:23 etc/
total 12K
drwxr-x---  3 tristan mail    4.0K Jul 12 16:23 ./
drwx--x--x 17 tristan tristan 4.0K Jul 13 14:20 ../
-rw-r--r--  1 tristan tristan    0 Jul 12 16:23 ftpquota
drwxr-x---  5 tristan mail    4.0K Jul 19 11:25 tristanwallace.com/
total 80K
drwxr-x--- 5 tristan mail    4.0K Jul 19 11:25 ./
drwxr-x--- 3 tristan mail    4.0K Jul 12 16:23 ../
drwxr-x--- 2 tristan tristan 4.0K Jun 20 11:36 \@pwcache/
drwxr-xr-x 2 tristan tristan 4.0K Jun 29 12:06 admin/
drwxr-xr-x 2 tristan tristan 4.0K Jun 29 12:06 cpacct/
-rw-r----- 1 tristan mail     184 Jun 20 11:36 passwd
-rw-r----- 1 tristan mail     688 Jun 20 11:36 passwd,v
-rw-r----- 1 tristan mail      33 Jun 20 11:36 quota
-rw-r----- 1 tristan mail     537 Jun 20 11:36 quota,v
-rw-r----- 1 tristan tristan  107 Jul 11 14:01 shadow
-rw-r----- 1 tristan tristan  611 Jun 20 11:36 shadow,v
 

maymur

Registered
Jul 18, 2012
1
0
1
cPanel Access Level
Reseller Owner
Thank you so much for such a quick solution. I have lost my cpanel items and copied from another cpanel. So everything got alright after setting up. Thanks again.
 

karimi

Registered
Mar 12, 2013
1
0
1
cPanel Access Level
Website Owner
Thank you so much for such a quick solution. I have lost my cpanel items and copied from another cpanel. So everything got alright after setting up. Thanks again.

hi guys, i have the same problem and it gives the following error:
No such file or directory: /home/*datebasename*/etc/example.com/passwd passwd

I am trying to make a new email account for the 1st time. Any one who could help me by writing me step by instructions ?

Thank you in advance: