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.

Cannot Create an Email Account. Error Message...

Discussion in 'E-mail Discussions' started by riverside, Jul 4, 2011.

  1. riverside

    riverside Registered

    Joined:
    Jul 4, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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 (info@example.com), 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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. Kahuna

    Kahuna Member

    Joined:
    Nov 10, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    I have the same problem. A user deleted that /etc/ directory. Is there a way to regenerated it specifically for that user?
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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:
    root@host [/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
     
  5. maymur

    maymur Registered

    Joined:
    Jul 18, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    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.
     
  6. karimi

    karimi Registered

    Joined:
    Mar 12, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner

    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:
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    In your cPanel > Preferences section, find the "Getting Started Wizard" and click thru it. That's as easy as it gets I think.
     
Loading...

Share This Page